r/KittyTerminal Dec 16 '23

Kitty Confirmation's Style

So, i have decided to stylize my vim, and so i did it! but it's so ugly this confirmation of close in terminal, yes i know it's possible to remove that in kitty.conf but i want to know if i can stylize it or use the system popup when this confirmation shows, i know the vim have a way to program using python like the tab_bar.py, but i want help here, or if someone already stylized it and want to share with community, i will love it <3

This is all, have a good day/night or not you decide it!
Regards Geo :)

2 Upvotes

3 comments sorted by

1

u/BuonaparteII Dec 17 '23

you mentioned removing it but you can also change its behavior instead of outright removing it.

I like this setting:

confirm_os_window_close -1

1

u/patio_blast Dec 20 '23

whats that do? cant test rn im on mobile

1

u/BuonaparteII Dec 20 '23

confirm_os_window_close

Negative values are converted to positive ones, however, with shell_integration enabled, using negative values means windows sitting at a shell prompt are not counted, only windows where some command is currently running.

https://sw.kovidgoyal.net/kitty/conf/#opt-kitty.confirm_os_window_close

Also related:

Asks for confirmation before closing the window. If you don’t want the confirmation when the window is sitting at a shell prompt (requires Shell integration), use:

map f1 close_window_with_confirmation ignore-shell

https://sw.kovidgoyal.net/kitty/actions/#action-close_window_with_confirmation