Open gabrielkoerich opened 3 months ago
If I remove "cmd-alt-f": "search::ToggleReplace"
on Pane context, the key binding is back to the default cmd-shift-h
which works when pressing it. But cmd-alt-f
doesn't work, maybe some kind of conflict?
I can't also remap cmd-r
, it always toggles the right dock anyway. Maybe related to #12555?
These seem like bugs - I'm experiencing the same issues on my end.
@gabrielkoerich I wonder whether it's because we actually a different modifier key order for our Pane
context one:
{
"context": "Editor && mode == full",
"bindings": {
"cmd-alt-f": ["buffer_search::Deploy", { "replace_enabled": true }]
}
},{
"context": "BufferSearchBar",
"bindings": {
"cmd-alt-f": "search::ToggleReplace"
}
},{
"context": "Pane",
"bindings": {
"alt-cmd-f": "project_search::ToggleFilters"
}
}
Can you see if changing your Pane
definition in your keymap.json fixes it?
- "cmd-alt-f": "search::ToggleReplace",
+ "alt-cmd-f": "search::ToggleReplace",
Bump @gabrielkoerich.
Curious whether you're still running into this and whether the work around I suggested had any impact.
@notpeter I doesn't work either 😕 I had already tried this, if you look my keymaps I have both: cmd-alt-f
and alt-cmd-f
. Tried again with just one of them but no success. This search/replace is still annoying to do only using the keyboard, I guess I need to learn to just do it using vim mode
Check for existing issues
Describe the bug / provide steps to reproduce it
I'm using Zed with
vim_mode=true
and custom key bindings for search/replace. I added"alt-cmd-f": "search::ToggleReplace"
in some contexts and it shows on the editor that this should be the correct key binding for toggling replace:But I can't make it work, I always have to do first a
cmd-f
to search and then toggle the replace manually. First I was using the SublimeText base keymap, but I remove it and added just some custom key bindings. Am I doing something wrong here? Thanks!Environment
Zed: v0.137.6 (Zed) OS: macOS 14.5.0 Memory: 32 GiB Architecture: aarch64
My current key bindings:
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.No response