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

Alt/Option not working in integrated terminal (german keyboard) #16730

Closed
1 task done
gtnebel opened this issue Aug 23, 2024 · 3 comments · Fixed by #19364
Closed
1 task done

Alt/Option not working in integrated terminal (german keyboard) #16730

gtnebel opened this issue Aug 23, 2024 · 3 comments · Fixed by #19364
Labels
bug [core label] internationalization Feedback for human language support, translations, etc keymap / key binding Feedback for keyboard shortcuts, key mapping, etc terminal Feedback for terminal integration, shell commands, etc

Comments

@gtnebel
Copy link

gtnebel commented Aug 23, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

I run Zed on macos and I really like it so far. But the integrated terminal is not working for me. I have a german keyboard layout. All Alt/Option keyboard combinations (for example | { } \ [ ]) are not working and simply do not print any character. That makes the integrated terminal not usable but for the simplest tasks.

When using this keyboard combinations, no log entries are generated.

Environment

Zed: v0.149.5 (Zed)
OS: macOS 14.6.1
Memory: 16 GiB
Architecture: aarch64

German keyboard
Default (VSCode) keymap

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

Zed.log
@gtnebel gtnebel added admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue labels Aug 23, 2024
@notpeter
Copy link
Member

Can you try adding this to your zed settings?

{
  "terminal": {
    "option_as_meta": false
  }
}

See: Terminal: Option-as-meta in the docs. We currently enable this by default to support emacs/readline style meta+key style actions by default in terminal.

@notpeter notpeter added terminal Feedback for terminal integration, shell commands, etc keymap / key binding Feedback for keyboard shortcuts, key mapping, etc internationalization Feedback for human language support, translations, etc and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Aug 27, 2024
@notpeter notpeter changed the title Alt/Option keyboard combinations not working in integrated terminal Alt/Option not working in integrated terminal (german keyboard) Aug 27, 2024
@gtnebel
Copy link
Author

gtnebel commented Aug 28, 2024

@notpeter: I have added option_as_meta: false to the settings. Now I can enter the pipe and bracket symbols, which is good. But meta+key style actions (I have tried in hx editor) are not working anymore.

It's not the perfect solution, but it helps already a lot and makes the integrated terminal a lot more usable. Would be good though if both uses of the Alt/Option key would work.

@notpeter
Copy link
Member

There is an active discussion about altering how we handle keybindings which you may find relevant:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [core label] internationalization Feedback for human language support, translations, etc keymap / key binding Feedback for keyboard shortcuts, key mapping, etc terminal Feedback for terminal integration, shell commands, etc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants