Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some alt commands do not work on kitty terminal #4240

Closed
PurpleBooth opened this issue Oct 13, 2022 · 7 comments
Closed

Some alt commands do not work on kitty terminal #4240

PurpleBooth opened this issue Oct 13, 2022 · 7 comments
Labels
C-bug Category: This is a bug

Comments

@PurpleBooth
Copy link

PurpleBooth commented Oct 13, 2022

Summary

The tutorial's intructions no longer work when you get down to section 5.5.

Note: ⌥+s prints a sharp s (ß, z.B. for straße or other german words) on a Mac keyboard.

Reproduction Steps

I tried this:

  1. hx
  2. :tutor

I expected this to happen:

To be able to complete the tutorial

Instead, this happened:

Splitting selection into new lines does nothing.

Helix log

~/.cache/helix/helix.log cat $HOME/.cache/helix/helix.log [bat error]: '/Users/billie/.cache/helix/helix.log': No such file or directory (os error 2)

Platform

macOS (GB keyboard)

Terminal Emulator

kitty 0.26.3 created by Kovid Goyal

Helix Version

helix 22.08.1 (66276ce)

@PurpleBooth PurpleBooth added the C-bug Category: This is a bug label Oct 13, 2022
@Omnikar
Copy link
Contributor

Omnikar commented Oct 13, 2022

You'll need to configure your terminal emulator to use the option key as a modifier.

@PurpleBooth
Copy link
Author

I am a little confused, what this means, could you explain further?

I enabled the key mapping printing in kitty +kitten show_key -m kitty, and I can see the correct events

Press any keys - Ctrl+C or Ctrl+D will terminate
ENTER RELEASE 
CSI 13 ; 1 : 3 u

Alt+LEFT_ALT PRESS 
CSI 57443 ; 3 u

Alt+s PRESS 
CSI 115 ; 3 u

Alt+s RELEASE 
CSI 115 ; 3 : 3 u

LEFT_ALT RELEASE 
CSI 57443 ; 1 : 3 u

@Omnikar
Copy link
Contributor

Omnikar commented Oct 13, 2022

I don't know how it works in kitty but in iTerm2 I had to change this option from "Normal".
image

@PurpleBooth
Copy link
Author

Ah ok, kitty uses a different protocol to iterm, so this doesn't apply to kitty from my understanding

@Omnikar
Copy link
Contributor

Omnikar commented Oct 13, 2022

Oh, looks like you just need to set macos_option_as_alt in your kitty config to left, right, or both.

@PurpleBooth
Copy link
Author

Ah done and that worked! Perfect!

@PurpleBooth PurpleBooth changed the title Unable to complete tutorial on mac Unable to complete tutorial on kitty terminal Oct 13, 2022
@PurpleBooth PurpleBooth changed the title Unable to complete tutorial on kitty terminal Some alt commands do not work on kitty terminal Oct 13, 2022
@mikkelfj
Copy link

FWIW, new user: "MacOS Iterm2 + helix + alt + b" in insert mode inserts a symbol instead of moving back a word, Emacs style. Helix 0.22.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

3 participants