-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Terminal + Tmux + Ctrl-Space-Prefix not working #10502
Comments
might you have key-bindings in settings which using |
No, not at all. These are all my mappings so far. [
{
"context": "!Terminal && vim_mode != insert",
"bindings": {
"cmd-j": "workspace::ToggleBottomDock",
"cmd-h": "workspace::ToggleLeftDock",
"ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
"ctrl-l": ["workspace::ActivatePaneInDirection", "Right"],
"ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
"ctrl-j": ["workspace::ActivatePaneInDirection", "Down"],
"ctrl-shift-i": "pane::SplitRight",
"ctrl-_": "pane::SplitDown",
"ctrl-shift-h": ["workspace::SwapPaneInDirection", "Left"],
"ctrl-shift-j": ["workspace::SwapPaneInDirection", "Down"],
"ctrl-shift-k": ["workspace::SwapPaneInDirection", "Up"],
"ctrl-shift-l": ["workspace::SwapPaneInDirection", "Right"],
"space f f": "file_finder::Toggle",
"space tab": "workspace::CloseAllDocks",
"space q": "editor::GoToDiagnostic"
}
},
{
"context": "Editor && vim_mode == normal && !VimWaiting",
"bindings": {
"ctrl-n": "project_panel::ToggleFocus"
}
}
] I've noticed something else. When typing a space in the Terminal, the Space character only shows up with a delay or once I type something else. Maybe that has something to do with it. 2024-04-16_09-07-26.mov |
might be that |
Possible. But that should be in the "Editor" Context, not the "Terminal" Context. |
try set the |
Thanks, I just tried it, but it did not help. Disabling all default mappings somehow fixed the delay of the space character in the terminal, but nothing else. Ctrl+Space is still not registering. I even tried disabling all mappings that use „space“ in my „keymap.json“ too. |
In general there should be an option to allow the terminal to capture key bindings first, i configured |
you can define what keys get captured where by defining a |
This comment was marked as spam.
This comment was marked as spam.
I am also facing the same issue! I got tmux on ctrl+space and the keys are not being registered. |
Close zed-industries#10502 Release Notes: - Fixed `ctrl-space` not being forwarded correctly in the terminal view. ([zed-industries#10502](zed-industries#10502))
Check for existing issues
Describe the bug / provide steps to reproduce it
Hi, I'm new to Zed and wanted to give it a try. Coming from NeoVim, My workflow usually involves running various scripts and TUI tools via TMUX.
For convinience I changed TMUX's default Prefix to "Ctrl+Space" (default would be "Ctrl+B").
However, when running TMUX in Zed's Terminal, CTRL-Space does nothing. (Ctrl+B works though).
So my guess is, that something is eating up the Ctrl-Space input. The only binding to that (According to my config) is the default
editor::ShowCompletions
in theEditor
Context.So when I'm in the
Terminal
Context, it should be ignored.How to reproduce
tmux
~/.tmux.conf
:ctrl-space ?
(By default it should list all of TMUX's Keybindings)Environment
Zed: v0.130.6 (Zed)
OS: macOS 13.6.0
Memory: 8 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
2024-04-13_06-15-48.mov
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.No response
The text was updated successfully, but these errors were encountered: