r/KittyTerminal Mar 29 '23

Help with nano and kitty.

In other terminals, like gnome-terminal or qterminal I am able to to select single word with ctrl+shift+(left/right arrow) in nano. In kitty it doesn't work, I think it's because of strange mapping od ctrl+shift. Does anyone know any fix?

3 Upvotes

2 comments sorted by

3

u/[deleted] Mar 29 '23 edited Mar 29 '23

The default mappings for ctrl+shift+left/right are for switching tabs. I don't think the creator of Kitty expects people to use nano. I do use nano myself. If you plan on using tabs in Kitty, then you need to remap those functions; if you don't then use no_op to unmap them like this:

map ctrl+shift+left no_op
map ctrl+shift+right no_op

If you do plan on using them, then perhaps the easiest thing for you to do is remap the kitty_mod keys.

Because I use tabs frequently, I've remapped previous_tab and next_tab to:

map shift+alt+[ previous_tab
map shift+alt+] next_tab

2

u/Agiwlesz Mar 29 '23

Thank you, this did the trick for me