def execute_window(content, options = {})
      window_options = content[:options]
      _contents      = content[:tabs]
      _first_run     = true

      _contents.keys.sort.each do |key|
        _content = _contents[key]
        _options = content[:options]
        _name    = options[:name]

        _tab =
        if _first_run && !options[:default]
          open_window options.merge(window_options)
        else
          key == 'default' ? nil : open_tab(_options)
        end

        _first_run = false
        commands = prepend_befores _content[:commands], content[:before]
        commands = set_title _name, commands
        commands.each { |cmd| execute_command cmd, :in => _tab }
      end

    end
def execute_window(content, options = {})
      window_options = content[:options]
      _contents      = content[:tabs]
      _first_run     = true

      _contents.keys.sort.each do |key|
        _content = _contents[key]
        _options = content[:options]
        _name    = options[:name]

        _tab =
        if _first_run && !options[:default]
          open_window options.merge(window_options)
        else
          key == 'default' ? nil : open_tab(_options)
        end

        _first_run = false
        commands = prepend_befores _content[:commands], content[:before]
        commands = set_title _name, commands
        commands.each { |cmd| execute_command cmd, :in => _tab }
      end

    end
Executes the commands for each designated window.
 .run_windows will iterate through each of the tabs in
 sorted order to execute the tabs in the order they were set.
 The logic follows this:

   If the content is for the 'default' window,
   then use the current active window and generate the commands.

   If the content is for a new window,
   then generate a new window and activate the windows.

   Otherwise, open a new tab and execute the commands.

 @param [Hash] content
   The hash contents of the window from the Termfile.
 @param [Hash] options
   Addional options to pass. You can use:
     :default - Whether this is being run as the default window.

 @example
   @core.execute_window contents, :default => true
   @core.execute_window contents, :default => true

 @api public