Commit Graph
10430 Commits
Author SHA1 Message Date
Xinhe Wang b304905b35 Simplify KeyStrokeTrie.getData by delegating to getTrieNode 2025-09-05 13:14:34 +03:00
Xinhe Wang 3d19696f3b Fix casting error in KeyStrokeTrie.getEntries
Return an empty sequence if the prefix node is not found in `KeyStrokeTrie`.
Passing a non-existent prefix previously would result in a casting error.
2025-09-05 13:14:34 +03:00
Matt Ellis 572c24ff31 Insert text from incsearch end offset 2025-09-05 12:37:45 +03:00
Matt Ellis c4a43eef92 Support insert filename literally 2025-09-05 12:37:45 +03:00
Matt Ellis c22992c16c Extract find filename at cursor to VimSearchHelper 2025-09-05 12:37:45 +03:00
Matt Ellis 01a612ad60 Add insert filename under caret action 2025-09-05 12:37:45 +03:00
Matt Ellis 606e5c6a9f Add 'isfname' option, not yet applied
Relates to VIM-4018
2025-09-05 12:37:45 +03:00
Matt Ellis 93ef18b32c Remove unnecessary JvmField annotations 2025-09-05 12:37:45 +03:00
Matt Ellis fa4c62ebde Add insert big word at cursor literally action
Relates to VIM-2511
2025-09-05 12:37:45 +03:00
Matt Ellis c5f6b2e336 Add insert big word at cursor command line action
Relates to VIM-2511
2025-09-05 12:37:45 +03:00
Matt Ellis 1e27220eaa Support insert word literally
Inserting a word and inserting it literally is the same operation. No need for another action

Fixes VIM-2511
2025-09-05 12:37:45 +03:00
Matt Ellis b5484345f8 Add insert word under caret action for command line
Fixes VIM-2511
2025-09-05 12:37:45 +03:00
Matt Ellis 5d68ba26c2 Add insert current line literally action 2025-09-05 12:37:45 +03:00
Matt Ellis 5c8ca893e1 Insert current line by replaying keys 2025-09-05 12:37:45 +03:00
Matt Ellis 6aff6a07af Add insert current line in command line
Fixes VIM-2511
2025-09-05 12:37:45 +03:00
Matt Ellis c580aaceed Add insert register literally action
Fixes VIM-2511
2025-09-05 12:37:45 +03:00
Matt Ellis d204860a26 Remove write action from insert register action
Fixes VIM-3650
2025-09-05 12:37:45 +03:00
Matt Ellis 4bd4aefaca Add minor optimisation for simple register contents 2025-09-05 12:37:45 +03:00
Matt Ellis 161bb2b28b Insert register by replaying keys 2025-09-05 12:37:45 +03:00
Matt Ellis 4be143f4ff Fix move caret to previous big word to match Vim
The docs says it moves to the previous WORD, but in practice it moves to the previous whitespace character
2025-09-05 12:37:45 +03:00
Matt Ellis 4a86af9071 Fix move caret to next big word to match Vim
The docs says it moves to the next WORD, but in practice it moves to the next whitespace character
2025-09-05 12:37:45 +03:00
Matt Ellis 9a5339d8af Fix delete to use word instead of WORD 2025-09-05 12:37:45 +03:00
Matt Ellis b70f15584f Remove obsolete comments 2025-09-05 12:37:45 +03:00
Matt Ellis 38928e82c8 Extract insert literal command line tests 2025-09-05 12:37:45 +03:00
Matt Ellis aa5975485e Extract digraph command line tests 2025-09-05 12:37:45 +03:00
Matt Ellis b6be329a08 Add tests for saving history when cancelling ex field 2025-09-05 12:37:45 +03:00
Matt Ellis 1a566b70d9 Add cmd history before executing
But save to register after executing. Matches Vim behaviour
2025-09-05 12:37:45 +03:00
Matt Ellis b4eee5d45e Show indicator for current history entry 2025-09-05 12:37:45 +03:00
Matt Ellis 30dae9f4d9 Rename HistoryDownFilterAction and add tests 2025-09-05 12:37:45 +03:00
Matt Ellis 3ca51d0361 Rename HistoryDownAction and add tests 2025-09-05 12:37:45 +03:00
Matt Ellis f282131414 Rename HistoryUpFilterAction and add tests 2025-09-05 12:37:45 +03:00
Matt Ellis f5f14f308b Rename HistoryUpAction and add tests 2025-09-05 12:37:45 +03:00
Matt Ellis 6557169eec Remove unnecessary textExInput function 2025-09-05 12:37:45 +03:00
Matt Ellis ed402d3b26 Extract ToggleOverstrikeActionTest
Vim calls this "overstrike". We'll update terminology to match.
2025-09-05 12:37:45 +03:00
Matt Ellis 44cb65859b Extract MoveCaretToPreviousBigWordAction 2025-09-05 12:37:45 +03:00
Matt Ellis 84eb131cea Extract MoveCaretToNextBigWordAction 2025-09-05 12:37:45 +03:00
Matt Ellis 9ce2c2ba3a Extract MoveCaretToLineEndActionTest 2025-09-05 12:37:45 +03:00
Matt Ellis 549d4a722f Extract MoveCaretToLineStartActionTest 2025-09-05 12:37:45 +03:00
Matt Ellis 667890cb4d Extract InsertRegisterActionTest 2025-09-05 12:37:45 +03:00
Matt Ellis 1ebaa34bda Extract DeleteToCaretActionTest 2025-09-05 12:37:45 +03:00
Matt Ellis 310d90466b Extract DeletePreviousWordActionTest 2025-09-05 12:37:45 +03:00
Matt Ellis 822052358e Extract DeletePreviousCharActionTest 2025-09-05 12:37:45 +03:00
Matt Ellis d1eb1aeb4d Extract DeleteNextCharActionTest 2025-09-05 12:37:45 +03:00
Matt Ellis 8dd28cd257 Introduce CommandLineActionHandler base class 2025-09-05 12:37:45 +03:00
Matt Ellis 057259eba2 Move CommandKeyConsumer before CharArgumentConsumer 2025-09-05 12:37:45 +03:00
Matt Ellis 7f927ac62e Reorder register consumers 2025-09-05 12:37:45 +03:00
Matt Ellis ecceab3fd6 Rename SelectRegisterConsumer 2025-09-05 12:37:45 +03:00
Matt Ellis 3e18fcd7f1 Rename StartSelectRegisterConsumer 2025-09-05 12:37:45 +03:00
Matt Ellis 747ffa1e7f Move CommandCountTest.kt 2025-09-05 12:37:45 +03:00
Matt Ellis c3c581ceb6 Rename CommandConsumer to CommandKeyConsumer 2025-09-05 12:37:45 +03:00