vim: Add multicursor shortcuts (#3032)
Adding a few bindings to bring first class feeling multiselect to zed's vim emulation. gn and gN are similar to similar vim bindings, ga is similar to gA (and I doubt we need vim's real ga), g> and g< are just made up. Release Notes: - vim: `g n` / `g N` to select next/previous - vim: `g >` / `g <` to skip current selection and select next/previous - vim: `g a` to select all
This commit is contained in:
commit
42df5ef45e
2 changed files with 65 additions and 0 deletions
|
@ -126,6 +126,21 @@
|
|||
"g shift-t": "pane::ActivatePrevItem",
|
||||
"g d": "editor::GoToDefinition",
|
||||
"g shift-d": "editor::GoToTypeDefinition",
|
||||
"g n": "vim::SelectNext",
|
||||
"g shift-n": "vim::SelectPrevious",
|
||||
"g >": [
|
||||
"editor::SelectNext",
|
||||
{
|
||||
"replace_newest": true
|
||||
}
|
||||
],
|
||||
"g <": [
|
||||
"editor::SelectPrevious",
|
||||
{
|
||||
"replace_newest": true
|
||||
}
|
||||
],
|
||||
"g a": "editor::SelectAllMatches",
|
||||
"g s": "outline::Toggle",
|
||||
"g shift-s": "project_symbols::Toggle",
|
||||
"g .": "editor::ToggleCodeActions", // zed specific
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue