You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Zed, its global shortcuts interfere with terminal interactions, such as those in programs like nano. For instance, Zed uses Ctrl + O to open a new project, conflicting with nano's Ctrl + O shortcut for saving files. This conflict prevents nano from responding to its expected actions when trying to save a file.
Steps to reproduce:
Open a terminal inside Zed Ctrl + ` .
Open any file using nano: nano Cargo.toml.
Save the changes in the file using nano's shortcut Ctrl + O.
Expected behavior:
Nano should respond by triggering its file save prompt.
I am facing similar issue, I am using micro for editing commit messages and the keybindings for saving and exiting (Ctrl+s, Ctrl+q) are being handled only by Zed and not the micro running in the terminal.
Imho when the terminal is in focus all keystrokes should be only directed to the terminal, Zed should completely ignore them, otherise there will always be some key combinations that are impossible to pass in to the program running in the terminal.
Yeah, these are hard. Both the terminal and the application may want shortcut keys with ctrl. Especially with other editors (emacs, nano, micro, etc). I'm not sure the right balance, but it's easy enough to fix:
Just add a custom keymap (cmd-shift-p, zed: open keymap) and paste the following:
[
{
"context": "Terminal",
"bindings": {
// Directly pass these keys to terminal apps instead of having Zed handle them."ctrl-o": ["terminal::SendKeystroke", "ctrl-o"],
"ctrl-s": ["terminal::SendKeystroke", "ctrl-s"],
"ctrl-q": ["terminal::SendKeystroke", "ctrl-q"]
}
}
]
Check for existing issues
Describe the bug / provide steps to reproduce it
When using Zed, its global shortcuts interfere with terminal interactions, such as those in programs like nano. For instance, Zed uses
Ctrl + O
to open a new project, conflicting with nano'sCtrl + O
shortcut for saving files. This conflict prevents nano from responding to its expected actions when trying to save a file.Steps to reproduce:
Ctrl + `
.nano Cargo.toml
.Ctrl + O
.Expected behavior:
#Environment
Zed: v0.143.6 (stable)
Operating System: Fedora Linux 40
Memory: 16 GiB
Architecture: x86_64
TL;DR:
Disabling conflicting keybindings when a terminal is active would resolve this issue.
The text was updated successfully, but these errors were encountered: