Giter Club home page Giter Club logo

Comments (23)

getify avatar getify commented on June 26, 2024

+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.

harrisonpage avatar harrisonpage commented on June 26, 2024

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

from shuttle.

fitztrev avatar fitztrev commented on June 26, 2024

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.

mikecastrodemaria avatar mikecastrodemaria commented on June 26, 2024

+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.

gregoryb avatar gregoryb commented on June 26, 2024

+1

from shuttle.

HirnHolzHobler avatar HirnHolzHobler commented on June 26, 2024

+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.

h-code avatar h-code commented on June 26, 2024

+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.

thshdw avatar thshdw commented on June 26, 2024

@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.

DemonTPx avatar DemonTPx commented on June 26, 2024

👍

from shuttle.

thshdw avatar thshdw commented on June 26, 2024

Complete! See release v1.2.3

from shuttle.

timothyallan avatar timothyallan commented on June 26, 2024

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.

thshdw avatar thshdw commented on June 26, 2024

@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.

timothyallan avatar timothyallan commented on June 26, 2024

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.

thshdw avatar thshdw commented on June 26, 2024

@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.

stephenhandley avatar stephenhandley commented on June 26, 2024

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.

thshdw avatar thshdw commented on June 26, 2024

@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.

stephenhandley avatar stephenhandley commented on June 26, 2024

@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.

thshdw avatar thshdw commented on June 26, 2024

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

from shuttle.

stephenhandley avatar stephenhandley commented on June 26, 2024

@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.

thshdw avatar thshdw commented on June 26, 2024

@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.

stephenhandley avatar stephenhandley commented on June 26, 2024

@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.

thshdw avatar thshdw commented on June 26, 2024

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

from shuttle.

stephenhandley avatar stephenhandley commented on June 26, 2024

@thshdw sounds good.

from shuttle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.