Is there any way to customize or add logic to the confirm on exit dialog in kitty? #7855
Replies: 4 comments 2 replies
-
No, it isnt.
…On Sat, Sep 14, 2024 at 11:15:18AM -0700, Penguin wrote:
I'd like for the prompt to ask me if I'm sure I'd like to exit unless the only program running is tmux. Is this currently possible?
--
Reply to this email directly or view it on GitHub:
#7855
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
--
_____________________________________
Dr. Kovid Goyal
https://www.kovidgoyal.net
https://calibre-ebook.com
_____________________________________
|
Beta Was this translation helpful? Give feedback.
-
Would you be open to a patch implementing an option for a list of programs to ignore when confirming a window close? If so, how does the feature currently work with respect to jobs started in the terminal? Does it just use the job in the foreground of the shell? I guess why I'm asking is it already has to exclude the active shell the window contains. |
Beta Was this translation helpful? Give feedback.
-
Looks like it only cares about whats in the fg, so implementing this should be as easy as adding a check here against the active program, x3 for window close, tab close, and quit |
Beta Was this translation helpful? Give feedback.
-
Oh and I should note that while you cannot configure the builtin confirm_on_exit action, you can write a custom kitten that implements an exit action that does whatever you like. https://sw.kovidgoyal.net/kitty/kittens/custom/ |
Beta Was this translation helpful? Give feedback.
-
I'd like for the prompt to ask me if I'm sure I'd like to exit unless the only program running is tmux. Is this currently possible?
Beta Was this translation helpful? Give feedback.
All reactions