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

CTRL+W closes terminal instead of removing word #14160

Closed
1 task done
keks opened this issue Jul 11, 2024 · 3 comments
Closed
1 task done

CTRL+W closes terminal instead of removing word #14160

keks opened this issue Jul 11, 2024 · 3 comments
Labels
bug [core label] keybinds Keyboard shortcuts, mapping, binding, keymaps, etc linux

Comments

@keks
Copy link

keks commented Jul 11, 2024

Check for existing issues

  • Completed

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
@keks keks added admin read bug [core label] labels Jul 11, 2024
@notpeter
Copy link
Member

notpeter commented Jul 13, 2024

Interesting, in #13263 we configured it such that ctrl-w in terminal will not close the terminal and will send a ctrl-w keystroke.

"context": "Terminal",
"bindings": {
"ctrl-w": ["terminal::SendKeystroke", "ctrl-w"],
"ctrl-e": ["terminal::SendKeystroke", "ctrl-e"]
}
},

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 notpeter added linux keybinds Keyboard shortcuts, mapping, binding, keymaps, etc and removed triage labels Jul 13, 2024
@notpeter
Copy link
Member

@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
Copy link
Author

keks commented Jul 15, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [core label] keybinds Keyboard shortcuts, mapping, binding, keymaps, etc linux
Projects
None yet
Development

No branches or pull requests

2 participants