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.

emacs: Fix ctrl-p/ctrl-n navigating popover menus (#33218)

Peter Tripp21fd5c24bf06
diff --git a/assets/keymaps/linux/emacs.json b/assets/keymaps/linux/emacs.json
index 5a5cb6d90cd..d1453da4850 100755
--- a/assets/keymaps/linux/emacs.json
+++ b/assets/keymaps/linux/emacs.json
@@ -90,6 +90,13 @@
"ctrl-g": "editor::Cancel"
}
},
+ {
+ "context": "Editor && (showing_code_actions || showing_completions)",
+ "bindings": {
+ "ctrl-p": "editor::ContextMenuPrevious",
+ "ctrl-n": "editor::ContextMenuNext"
+ }
+ },
{
"context": "Workspace",
"bindings": {
diff --git a/assets/keymaps/macos/emacs.json b/assets/keymaps/macos/emacs.json
index 5a5cb6d90cd..d1453da4850 100755
--- a/assets/keymaps/macos/emacs.json
+++ b/assets/keymaps/macos/emacs.json
@@ -90,6 +90,13 @@
"ctrl-g": "editor::Cancel"
}
},
+ {
+ "context": "Editor && (showing_code_actions || showing_completions)",
+ "bindings": {
+ "ctrl-p": "editor::ContextMenuPrevious",
+ "ctrl-n": "editor::ContextMenuNext"
+ }
+ },
{
"context": "Workspace",
"bindings": {