Kitty: macOS: Option+Left prints a capital D

Created on 28 Apr 2020  路  7Comments  路  Source: kovidgoyal/kitty

I use Option+Left (and Right) to quickly jump to start/end of words. When I do this in kitty, It prints a capital D.

I've looked through the documentation and I honestly don't know how to go about remapping or changing this behaviour.

Thanks!

Most helpful comment

Leave macos_option_as_alt at the default value of no and try adding

map alt+left send_text all \x1b\x62
map alt+right send_text all \x1b\x66

to your config.

All 7 comments

Use the option_as_alt setting in kitty.conf.

I have tried the macos_option_as_alt setting _disabled (commented out), no, left, right and both_, unfortunately I still get the same result. I have also tried it in the bash shell.

I do use Karabiner-Elements and Oh-My-Zsh, although i'm not sure if that's relevant.

Leave macos_option_as_alt at the default value of no and try adding

map alt+left send_text all \x1b\x62
map alt+right send_text all \x1b\x66

to your config.

@Luflosi that worked! Thanks! Now i'm curious why.

It tells kitty to send special escape codes when you press alt+left or alt+ right .

Alright. I'll look up escape codes. Thanks again!

Also see #838 and the comment https://github.com/kovidgoyal/kitty/pull/1323#issuecomment-456762751 and the comment after that.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Nudin picture Nudin  路  3Comments

mihaicristiantanase picture mihaicristiantanase  路  3Comments

lazarcf picture lazarcf  路  4Comments

keyofnight picture keyofnight  路  3Comments

JJGO picture JJGO  路  3Comments