|
32 | 32 | "(": "vim::SentenceBackward", |
33 | 33 | ")": "vim::SentenceForward", |
34 | 34 | "|": "vim::GoToColumn", |
35 | | - "] ]": "vim::NextSectionStart", |
36 | | - "] [": "vim::NextSectionEnd", |
37 | | - "[ [": "vim::PreviousSectionStart", |
38 | | - "[ ]": "vim::PreviousSectionEnd", |
39 | | - "] m": "vim::NextMethodStart", |
40 | | - "] shift-m": "vim::NextMethodEnd", |
41 | | - "[ m": "vim::PreviousMethodStart", |
42 | | - "[ shift-m": "vim::PreviousMethodEnd", |
43 | | - "[ *": "vim::PreviousComment", |
44 | | - "[ /": "vim::PreviousComment", |
45 | | - "] *": "vim::NextComment", |
46 | | - "] /": "vim::NextComment", |
47 | | - "[ -": "vim::PreviousLesserIndent", |
48 | | - "[ +": "vim::PreviousGreaterIndent", |
49 | | - "[ =": "vim::PreviousSameIndent", |
50 | | - "] -": "vim::NextLesserIndent", |
51 | | - "] +": "vim::NextGreaterIndent", |
52 | | - "] =": "vim::NextSameIndent", |
53 | | - "] b": "pane::ActivateNextItem", |
54 | | - "[ b": "pane::ActivatePreviousItem", |
55 | | - "] shift-b": "pane::ActivateLastItem", |
56 | | - "[ shift-b": ["pane::ActivateItem", 0], |
57 | | - "] space": "vim::InsertEmptyLineBelow", |
58 | | - "[ space": "vim::InsertEmptyLineAbove", |
59 | | - "[ e": "editor::MoveLineUp", |
60 | | - "] e": "editor::MoveLineDown", |
61 | | - "[ f": "workspace::FollowNextCollaborator", |
62 | | - "] f": "workspace::FollowNextCollaborator", |
63 | 35 |
|
64 | 36 | // Word motions |
65 | 37 | "w": "vim::NextWordStart", |
|
83 | 55 | "n": "vim::MoveToNextMatch", |
84 | 56 | "shift-n": "vim::MoveToPreviousMatch", |
85 | 57 | "%": "vim::Matching", |
86 | | - "] }": ["vim::UnmatchedForward", { "char": "}" }], |
87 | | - "[ {": ["vim::UnmatchedBackward", { "char": "{" }], |
88 | | - "] )": ["vim::UnmatchedForward", { "char": ")" }], |
89 | | - "[ (": ["vim::UnmatchedBackward", { "char": "(" }], |
90 | 58 | "f": ["vim::PushFindForward", { "before": false, "multiline": false }], |
91 | 59 | "t": ["vim::PushFindForward", { "before": true, "multiline": false }], |
92 | 60 | "shift-f": ["vim::PushFindBackward", { "after": false, "multiline": false }], |
|
219 | 187 | ".": "vim::Repeat" |
220 | 188 | } |
221 | 189 | }, |
| 190 | + { |
| 191 | + "context": "vim_mode == normal || vim_mode == visual || vim_mode == operator", |
| 192 | + "bindings": { |
| 193 | + "] ]": "vim::NextSectionStart", |
| 194 | + "] [": "vim::NextSectionEnd", |
| 195 | + "[ [": "vim::PreviousSectionStart", |
| 196 | + "[ ]": "vim::PreviousSectionEnd", |
| 197 | + "] m": "vim::NextMethodStart", |
| 198 | + "] shift-m": "vim::NextMethodEnd", |
| 199 | + "[ m": "vim::PreviousMethodStart", |
| 200 | + "[ shift-m": "vim::PreviousMethodEnd", |
| 201 | + "[ *": "vim::PreviousComment", |
| 202 | + "[ /": "vim::PreviousComment", |
| 203 | + "] *": "vim::NextComment", |
| 204 | + "] /": "vim::NextComment", |
| 205 | + "[ -": "vim::PreviousLesserIndent", |
| 206 | + "[ +": "vim::PreviousGreaterIndent", |
| 207 | + "[ =": "vim::PreviousSameIndent", |
| 208 | + "] -": "vim::NextLesserIndent", |
| 209 | + "] +": "vim::NextGreaterIndent", |
| 210 | + "] =": "vim::NextSameIndent", |
| 211 | + "] b": "pane::ActivateNextItem", |
| 212 | + "[ b": "pane::ActivatePreviousItem", |
| 213 | + "] shift-b": "pane::ActivateLastItem", |
| 214 | + "[ shift-b": ["pane::ActivateItem", 0], |
| 215 | + "] space": "vim::InsertEmptyLineBelow", |
| 216 | + "[ space": "vim::InsertEmptyLineAbove", |
| 217 | + "[ e": "editor::MoveLineUp", |
| 218 | + "] e": "editor::MoveLineDown", |
| 219 | + "[ f": "workspace::FollowNextCollaborator", |
| 220 | + "] f": "workspace::FollowNextCollaborator", |
| 221 | + "] }": ["vim::UnmatchedForward", { "char": "}" }], |
| 222 | + "[ {": ["vim::UnmatchedBackward", { "char": "{" }], |
| 223 | + "] )": ["vim::UnmatchedForward", { "char": ")" }], |
| 224 | + "[ (": ["vim::UnmatchedBackward", { "char": "(" }], |
| 225 | + // tree-sitter related commands |
| 226 | + "[ x": "vim::SelectLargerSyntaxNode", |
| 227 | + "] x": "vim::SelectSmallerSyntaxNode" |
| 228 | + } |
| 229 | + }, |
222 | 230 | { |
223 | 231 | "context": "vim_mode == normal", |
224 | 232 | "bindings": { |
|
249 | 257 | "g w": "vim::PushRewrap", |
250 | 258 | "g q": "vim::PushRewrap", |
251 | 259 | "insert": "vim::InsertBefore", |
252 | | - // tree-sitter related commands |
253 | | - "[ x": "vim::SelectLargerSyntaxNode", |
254 | | - "] x": "vim::SelectSmallerSyntaxNode", |
255 | 260 | "] d": "editor::GoToDiagnostic", |
256 | 261 | "[ d": "editor::GoToPreviousDiagnostic", |
257 | 262 | "] c": "editor::GoToHunk", |
|
317 | 322 | "g w": "vim::Rewrap", |
318 | 323 | "g ?": "vim::ConvertToRot13", |
319 | 324 | // "g ?": "vim::ConvertToRot47", |
320 | | - "\"": "vim::PushRegister", |
321 | | - // tree-sitter related commands |
322 | | - "[ x": "editor::SelectLargerSyntaxNode", |
323 | | - "] x": "editor::SelectSmallerSyntaxNode" |
| 325 | + "\"": "vim::PushRegister" |
324 | 326 | } |
325 | 327 | }, |
326 | 328 | { |
|
397 | 399 | "ctrl-[": "editor::Cancel", |
398 | 400 | ";": "vim::HelixCollapseSelection", |
399 | 401 | ":": "command_palette::Toggle", |
| 402 | + "m": "vim::PushHelixMatch", |
| 403 | + "]": ["vim::PushHelixNext", { "around": true }], |
| 404 | + "[": ["vim::PushHelixPrevious", { "around": true }], |
400 | 405 | "left": "vim::WrappingLeft", |
401 | 406 | "right": "vim::WrappingRight", |
402 | 407 | "h": "vim::WrappingLeft", |
|
419 | 424 | "insert": "vim::InsertBefore", |
420 | 425 | "alt-.": "vim::RepeatFind", |
421 | 426 | "alt-s": ["editor::SplitSelectionIntoLines", { "keep_selections": true }], |
422 | | - // tree-sitter related commands |
423 | | - "[ x": "editor::SelectLargerSyntaxNode", |
424 | | - "] x": "editor::SelectSmallerSyntaxNode", |
425 | | - "] d": "editor::GoToDiagnostic", |
426 | | - "[ d": "editor::GoToPreviousDiagnostic", |
427 | | - "] c": "editor::GoToHunk", |
428 | | - "[ c": "editor::GoToPreviousHunk", |
429 | 427 | // Goto mode |
430 | 428 | "g n": "pane::ActivateNextItem", |
431 | 429 | "g p": "pane::ActivatePreviousItem", |
|
469 | 467 | "space c": "editor::ToggleComments", |
470 | 468 | "space y": "editor::Copy", |
471 | 469 | "space p": "editor::Paste", |
472 | | - // Match mode |
473 | | - "m m": "vim::Matching", |
474 | | - "m i w": ["workspace::SendKeystrokes", "v i w"], |
475 | 470 | "shift-u": "editor::Redo", |
476 | 471 | "ctrl-c": "editor::ToggleComments", |
477 | 472 | "d": "vim::HelixDelete", |
|
540 | 535 | } |
541 | 536 | }, |
542 | 537 | { |
543 | | - "context": "vim_operator == a || vim_operator == i || vim_operator == cs", |
| 538 | + "context": "vim_operator == a || vim_operator == i || vim_operator == cs || vim_operator == helix_next || vim_operator == helix_previous", |
544 | 539 | "bindings": { |
545 | 540 | "w": "vim::Word", |
546 | 541 | "shift-w": ["vim::Word", { "ignore_punctuation": true }], |
|
577 | 572 | "e": "vim::EntireFile" |
578 | 573 | } |
579 | 574 | }, |
| 575 | + { |
| 576 | + "context": "vim_operator == helix_m", |
| 577 | + "bindings": { |
| 578 | + "m": "vim::Matching" |
| 579 | + } |
| 580 | + }, |
| 581 | + { |
| 582 | + "context": "vim_operator == helix_next", |
| 583 | + "bindings": { |
| 584 | + "z": "vim::NextSectionStart", |
| 585 | + "shift-z": "vim::NextSectionEnd", |
| 586 | + "*": "vim::NextComment", |
| 587 | + "/": "vim::NextComment", |
| 588 | + "-": "vim::NextLesserIndent", |
| 589 | + "+": "vim::NextGreaterIndent", |
| 590 | + "=": "vim::NextSameIndent", |
| 591 | + "b": "pane::ActivateNextItem", |
| 592 | + "shift-b": "pane::ActivateLastItem", |
| 593 | + "x": "editor::SelectSmallerSyntaxNode", |
| 594 | + "d": "editor::GoToDiagnostic", |
| 595 | + "c": "editor::GoToHunk", |
| 596 | + "space": "vim::InsertEmptyLineBelow" |
| 597 | + } |
| 598 | + }, |
| 599 | + { |
| 600 | + "context": "vim_operator == helix_previous", |
| 601 | + "bindings": { |
| 602 | + "z": "vim::PreviousSectionStart", |
| 603 | + "shift-z": "vim::PreviousSectionEnd", |
| 604 | + "*": "vim::PreviousComment", |
| 605 | + "/": "vim::PreviousComment", |
| 606 | + "-": "vim::PreviousLesserIndent", |
| 607 | + "+": "vim::PreviousGreaterIndent", |
| 608 | + "=": "vim::PreviousSameIndent", |
| 609 | + "b": "pane::ActivatePreviousItem", |
| 610 | + "shift-b": ["pane::ActivateItem", 0], |
| 611 | + "x": "editor::SelectLargerSyntaxNode", |
| 612 | + "d": "editor::GoToPreviousDiagnostic", |
| 613 | + "c": "editor::GoToPreviousHunk", |
| 614 | + "space": "vim::InsertEmptyLineAbove" |
| 615 | + } |
| 616 | + }, |
580 | 617 | { |
581 | 618 | "context": "vim_operator == c", |
582 | 619 | "bindings": { |
|
0 commit comments