Repository navigation
feat(windows): Vim mode in the SQL editor - #4338
Merged
Merged
Conversation
…and pages over folds
…keeps marks through every edit and replays insert moves
…w every edit, and Enter, + and - move
…hem and let a click drop a pending Visual command
…replay any recorded editor key and place M by the rows on screen
…ape left in an insert's undo step and retry a refused clipboard write
…P, append and paste on an empty line, ip at the end and words with variation selectors
# Conflicts: # windows/docs/decisions/README.md
…caret at an undone selection's start and keep inserts whole past the undo limit
This was referenced Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
TablePro.Editor.Model/Vim: a C# port of the macOS engine (motions, operators, counts, registers, marks, macros, dot repeat, text objects, search, Visual and Visual Line, Replace, the command line).uinside a replayed macro undoes the macro's own step. A macro replays typed text; keys Insert mode leaves to the editor (arrows, Ctrl shortcuts) stay out of it, as on macOS (0017, Consequences).j,k, Ctrl+D/U/F/B and Visual moves; linewise operators,V,pandotake a fold whole;gj/gkmove by wrapped rows;H/M/Lread the rows on screen;zo,zc,za,zR,zM,zz,zt,zb, Ctrl+E and Ctrl+Y.recording @qon the query tab's bar, where macOS shows its badge.:wruns the query,:qcloses the tab,:tabnext/:tabprevious/gt/gTselect tabs.%and a failedfhandle a pending operator, countedp/Ppaste whole copies of one register, a Visual text object moves Visual's ends, marks follow every edit,aandpstay on an empty line,ipkeeps the last character, word motions step over variation selectors, and Enter,+,-move to a line's first character. The macOS engine is unchanged here.windows/docs/decisions/0017-vim-mode.md; 0002's Consequences and the AGENTS map point to it.Test plan
tests/TablePro.Editor.Model.Tests/Vim: every macOS suite inapple/TableProTests/Core/Vimported (mock undo counts became real undo checks), plus folds and rows, undo and status, command edges, key routing and tab targets. 896 pass on macOS.tests/TablePro.Editor.Tests/VimTests.cs: key routing, block caret, Replace-mode commits, ex commands andzc/zoin a real editor (Windows jobs).tests/TablePro.App.UITests/VimModeTests.cs: the Settings switch, then editing, pending keys, Visual mode and:win a query tab, with screenshots 180 to 183 (Windows jobs).verify.sh --platform windows buildandtest: PASS.Screenshots
Before: the query bar and Settings had no Vim badge or switch. After (Arm64 CI run, light and dark):