Add visual mode, node registers, search and the jump list (stage 8c)

The rest of vim, on nodes. Visual mode takes in what lies between where
it started and the cursor: on the canvas, every node the rectangle from
one end's box to the other's touches; in the outline and the Note view,
the nodes in between in reading order. V takes whole branches, Ctrl+click
and Ctrl+drag pick with the mouse, and the operators take exactly what's
selected: d, y, > and <, M, and the pickers on every node at once.

Registers now hold text or nodes, so yy, dd and x keep what they take and
p, P and ]p paste it, layout and links included. "+ is the system
clipboard through arboard: nodes go there as Markdown in the user's
format (## headings, a --- tag list, the body), and come back whole while
the clipboard still holds them. clipboard = "unnamedplus" makes plain
yanks use it, as in vim.

. repeats the last change made with keys, with the text typed after it.
/ opens a Telescope-style search: fuzzy matches over titles, tags and
bodies, best first, with the note of the one you're on beside them; n
and N go on with it, and :find searches straight away. Each pane keeps a
jump list for Ctrl-o and Ctrl-i that crosses documents and reopens closed
ones. Capital marks lead into any document and, like the small ones, are
kept in memory.ron. gd follows a cross-link, and :marks, :jumps and
:registers list what they hold.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
skkeyeandClaude Opus 5.5 committed 2026-10-02 04:12:27 -04:00
1 parent abe3dc1d84
commit 7bec5bf3fc
45 files changed
+3922 -272

No files matched your search

+3
View File
@@ -27,6 +27,9 @@ unicode-segmentation = "1"
# Where each OS keeps settings and app data: %APPDATA% on Windows,
# ~/.config and ~/.local/share on Linux.
directories = "6"
# The system clipboard, for the "+ register: Windows, and X11 or Wayland on
# Linux. Images are left out (default features off): cumulus copies text.
arboard = { version = "3", default-features = false, features = ["wayland-data-control"] }
[lints.rust]
unsafe_code = "forbid"