Open xezrunner opened 3 months ago
Regarding this case, I tried assigning the command to open the last project to ctrl-h, and it works perfectly. However, when I assigned "search::ToggleReplace" to ctrl-h, it started acting like Backspace, deleting the character to the left.
I suspect it works as follows: the editor cannot execute the action because it is not available in the current context, and as a fallback, it tries to find another key reassignment higher up in the reassignment tree, instead of stopping the search for an alternative possible action.
To add for accuracy, in my ABC layout, when the search panel is open, the ctrl-h override works as expected, toggling the panel to replace mode. When the search panel is closed, it acts like Backspace.
Regarding this case, I tried assigning the command to open the last project to ctrl-h, and it works perfectly. However, when I assigned "search::ToggleReplace" to ctrl-h, it started acting like Backspace, deleting the character to the left.
I suspect it works as follows: the editor cannot execute the action because it is not available in the current context, and as a fallback, it tries to find another key reassignment higher up in the reassignment tree, instead of stopping the search for an alternative possible action.
Thanks for the additional info, updated the issue title and description to better reflect the problem.
Check for existing issues
Describe the bug / provide steps to reproduce it
Trying to override
ctrl-h
in the user keymap tosearch:toggleReplace
results in no effect during editing and continues firing the default action instead.The default keymap has
ctrl-h
bound toeditor::Backspace
, which is the action that is being performed in place of the user override.Environment
If applicable, add mockups / screenshots to help explain present your vision of the feature
Screen recording:
https://github.com/zed-industries/zed/assets/8061077/2843b74b-686c-4428-b56e-af87aca32723
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.Logs contain no information related to this.