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
45.47k stars 2.48k forks source link

CTRL+W closes terminal instead of removing word #14160

Closed keks closed 3 days ago

keks commented 1 month ago

Check for existing issues

Describe the bug / provide steps to reproduce it

When I am in the terminal and press CTRL+W, the terminal closes. I would have expected that the word before the cursor gets removed, as it does in basically every other terminal.

Environment

Zed: v1.0.0 (Zed) OS: Linux 1.0.0 Memory: 30.7 GiB Architecture: x86_64

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 1 month ago

Interesting, in https://github.com/zed-industries/zed/pull/13263 we configured it such that ctrl-w in terminal will not close the terminal and will send a ctrl-w keystroke.

https://github.com/zed-industries/zed/blob/489077befcc1ac4e1aa4505fa3f27f1a6528da48/assets/keymaps/default-linux.json#L252-L257

This is definitely working for someone else on Linux, because here they are requesting the opposite -- they wish ctrl-w closed the window and instead it's getting passed to the terminal:

Just to be clear, your title/description have an uppercase W. Are you typing to ctrl-w or ctrl-shift-w?

Are there any details that you can imagine that might be factors here? Alternate keyboard layout, desktop environment, etc?

notpeter commented 1 month ago

@keks Can you edit the environment (Zed version) in your description? There is no Zed 1.0.0 nor Linux 1.0.0, where did this come from? You can get this in zed with zed: copy system specs into clipboard from the command palette (ctrl-shift-p).

keks commented 1 month ago

Hm, that is exactly what I did. I installed from my Manjaros repos, it's possible that they broke this somehow... I'll check there for now!