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

Option to open in new window, or open multiple windows #1

Closed
alesdotio opened this issue Jul 11, 2013 · 23 comments
Closed

Option to open in new window, or open multiple windows #1

alesdotio opened this issue Jul 11, 2013 · 23 comments
Labels

Comments

@alesdotio
Copy link

Hey, neat little app! It would be really cool if you could add some more options though. I would personally like if there was a way to open new terminal windows instead of tabs, or to even have one menu entry open multiple windows.

For example:

"hosts": [
    {
        "name": "My Dev Server",
        "windows": [
            "ssh username@dev.example.com;",
            "cd ~/my-projects/whatever/;"
        ]
    },
]

which would open two windows, one sshing to the server and the other opening a local directory.

@getify
Copy link

getify commented Jul 11, 2013

+1.

BTW, I just remembered the -t option of SSH that allows you to do something like change the remote directory after login, which in the case of an SSH automation like this, is quite helpful.

So, I do:

{
   "name": "me@myserver:path/to/dir"
   "cmd": "ssh me@myserver -t 'cd path/to/dir; bash --login'"
}

@harrisonpage
Copy link

A feature to open new terminal windows, instead of tabs, would be awesomes.

@fitztrev
Copy link
Owner

This should probably just be a matter of reworking the AppleScript a little bit to change how new sessions are handled. When I wrote it, I only accommodated tabs.

@mikecastrodemaria
Copy link

+1

To launch app and close terminal for example

"cmd": "open -a Firefox 'https://myserv.admin.com'; osascript -e 'tell application "System Events" to tell process "Terminal" to keystroke "w" using command down'

@gregoryb
Copy link

+1

@HirnHolzHobler
Copy link

+1

Any changes to this issue? Your App is pretty neat, and almost exactly what I searched for a long time but I really don't like Tabs when it comes to terminal sessions.

@h-code
Copy link

h-code commented Dec 24, 2014

+1

with iTerm2 I try the hidden pref
defaults write com.googlecode.iterm2 OpenFileInNewWindows -bool true

It works for file not for shuttle

@thshdw
Copy link
Collaborator

thshdw commented Jan 9, 2015

@alesdotio see pull request #104
adding isNewWindow: true to the command settings will open that command in a new window

                            "name": "check shuttle process",
                            "isNewWindow": "true",
                            "cmd": "ps aux | grep [s]huttle"

@DemonTPx
Copy link

👍

thshdw pushed a commit that referenced this issue Oct 11, 2015
Update the base fork at thshdw with the changes of head fork fitztrev
@thshdw
Copy link
Collaborator

thshdw commented Oct 15, 2015

Complete! See release v1.2.3

@thshdw thshdw closed this as completed Oct 15, 2015
@timothyallan
Copy link

Is there no option to open in tabs any more with 1.2.4?? I loved that. Now it either spits the command into the existing terminal, or opens a brand new instance which clutters up my environment depending on the inTerminal flag.

@thshdw
Copy link
Collaborator

thshdw commented Oct 25, 2015

@timothyallan If the inTerminal flag is missing then the default action is tabs. With the new version (if you are using iTerm, you must have the the "iTerm_version": "stable", setting set to nightly or stable I'm working on the readme to explain all the new settings. Please let me know if you have questions.

@timothyallan
Copy link

That's why I'm here :) I got the new version, and noticed that it no longer opened new tabs. It would inject the next command into my currently open terminal window. I'd left my settings the same i.e. no inTerminal flag, as I'd not read the release notes and didn't even about it.

Edit: as I type this, I'm trying again it it's opening in tabs now. Let me see if I can get a repro.

@thshdw
Copy link
Collaborator

thshdw commented Oct 26, 2015

@timothyallan Thanks for the update! 👍
Are you using iTerm or Terminal.app?

Here is a draft of readme that explains the new settings:
https://github.com/thshdw/shuttle/blob/fix-editor-settings/README.md
Note the open_in setting is not in v1.2.4

edit:
Here is the default shuttle.json file as of version 1.2.4...
https://github.com/fitztrev/shuttle/blob/master/Shuttle/shuttle.default.json

thshdw pushed a commit that referenced this issue Jul 25, 2016
@stephenhandley
Copy link

stephenhandley commented Sep 8, 2016

Looks like the original issue mentioned opening multiple windows/tabs with a single menu entry, but I couldn't find anything in the Command Settings wiki page describing the syntax for that. Is that supported?

@thshdw
Copy link
Collaborator

thshdw commented Sep 13, 2016

@stephenhandley see here https://github.com/fitztrev/shuttle/wiki/Command-Settings#interminal-value

"inTerminal": "new",

new opens the command in a new terminal window.

If this is not what you are looking for could you provide an example of what you would like to accomplish?

@stephenhandley
Copy link

stephenhandley commented Sep 13, 2016

@thshdw Thanks but I don't think that answers my question. I'm asking how to open 2 windows with one menu entry. For example, I want to open an ssh tunnel in one window and then run psql ... in another by selecting a single menu entry in shuttle. I see don't anything in the docs or the section you linked that describes how to do that.

@thshdw
Copy link
Collaborator

thshdw commented Sep 13, 2016

@stephenhandley are you running the postgres command on the same server you are ssh'ing too?

@stephenhandley
Copy link

stephenhandley commented Sep 13, 2016

@thshdw nope running it locally. again this is just one example, I could think of others: open docker logs in one window and run tests in another

@thshdw
Copy link
Collaborator

thshdw commented Sep 13, 2016

@stephenhandley Thanks for clarifying. Are you using iTerm and want these in multiple panes? Or are you using terminal and want them in separate windows?

@stephenhandley
Copy link

@thshdw i'm using terminal. multiple tabs within the same window would be awesome, but multiple windows works if the former isn't possible.

@thshdw
Copy link
Collaborator

thshdw commented Sep 13, 2016

@stephenhandley How would you feel about moving the conversation here: #172

@stephenhandley
Copy link

@thshdw sounds good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests