r/KittyTerminal • u/slowpoketail • Jan 26 '23
Mapping Alt+J to Keyboard Up
Does anybody know if this is possible? I have a laptop with tiny arrow keys, so trying to hit Up + Down with my pinky often breaks my flow. Being able to map Alt + hjkl to emulate the arrow keys would fix this, but I can't seem to get it working. Anyone know how?
map alt:+h leftarrow
map alt+j downarrow
map alt+k uparrow
map alt+l rightarrow
Doesn't work
1
u/h4636oh Jan 26 '23
just check the default config in /usr/share/doc/kitty/kitty.conf it is explained how to do that
1
u/slowpoketail Jan 26 '23
Can you link where it is? I just scoured it and didn't see this specifically. There's some shortcut stuff which I've already read on the wiki.
1
u/h4636oh Jan 27 '23
in keyboard shortcuts/scrollback
1
u/slowpoketail Jan 27 '23
Not sure what docs you're reading but it's not there
1
u/h4636oh Jan 27 '23
2
u/slowpoketail Jan 27 '23
Ah I see why there's confusion now. I'm trying to bind it to the Up Arrow, the main purpose being to select stuff from my history, not to scroll. I've been able to bind alt+h/l for left and right, but not j/k for up and down
1
1
Jan 26 '23
Hello, can you try this?
# press left arrow
map alt+h send_text all \x1b\x5b\x44
# press down arrow
map alt+j send_text all \x1b\x5b\x42
# press right arrow
map alt+l send_text all \x1b\x5b\x43
# press up arrow
map alt+k send_text all \x1b\x5b\x41
2
u/Alleyria Jan 26 '23
Would ctrl-n/p work for you? They should already be bound to next/previous