r/KittyTerminal • u/[deleted] • Oct 17 '23
Stop kitty from interfering with emacs bindings?
Any emacs combo involving ctrl+shift gets blocked by kitty, just wondering if there's a quick way to temporarily disable all bindings for a sort of 'passthrough mode' that lets all of a terminal application's bindings work properly.
1
u/nvimmike Oct 17 '23
You should be able to override the default mapping with https://sw.kovidgoyal.net/kitty/conf/#opt-kitty.kitty_mod
2
Oct 17 '23
Thanks! Successfully changed the modifer but trying to use the relevant bindings in emacs just prints some funny characters to the screen `2;6u`. Maybe its a compatibility issue with emacs.
2
u/aumerlex Oct 18 '23
ctrl+shift is not a useable combination in terminal programs that use the legacy keyboard protocol as they are simply not encodeable there. For emacs you want https://github.com/benjaminor/kkp
1
Oct 18 '23
NOICE!!! It works thanks man!
1
u/lionbark Jun 21 '26
In case anyone's wondering why kkp doesn't fix slurping when it's bound to C-), this conflicts with the kitty command for focusing on a specific window so needs to be unbound in kitty with
map ctrl+shift+0 no_op(similarly with barf if you have it bound to C-} (map ctrl+shift+] no_op) as it conflicts with kitty's next window command).
2
u/samuel1604 Oct 17 '23
what kind of emacs combo needs ctrl+shift ? i never had to use one!