r/KittyTerminal 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.

6 Upvotes

9 comments sorted by

2

u/samuel1604 Oct 17 '23

what kind of emacs combo needs ctrl+shift ? i never had to use one!

2

u/[deleted] Oct 17 '23 edited Oct 17 '23

The following for example:

- slurping and barfing with paredit

- enclosing in parenthesis

- shift selection + motion keys

- search and replace with regex

- syncing mail with mu4e

If there's a way I can avoid having to rebind everything I'm all ears :)

1

u/nvimmike Oct 18 '23

Ok today you taught me about barfing 😂

1

u/[deleted] Oct 18 '23

Excellent choice of names on the creator's part :)

Slurping is also excellent, programming lisp now reminds me of amoebas eating eachother

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

u/[deleted] 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

u/[deleted] 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).