Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix search bar not closing on escape in Helix keymap (#48847)

buildingvibesfa0ba05b4ca7
diff --git a/assets/keymaps/vim.json b/assets/keymaps/vim.json
index 1ed049bfce7..d5bc26b9417 100644
--- a/assets/keymaps/vim.json
+++ b/assets/keymaps/vim.json
@@ -418,7 +418,7 @@
},
},
{
- "context": "VimControl && vim_mode == helix_normal && !menu",
+ "context": "VimControl && vim_mode == helix_normal && !menu && !BufferSearchBar",
"bindings": {
"j": ["vim::Down", { "display_lines": true }],
"down": ["vim::Down", { "display_lines": true }],
@@ -436,7 +436,7 @@
},
},
{
- "context": "vim_mode == helix_select && !menu",
+ "context": "vim_mode == helix_select && !menu && !BufferSearchBar",
"bindings": {
"escape": "vim::SwitchToHelixNormalMode",
},