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

Can't create new top-level windows with kitty @ #770

Closed
00dani opened this issue Jul 30, 2018 · 1 comment
Closed

Can't create new top-level windows with kitty @ #770

00dani opened this issue Jul 30, 2018 · 1 comment

Comments

@00dani
Copy link

00dani commented Jul 30, 2018

kitty @ supports a new-window command, which can open new split windows and new tabs, but as far as I can tell cannot open new native system windows.

This unfortunately means that kitty @ doesn't completely replicate the functionality of the --single-instance flag, so both features must be used in tandem.

Additionally, invoking kitty with --single-instance does not return the new window's ID, so it currently isn't even possible to - for example - spawn a new system window and then send some text to it. Something like this really ought to work:

kit() { kitty @ --to $MYKITTYSOCKET "$@" }
wid=$(kit new-window --top-level)
echo 'ls -la' | kit send-text --stdin -m id:$wid

(On a related note, I think kitty @ should be able to read the socket to use from an environment variable, to avoid the need for that kit helper function!)

@kovidgoyal
Copy link
Owner

kovidgoyal commented Jul 30, 2018

I dont see much point in supporting env vars, since you'd never want to type the command directly anyway. You can simply create an alias:

alias kit='kitty @ --to $MYSOCKET'

No need for a function

metayan pushed a commit to metayan/kitty that referenced this issue Aug 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants