Commit 05bfdd8
committed
Allows
The new argument `inputLength` (which defaults to 1) determines how many
characters the `seek` command accepts. This uses the newly implemented
`keyCount` argument (which also defaults to 1) to accept multiples
keypresses.
The most immediate use for this is to implement the equivalent of
vim-sneak. Sneak accepts two key presses, and like `t`, sneak jumps the
cursor right before the next match of the input.
This also includes some shortcut commands for easily sneaking with the
`s` key in normal mode using select.orSneak.seek to accept more than one keypress.1 parent e15330a commit 05bfdd8
9 files changed
Lines changed: 295 additions & 198 deletions
File tree
- src
- api
- data
- commands
- layouts
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2480 | 2480 | | |
2481 | 2481 | | |
2482 | 2482 | | |
| 2483 | + | |
2483 | 2484 | | |
2484 | 2485 | | |
2485 | 2486 | | |
| |||
2492 | 2493 | | |
2493 | 2494 | | |
2494 | 2495 | | |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
| 2499 | + | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
| 2504 | + | |
| 2505 | + | |
| 2506 | + | |
2495 | 2507 | | |
2496 | 2508 | | |
2497 | 2509 | | |
| |||
2530 | 2542 | | |
2531 | 2543 | | |
2532 | 2544 | | |
2533 | | - | |
2534 | | - | |
2535 | | - | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
2536 | 2549 | | |
2537 | 2550 | | |
2538 | 2551 | | |
| |||
2545 | 2558 | | |
2546 | 2559 | | |
2547 | 2560 | | |
| 2561 | + | |
| 2562 | + | |
| 2563 | + | |
| 2564 | + | |
| 2565 | + | |
| 2566 | + | |
| 2567 | + | |
| 2568 | + | |
| 2569 | + | |
| 2570 | + | |
| 2571 | + | |
2548 | 2572 | | |
2549 | 2573 | | |
2550 | 2574 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | | - | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
470 | 472 | | |
471 | | - | |
| 473 | + | |
472 | 474 | | |
473 | 475 | | |
474 | 476 | | |
| |||
479 | 481 | | |
480 | 482 | | |
481 | 483 | | |
| 484 | + | |
482 | 485 | | |
483 | 486 | | |
484 | | - | |
| 487 | + | |
| 488 | + | |
485 | 489 | | |
486 | 490 | | |
487 | | - | |
| 491 | + | |
| 492 | + | |
488 | 493 | | |
489 | 494 | | |
490 | 495 | | |
| |||
0 commit comments