Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run new window #104

Closed
wants to merge 3 commits into from
Closed

Run new window #104

wants to merge 3 commits into from

Conversation

thshdw
Copy link
Collaborator

@thshdw thshdw commented Jan 9, 2015

With these changes you can open any menu item in a new window by setting isNewWindow to true like this:
{
"name": "check shuttle process",
"isNewWindow": "true",
"cmd": "ps aux | grep [s]huttle"
}

This is based on my macro-settings branch as it shares some of the same code.

Matt Turner added 3 commits January 7, 2015 22:19
Allows for setting the theme and title for the terminal command. In the
JSON settings for your cmd add theme and title like so

                           "name": "My blog",
                           "theme": "Grass",
                           "title": "ssh connection to example.com",
                           "cmd": "ssh username@blog.example.com"
By default shuttle open’s new commands in a new tab. These changes
allow you to set flag “isNewTab”: “false” if set the command will open
in the active tab. This is useful if you want to run a commonly used
command in the existing ssh tab.

  {
     "name": "check shuttle process",
      "isNewTab": "false",
      "cmd": "ps aux | grep [s]sh”
  }

With isNewTab set to false the command will run in your existing
terminal tab and not a new one.

I branched these changes off my terminal-themes as some of the code was
reused.
With these changes you can open any menu item in a new window by
setting isNewWindow to true like this:
       {
            "name": "check shuttle process",
             "isNewWindow": "true",
             "cmd": "ps aux | grep [s]huttle"
        }
@thshdw
Copy link
Collaborator Author

thshdw commented Mar 3, 2015

@fitztrev This is on hold until the SQLite / applescript changes are in place. I wanted to chat about the implementation. The goal of this is to allow commands to run in a new Window. Perhaps the value here should simply be "newWindow": "yes", what are your thoughts.

@thshdw
Copy link
Collaborator Author

thshdw commented Oct 7, 2015

See the conversation from Pull Request #103. The syntax should be "inTerminal": "new",

@thshdw thshdw closed this Oct 7, 2015
@thshdw thshdw deleted the run-new-window branch October 15, 2015 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants