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
42.61k stars 2.27k forks source link

`CTRL` shortcuts not working properly on Linux #14085

Closed aminya closed 2 weeks ago

aminya commented 2 weeks ago

Check for existing issues

Describe the bug / provide steps to reproduce it

I tried the recently released Zed build for Linux, however, I could not work on a codebase for long, and the main issue is that CTRL doesn't work as expected. The critical affected shortcuts I expect to work:

CTRL + C:  copy
CTRL + V: paste
CTRL + A: select all

Environment

Zed 0.143.6 – /home/aminya/.local/zed.app/libexec/zed-editor

neofetch
             `..---+/---..`              
         `---.``   ``   `.---.`            -----------------------
      .--.`        ``        `-:-.         OS: KDE neon 6.0 x86_64
    `:/:     `.----//----.`     :/-     
   .:.    `---`          `--.`    .:`      Kernel: 6.5.0-41-generic
  .:`   `--`                .:-    `:.     Uptime: 27 mins
 `/    `:.      `.-::-.`      -:`   `/`    Packages: 3095 (dpkg), 83 (brew), 40 (flatpak), 25 (snap)
 /.    /.     `:++++++++:`     .:    .:    Shell: bash 5.1.16
`/    .:     `+++++++++++/      /`   `+`   Resolution: 2560x1440, 2560x1440
/+`   --     .++++++++++++`     :.   .+:   DE: Plasma 6.1.2
`/    .:     `+++++++++++/      /`   `+`   WM: KWin
 /`    /.     `:++++++++:`     .:    .:    Theme: Breeze-Dark [GTK2], Breeze [GTK3]
 ./    `:.      `.:::-.`      -:`   `/`    Icons: breeze-dark [GTK2/3]
  .:`   `--`                .:-    `:.     Terminal: WarpTerminal
   .:.    `---`          `--.`    .:`      
    `:/:     `.----//----.`     :/-      
      .-:.`        ``        `-:-.        
         `---.``   ``   `.---.`           
             `..---+/---..`

(copy system specs into clipboard doesn't work on Linux)

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


ChristoferMendes commented 2 weeks ago

For me, CTRL + J (for open terminal) does not work either.

However, the ones you mentioned worked for me

aminya commented 2 weeks ago

I think the issue is that I had a ~/.config/zed/keymap.json file already remaining from the time I was working on the Linux builds. Removing that file fixes the behaviour.

llogick commented 2 weeks ago

For me, CTRL + J (for open terminal) does not work either.

However, the ones you mentioned worked for me

Weird, I just posted about this on Discord :)

The issue is there are conflicting bindings for 'ctrl-j' If the Editor has focus JoinLines is triggered, if you toggle the left dock on(or off on so it grabs focus) - you get ToggleBottomDock.

notpeter commented 2 weeks ago

Weird, I just posted about this on Discord :)

The issue is there are conflicting bindings for 'ctrl-j' If the Editor has focus JoinLines is triggered, if you toggle the left dock on(or off on so it grabs focus) - you get ToggleBottomDock.

Thanks for pointing this out. I've opened a PR to fix this: