Closed Tazi0 closed 3 months ago
I tried to reproduce this with the following keymap.json
but was unable to:
[
// Issue 14635
{
"context": "Workspace",
"bindings": {
"shift shift": "file_finder::Toggle"
}
}
]
Can you share the relevant portion of your ~/.zed/keymap.json
where you're binding shift shift
to file_finder::Toggle
. I think there's a good chance you're doing so in a context
other than Workspace
.
@notpeter you're correct, I forgot that context is important for keymaps.
[
{
"context": "Editor",
"bindings": {
// "cmd-shift-f": "editor::FindAllReferences" // cmd-click does this, cmd-shift-f is used to search project wide
"ç": "editor::ShowCompletions", // matches ⌥-c
"shift shift": "file_finder::Toggle", // matches pressing and releasing shift twice
"cmd-r": "editor::Rename"
}
}
]
Is there a global context or is that not recommended?
There is a global context (if your keymap object has no context key, then it's global) but I think workspace is what you want. We definitely need better docs here.
Check for existing issues
Describe the bug / provide steps to reproduce it
So when I open up a project, I close all my tabs/files. But then I try to find a file (using
shift shift
as afile_finder::Toggle
) it doesn't open the window. So I can't find the file I'm looking for and have to open a file to search for the correct file.I can open it using the normal keyboard shortcut (CMD + P) so it feels like the keyboard shortcuts aren't active when there are no tabs/files open
Environment
Zed: v0.143.7 (Zed) OS: macOS 14.5.0 Memory: 16 GiB Architecture: aarch64
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
...(shortened)