zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
47.02k stars 2.7k forks source link

Terminal, impossible to type \ antislash #17057

Open rcarlier opened 2 weeks ago

rcarlier commented 2 weeks ago

Check for existing issues

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


notpeter commented 2 weeks ago

In zed can you open the command palette (cmd-shift-p) and then 'copy system specs into clipboard' and edit your issue description to include that info (zed version number, etc).

What's your keyboard layout? (e.g. something other than US English?)

rcarlier commented 2 weeks ago

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 commented 2 weeks ago

Potentially relevant:

nexeck commented 2 weeks ago

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 commented 1 week ago

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 commented 1 week ago

Try to add in config/zed/settings.json

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

This solved my issue.

See issue https://github.com/zed-industries/zed/discussions/17031 for details...