diff options
author | bptato <nincsnevem662@gmail.com> | 2024-01-19 01:43:46 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-01-19 01:53:28 +0100 |
commit | 3c156384bade3e0e86a837b1b423d401af3cfdd2 (patch) | |
tree | f8cd1b8e82510a0bb2ef1a02de877f00617c965e /res | |
parent | 58ae65ed182a8a78d67756ec62f30261b9ef6c87 (diff) | |
download | chawan-3c156384bade3e0e86a837b1b423d401af3cfdd2.tar.gz |
Re-design word handling, add e, E, W, B, etc.
* Add functions for moving to the beginning/end of words (vi `b', `e'). * As it turns out, there are many possible interpretations of what a word is. Now we have a function for each reasonable interpretation, and the default settings match those of vi (and w3m in w3m.toml). (Exception: it's still broken on line boundaries... TODO) * Remove `bounds` from lineedit, it was horrible API design and mostly useless. In the future, an API similar to what pager now has could be added. * Update docs, and fix some spacing issues with symbols in the tables.
Diffstat (limited to 'res')
-rw-r--r-- | res/config.toml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/res/config.toml b/res/config.toml index 85ac9aa8..13691234 100644 --- a/res/config.toml +++ b/res/config.toml @@ -84,8 +84,12 @@ l = 'n => pager.cursorRight(n)' '0' = 'pager.cursorLineBegin()' '^' = 'pager.cursorLineTextStart()' '$' = 'pager.cursorLineEnd()' -b = 'pager.cursorPrevWord()' -w = 'pager.cursorNextWord()' +b = 'pager.cursorViWordBegin()' +e = 'pager.cursorViWordEnd()' +w = 'pager.cursorNextViWord()' +B = 'pager.cursorBigWordBegin()' +E = 'pager.cursorBigWordEnd()' +W = 'pager.cursorNextBigWord()' '[' = 'n => pager.cursorPrevLink(n)' ']' = 'n => pager.cursorNextLink(n)' '{' = 'n => pager.cursorPrevParagraph(n)' |