Doom preset: the missing evil commands !453

merged merged by cmc on 2026-11-22 07:57 UTC · krz/orgstar:issue-111-evil-commands into main

Discussion

cmc

Closes #111.

Added to the Doom preset, on the Mac and on iOS with a hardware keyboard:

  • gi (the ^ mark, set when insert state ends), g; and g, (goto-chg's rules, span 8), gJ (normal and visual), & and g& with :s, :&, :&&, :%&&.
  • Registers "1–"9 (the kill ring, as evil reads them), "-, and read-only "., ":, "%, "/.
  • Motions ( and ), text objects is/as and it/at.
  • Folds zC, zO, zR, zM, zr, zm as Doom binds them in Org, through five new commands (org.fold.open-subtree, open-all, close-all, more, less) with catalog entries in every language. iOS now runs the org.fold.* commands, including the existing za, zo, zc.
  • Scrolling: C-e, C-y, and zl, zh, zL, zH (which move nothing while lines wrap).

Tests: VimEvilTests compares 117 key sequences with evil and goto-chg through the Emacs oracle and has unit tests for each command; FoldLevelTests covers the fold states; KeymapTests the new bindings. swift test and both Xcode builds pass.

Manual: 03-keys.org documents the commands and reduces "Not available" to what is still missing.

Not checked in a running app: the scrolling and fold glue in Modal.swift and MobileEditor+Modal.swift.