Comments (23)
+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'"
}
from shuttle.
A feature to open new terminal windows, instead of tabs, would be awesomes.
from shuttle.
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.
from shuttle.
+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'
from shuttle.
+1
from shuttle.
+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.
from shuttle.
+1
with iTerm2 I try the hidden pref
defaults write com.googlecode.iterm2 OpenFileInNewWindows -bool true
It works for file not for shuttle
from shuttle.
@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"
from shuttle.
from shuttle.
Complete! See release v1.2.3
from shuttle.
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.
from shuttle.
@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.
from shuttle.
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.
from shuttle.
@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
from shuttle.
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?
from shuttle.
@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?
from shuttle.
@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.
from shuttle.
@stephenhandley are you running the postgres command on the same server you are ssh'ing too?
from shuttle.
@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
from shuttle.
@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?
from shuttle.
@thshdw i'm using terminal. multiple tabs within the same window would be awesome, but multiple windows works if the former isn't possible.
from shuttle.
@stephenhandley How would you feel about moving the conversation here: #172
from shuttle.
@thshdw sounds good.
from shuttle.
Related Issues (20)
- 请问怎样安装啊,直接拖到应用程序文件夹下面没有效果啊 HOT 1
- is it can batch open ssh like iterm2's "open all profiles"
- 'About' Windows Shows Wrong Info HOT 2
- Shuttle doesn't open Iterm2 new tab or window HOT 6
- Shuttle generate a huge vimswp file HOT 1
- Strange host in app, not in config
- can't open iterm when iterm is completely quit
- Not an issue but a "Thank you" HOT 2
- Shuttle stops working after upgrade to Big Sur HOT 10
- Is it possible to support Native Apple Silicon? HOT 4
- Don't open the terminal window when execute the command
- Whats the latest version? HOT 1
- Use kity for terminal emulator? HOT 2
- Shuttle stop working after upgrading to macOS Big Sur HOT 2
- Can´t make Shuttle work in Monterey HOT 8
- error
- Feature Request: add an optional unique slug to any bookmark
- How to use warp terminal to run my cmd? HOT 5
- Feature request: "tab" but open in new window if not exists
- Escaping help?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shuttle.