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

kitty -1 detaches from a terminal #630

Closed
SolitudeSF opened this issue Jun 12, 2018 · 9 comments
Closed

kitty -1 detaches from a terminal #630

SolitudeSF opened this issue Jun 12, 2018 · 9 comments

Comments

@SolitudeSF
Copy link
Contributor

i dont know know if this is intended and i cant recall this behaviour before.

@kovidgoyal
Copy link
Owner

kitty -1 will open a new window in a previous instance of kitty -1, and exit.

If there is no previous instance, then it will run and not detach. That is still the case and has always been the case.

@SolitudeSF
Copy link
Contributor Author

is there a way then to wait for exit of the instance launched with -1?

@kovidgoyal
Copy link
Owner

There is no instance launched with kitty -1, it's just a window in an existing instance. So no, there is no way to wait for that window to close.

@SolitudeSF
Copy link
Contributor Author

ok, thanks for the info. i guess i can botch some workaround for my usecase.

@kovidgoyal
Copy link
Owner

What is your usecase?

@SolitudeSF
Copy link
Contributor Author

SolitudeSF commented Jun 12, 2018

script for editing clipboard content in the terminal editor. i can just omit -1 but then launch time becomes somewhat a problem since it brings a significant pause.

@kovidgoyal
Copy link
Owner

I need a little more detail than that. Why do you want kitty -1 to hang around until the window is closed? If it is in a terminal editor, why not just use a terminal mode program directly rather than a new GUI window?

@SolitudeSF
Copy link
Contributor Author

SolitudeSF commented Jun 12, 2018

its for invoking from outside the terminal. https://github.com/cknadler/vim-anywhere like this

@SolitudeSF
Copy link
Contributor Author

wow, thank you

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