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

Terminal, impossible to type \ antislash #17057

Closed
1 task done
rcarlier opened this issue Aug 29, 2024 · 6 comments · Fixed by #19364
Closed
1 task done

Terminal, impossible to type \ antislash #17057

rcarlier opened this issue Aug 29, 2024 · 6 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

@rcarlier
Copy link

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

Hello

I use Zed to prepare a postgresql course, and I use the terminal for many manipulations.

So I detected that I can't enter the \ (antislash) character in the terminal, and I have to enter it in the editor and copy/paste it in terminal... Annoying to make a \q for example ;-)

If I am at the bash level (not in psql), successively pressing \ and \ makes an ls

I've check settings>key bindings and settings>default key bindings I didn't detect anything suspect (I didn't change the default values)

Of cours, i'ts possible to make a \ in the classic terminal, in the VSC terminal, and in other applications in general

Environment

MacBook Air
MacOS Sonoma 14.4.1 (23E224)

To obtain \ a need to use shift+option+/

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
@rcarlier rcarlier added admin read bug [core label] labels Aug 29, 2024
@notpeter

This comment was marked as resolved.

@notpeter notpeter added terminal Feedback for terminal integration, shell commands, etc internationalization Feedback for human language support, translations, etc keymap / key binding Feedback for keyboard shortcuts, key mapping, etc and removed triage labels Aug 29, 2024
@rcarlier
Copy link
Author

Of course

Zed: v0.147.2 (Zed)
OS: macOS 14.4.1
Memory: 16 GiB
Architecture: aarch64

Keyboard : azerty, french (com.apple.keylayout.French)

@notpeter
Copy link
Member

notpeter commented Aug 30, 2024

Potentially relevant:

@nexeck
Copy link

nexeck commented Aug 30, 2024

I am facing the same problem on MacOS.

\ / | and all those keys stopped working within the terminal.

Running some scripts which ask for user input are printing control chars/garbage into the input field (without typing anything) like:

Project name (lala): ]11;rgb:3b3b/4141/4d4d
Sorry, ']11;rgb:3b3b/4141/4d4d' is not a valid Project name: project names may only contain alphanumerics, hyphens, underscores, and periods

Using: Zed 0.150.4
German keyboard layout

@martoche
Copy link

martoche commented Sep 4, 2024

Same problem here with a French keyboard on a Mac, I can't type the [ character in the terminal with the usual option-shift-( key combination.

@rcarlier
Copy link
Author

rcarlier commented Sep 9, 2024

Try to add in config/zed/settings.json

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

This solved my issue.

See issue #17031 for details...

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.

4 participants