Repository navigation
v1.20.0
·
192 commits
to master
since this release
Added
-
Word-jump cursor keys. The viewer's horizontal cursor now
honours macOS-standard chords plus vim word motions:- Option+Left / Option+Right (Alt+Left/Right on Linux) — jump
by whitespace-separated word. - Home / End (Cmd+Left / Cmd+Right via Terminal.app forwarding)
— jump to line start / end. w— next word;b— previous word;e— same as
wfor now (the viewer has no "yank to end of word" so the two
semantics collapse).^— line start;$— line end.
Visual mode (
v) extends the selection through word jumps too, so
Option+Right aftervselects a word at a time.Word definition is the simple "maximal run of non-whitespace"
segmentation — same as terminalreadlineand most editors'
default. Indexed by char position; multi-byte / wide chars (CJK,
emoji) get the same approximation as the existing single-cell
h/larrows.Covered by 7 unit tests on
next_word_col/prev_word_col. - Option+Left / Option+Right (Alt+Left/Right on Linux) — jump