Ctrl/Alt-V to select by page in Emacs keymap (#30858)
Problem: In addition to PgUp/PgDown Emacs also binds `Ctrl-V` to page down and `Meta-V` to page up. These keys wouldn't extend the selection in Zed. Reason: Only PageUp/PageDown were assigned to `editor::SelectPage{Up|Down}` in the `Editor && selection_mode` context. Solution: In the `Editor && selection_mode` context, bind `Ctrl-V` to `editor::SelectPageDown` and `Alt-V` to `editor::SelectPageUp`, both in the mac and linux keymaps. Release Notes: - Added to the Emacs keymap bindings for Ctrl/Alt-V in the selection mode to extend the selection one page up/down
This commit is contained in:
parent
926f377c6c
commit
844c7ad22e
2 changed files with 4 additions and 0 deletions
|
@ -72,7 +72,9 @@
|
||||||
"alt-left": "editor::SelectToPreviousWordStart",
|
"alt-left": "editor::SelectToPreviousWordStart",
|
||||||
"alt-right": "editor::SelectToNextWordEnd",
|
"alt-right": "editor::SelectToNextWordEnd",
|
||||||
"pagedown": "editor::SelectPageDown",
|
"pagedown": "editor::SelectPageDown",
|
||||||
|
"ctrl-v": "editor::SelectPageDown",
|
||||||
"pageup": "editor::SelectPageUp",
|
"pageup": "editor::SelectPageUp",
|
||||||
|
"alt-v": "editor::SelectPageUp",
|
||||||
"ctrl-f": "editor::SelectRight",
|
"ctrl-f": "editor::SelectRight",
|
||||||
"ctrl-b": "editor::SelectLeft",
|
"ctrl-b": "editor::SelectLeft",
|
||||||
"ctrl-n": "editor::SelectDown",
|
"ctrl-n": "editor::SelectDown",
|
||||||
|
|
|
@ -72,7 +72,9 @@
|
||||||
"alt-left": "editor::SelectToPreviousWordStart",
|
"alt-left": "editor::SelectToPreviousWordStart",
|
||||||
"alt-right": "editor::SelectToNextWordEnd",
|
"alt-right": "editor::SelectToNextWordEnd",
|
||||||
"pagedown": "editor::SelectPageDown",
|
"pagedown": "editor::SelectPageDown",
|
||||||
|
"ctrl-v": "editor::SelectPageDown",
|
||||||
"pageup": "editor::SelectPageUp",
|
"pageup": "editor::SelectPageUp",
|
||||||
|
"alt-v": "editor::SelectPageUp",
|
||||||
"ctrl-f": "editor::SelectRight",
|
"ctrl-f": "editor::SelectRight",
|
||||||
"ctrl-b": "editor::SelectLeft",
|
"ctrl-b": "editor::SelectLeft",
|
||||||
"ctrl-n": "editor::SelectDown",
|
"ctrl-n": "editor::SelectDown",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue