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

[REQUEST] close-daemonized-session command #5169

Closed
VKondakoff opened this issue May 9, 2024 · 4 comments
Closed

[REQUEST] close-daemonized-session command #5169

VKondakoff opened this issue May 9, 2024 · 4 comments

Comments

@VKondakoff
Copy link

Feature

Hi!

daemonize-session is a great addition, but I think there is a need to introduce a command for the opposite - close the specified daemonized session.

Usecase

Here is a scenario: I launch several Kakoune instances without any command line options, then I use the daemonize-session command in one of the instances. Now how can I kill the server (for example, to reload the config files)? As there were no command line options they all looks the same in ps output:

Снимок экрана 2024-05-09 в 14 21 55

How can I decide wich of the sessions to kill? So, I think there should be a Kakoune command to exit the specified server.

@krobelus
Copy link
Contributor

krobelus commented May 9, 2024 via email

@VKondakoff
Copy link
Author

Ah, that was easy. Silly me!
Thank you, closing the FR.

@Screwtapello
Copy link
Contributor

In the default configuration of Kakoune, in the bottom right of the window it will say something like "client0@[1228735]`, which is the expansion of "%val{client}@[%val{session}]".

So if you can see a client connected to the session you want to shut down, you can get the session name... or you can just type :kill<ret> in that client.

@VKondakoff
Copy link
Author

So if you can see a client connected to the session you want to shut down, you can get the session name... or you can just type :kill in that client.

Yes, thank you. This is the first time I have heard about kill command. ;(

Here are the docs:

kill[!] [<exit status>]
terminate the current session, all the clients as well as the server. If specified, the server and clients exit status will be set to <exit status>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants