-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Use Hyper CLI to open multiple windows and tabs with configuration #462
Comments
It's not build into hyperterm at the moment. You could write a plugin for it though 👍 |
Maybe even simpler, rather than full fledged profiles at first. Like the ability to launch a command to a new tab in the current window. I imagine it would be reused as a command line launcher in general but maybe if it's called from hyperterm it launches a new tab, if it's called outside hyperterm it launches hyperterm with that command. The hyperterm app doesn't seem to accept command line arguments currently as far as I can tell... Sure it would be fun! I've never worked with electron but would like to get into it. Any ideas to point in the right direction would help. |
Hmm that would be a cool idea.. like a |
I imagine it would need to be like textmate or webstorm where we'd bundle a separate command line tools binary/script that can be optionally installed in the path. Or maybe that's overkill it could be simpler to just pass params to the app living in Applications. |
Hey, guys – any update to this in Hyper? I was hoping for something even as simple as the ability to open Hyper.app from the command line. Not necessary pass a command into it. Is that possible? I know you can just run: But that launches a new instance every time. Instead, is there a way to have it launch and open a new instance if it's not already running (and only launch a new window if it is already running)? |
At work we use scripts to open new tabs in Konsole that SSH into the various servers we deploy and test on (about a 100 different servers). The background colors (actually the profiles) are different for different environment types. For example:
If this was possible in Hyper I would switch. |
I noticed that one can run |
The trouble with passing a directory or command to the executable on the command line is that new windows created from that session seem to "inherit" those properties. So for example, if you open a window using |
Having a |
This is in my long task list to enable profile accessibility! |
There is a typo in @ilkka and @richardwaite comments: it is |
@borela that seems perfect for a plugin! |
Would enable many use cases: such as allowing sftp programs to launch hyper for SSH, a support for a myriad of "cd_to" like tools (that also work from any application), etc. I'm a little surprised that hyper doesn't support any command line arguments - since it's application can be categorized as command line tool (to some extent) ! Alternatively I could just fork and make my own hyper version, but I would love official update support :( |
Indeed you could just fork and make your own hyper version... |
@richardwaite @dsturm @ilkka Thanks |
New tab support would be great, along with kicking off a command to start. I have this scripted out (via applescript) in Terminal.app. But its ugly. I'd want to run a script called "dev/start" in my project that looks something like this:
That would open up 4 tabs automatically, name them, and then kick off a script for each I'm totally open to alternative ways of doing it also. But the end result should be 4 named tabs with 4 different processes. Thanks! |
Woops, I didn't totally understand the issue 🙈 I'll change the title to be more accurate to the new |
I feel compelled to write in to describe my use case for this functionality. I currently have PowerShell functions that open new tabs in ConEmu and establish new ssh.exe, mysql, psql (Postgres), sqlcmd (SQL Server), sqlplus (Oracle), and other connections. In my PowerShell profile, I also have a function that reads in all the servers and databases from a CMDB at startup and creates aliases for them. That allows me to start typing the name of a system, tab complete it, press enter, and get a new tab with an SSH, database, or other connection, etc. If the hyper cli gets a function that lets me create tabs from the command line and I can use arbitrary shells with hyper, then I think a lot of SysAdmin/DBA types would be interested in hyper. |
This is totally what I am looking for. Guake Terminal has something very similar to this and I have a terminal starter script that i run after system start. This is very helpful and preps your terminal session for your work. |
Working on micro-services I sometimes have 4 different servers to start before testing my code. Just telling them all to start in different tabs would be amazing! |
@dewetblomerus, take a look on this: |
I would expect that with electron being slow to startup, there would be a need for some launcher app to track these and wait until the GUI app fully executes |
I would like to try writing this plugin. Does the api provide the necessary to hook such option on start, or is a fork required ? |
I'd definitely love to see this feature come to life 👍, I really love Hyper and this would bring it to perfection for me |
Curious about the answer to @BonLouis's comment, as well as, justification/reasoning on why this should be a plugin instead of a built in feature? Are enough of the hyper internals exposed for this to be a plugin? Thanks! |
I think that Hyperlayout plugin does exactly what you want :) |
Hmm interesting seems to do what everyone is asking for? What's missing from the Hyperlayout plugin that doesn't resolve this issue? |
Interesting. I'll have to try that out later on |
Some things I'd like that might not be included in the Hyperlayout plugin are:
To elaborate on (2), for example, I'd create a Bash or PowerShell function that takes a parameter for the server name. When the function is called, it creates a new tab, runs ssh, and passes in all the relevant paraments to connect to a server. It seems that hyperlayout could do this, but would require creating files. I wouldn't want to do this, especially because the files might contain credentials. I only skimmed Hyperlayout so I could have easily missed that it covers 1 and/or 2. |
1 I think this feature can be added to I really don't think it should be a core feature but |
hyperlayout is currently not maintained and doesn't work for me on Win 10. There is a hyperlayout2 on npm but it didn't seem to work either. |
Hi, So I made some modifications, in the file index.js at line 160, I applied a stringify to the data and then clean all the ansi codes and json strings, then parse into an obj pass it in line 163. After that it works fine :) |
@Luiggi370z maybe you should submit a PR! |
@pcnate commit to the hyperlayout2 one maybe? |
Tried that one. It seems to require the original be installed |
Is this issue still open? I am a first time contributor here. |
Still opening? |
@pcnate Fork a hyperlayout3 :) |
I would also really like this feature and the ability to auto-populate a command without executing it I have a bunch of data scrapers that I run at work and want to open 6 windows so I can run them all and debug them each individually and re-run them. Also would be good for demos |
hyper-broadcast can help (even if this it not exactly what you want) |
I'm planning to basically rewrite the cli and add support for arguments and such to be passed to hyper. But it will take some time as I'm caught up with work etc. Thanks for everyone's patience. |
Great news @LabhanshAgrawal! Thank you for your hard work 🙏 |
I'd love to see a way to reopen a layout. This would be super helpful when working with microservices. |
Curious if this ever made it? I was looking for a way to auto open a tab and run a command just this morning. For context, at work we ssh to bastion hosts. It would be nice to have this automatically kick off in another tab when I open hyper. |
This still in the works? |
It could be nice to launch HyperTerm with a few tabs and run a few scripts in each one automatically. Like a project configuration. Is that possible now?
The text was updated successfully, but these errors were encountered: