diff --git a/README.md b/README.md index 20b5c5e..04596d5 100644 --- a/README.md +++ b/README.md @@ -482,6 +482,8 @@ via `mappings. = false` in Neovim, or | `gLh` / `gLl` | Dedent / indent including the item's sublist | | `glr` | Renumber the current ordered list | | `gLr` | Renumber every ordered list in the buffer | +| `gl` | Set the current item's marker to `` — one of `-` `*` `#` `1` (`1.`) `i` (`i)`) `I` (`I)`) `a` (`a)`) `A` (`A)`) | +| `gL` | Set every item in the list to `` (same symbol keys) | | `gl` | Remove every completed item from the current list | | `gL` | Remove every completed item in the buffer | | `o` / `O` | Open a new line and continue the list marker (preserves any checkbox) | diff --git a/development/vimwiki-gap.md b/development/vimwiki-gap.md index b08bc2d..4196bd3 100644 --- a/development/vimwiki-gap.md +++ b/development/vimwiki-gap.md @@ -23,10 +23,14 @@ fix site. aliases; `follow_link_drop()` helper in `autoload/nuwiki/commands.vim`; true `:tab drop` tab-reuse wired in both clients (`lua/nuwiki/commands.lua` `open_uri` `'tabdrop'` case); `` repointed to tab-drop. -- [ ] **`gl` change-symbol mappings** — upstream's one-key bullet/number +- [x] **`gl` change-symbol mappings** — upstream's one-key bullet/number symbol change (`gl*` `gl#` `gl-` `gl1` `gla` `gli` … plus `gL…`) has no nuwiki keymap; only `:…ChangeSymbol*` commands exist. - _Fix:_ `lua/nuwiki/keymaps.lua` lists group, `ftplugin/vimwiki.vim` lists block. + _Fix:_ added normal-mode `gl{-,*,#,1,i,I,a,A}` (item) + `gL…` (whole list) in + `lua/nuwiki/keymaps.lua` lists group and `ftplugin/vimwiki.vim` Vim-branch + lists block, wired to the existing `list_change_symbol`. `1)` stays + command-only (upstream shadows it with `1.`); normal-mode only (server acts on + cursor item / whole list, not a visual range). - [ ] **`gl` / `gL` semantics diverge** — upstream = *remove checkbox* from item / list siblings; nuwiki rebinds to *remove done items*. Same keys, different effect (parity trap). Remove-checkbox is command-only in diff --git a/doc/nuwiki.txt b/doc/nuwiki.txt index 3f9bfdb..f55ca6d 100644 --- a/doc/nuwiki.txt +++ b/doc/nuwiki.txt @@ -452,6 +452,10 @@ Lists (normal mode) ~ gLl Indent the item including its sublist. glr Renumber the current ordered list. gLr Renumber every ordered list in the buffer. + gl Set the current item's marker to , where is one + of `-` `*` `#` `1` (1.) `i` (i)) `I` (I)) `a` (a)) `A` (A)). + For `1)` use `:NuwikiChangeSymbol 1)` (no single-key form). + gL Set every item in the list to (same symbol keys). gl Remove every completed item from the current list. gL Remove every completed item in the buffer. o Open a new line and continue the list marker (preserves