docs(parity): document new commands and extend keymap harness coverage
Update the README command tables for the full :Nuwiki*/:Vimwiki* surface and add command-registration assertions (removeCheckbox, catUrl, and the other parity entry points) to both the Vim and Neovim keymap harnesses. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -104,10 +104,14 @@ endif
|
||||
let s:both_forms = [
|
||||
\ 'Index', 'TabIndex', 'UISelect', 'Goto', 'FollowLink', 'Backlinks',
|
||||
\ 'NextLink', 'PrevLink', 'BaddLink', 'RenameFile', 'DeleteFile',
|
||||
\ 'MakeDiaryNote', 'MakeYesterdayDiaryNote', 'MakeTomorrowDiaryNote',
|
||||
\ 'MakeDiaryNote', 'TabMakeDiaryNote', 'MakeYesterdayDiaryNote',
|
||||
\ 'MakeTomorrowDiaryNote',
|
||||
\ 'DiaryIndex', 'DiaryGenerateLinks', 'DiaryNextDay', 'DiaryPrevDay',
|
||||
\ 'TOC', 'GenerateLinks', 'CheckLinks', 'SearchTags', 'GenerateTagLinks',
|
||||
\ 'RebuildTags', '2HTML', '2HTMLBrowse', 'All2HTML', 'Rss',
|
||||
\ 'NormalizeLink', 'RenumberList', 'RenumberAllLists',
|
||||
\ 'ListToggle', 'IncrementListItem', 'DecrementListItem',
|
||||
\ 'CatUrl',
|
||||
\ ]
|
||||
for s:suffix in s:both_forms
|
||||
for s:prefix in ['Nuwiki', 'Vimwiki']
|
||||
@@ -121,6 +125,22 @@ let s:ok = exists(':NuwikiInstall') == 2
|
||||
call s:record(s:ok ? 1 : 0, 'surface.NuwikiInstall',
|
||||
\ s:ok ? '' : ':NuwikiInstall not registered')
|
||||
|
||||
" Asymmetric / compat-only spellings: the canonical :Nuwiki* name differs
|
||||
" from the upstream :Vimwiki* name (or has no canonical counterpart because
|
||||
" nuwiki already exposes it under a clearer name).
|
||||
for s:cmd in [
|
||||
\ 'NuwikiTableAlign', 'VimwikiTableAlignQ', 'VimwikiTableAlignW',
|
||||
\ 'NuwikiChangeSymbol', 'VimwikiChangeSymbolTo', 'VimwikiListChangeSymbolI',
|
||||
\ 'NuwikiChangeSymbolInList', 'VimwikiChangeSymbolInListTo',
|
||||
\ 'VimwikiDeleteLink', 'VimwikiRenameLink', 'VimwikiGenerateTags',
|
||||
\ 'NuwikiRemoveCheckbox', 'VimwikiRemoveSingleCB',
|
||||
\ 'NuwikiRemoveCheckboxInList', 'VimwikiRemoveCBInList',
|
||||
\ ]
|
||||
let s:ok = exists(':' . s:cmd) == 2
|
||||
call s:record(s:ok ? 1 : 0, 'surface.' . s:cmd,
|
||||
\ s:ok ? '' : ':' . s:cmd . ' not registered')
|
||||
endfor
|
||||
|
||||
" ===== Pure-VimL command invocation (cursor movement) =====
|
||||
" :NuwikiNextLink / :NuwikiPrevLink wrap search('\[\[', …) so they run
|
||||
" entirely in VimL and move the cursor without touching the LSP.
|
||||
|
||||
@@ -131,10 +131,14 @@ vim.defer_fn(function()
|
||||
local both_forms = {
|
||||
'Index', 'TabIndex', 'UISelect', 'Goto', 'FollowLink', 'Backlinks',
|
||||
'NextLink', 'PrevLink', 'BaddLink', 'RenameFile', 'DeleteFile',
|
||||
'MakeDiaryNote', 'MakeYesterdayDiaryNote', 'MakeTomorrowDiaryNote',
|
||||
'MakeDiaryNote', 'TabMakeDiaryNote', 'MakeYesterdayDiaryNote',
|
||||
'MakeTomorrowDiaryNote',
|
||||
'DiaryIndex', 'DiaryGenerateLinks', 'DiaryNextDay', 'DiaryPrevDay',
|
||||
'TOC', 'GenerateLinks', 'CheckLinks', 'SearchTags', 'GenerateTagLinks',
|
||||
'RebuildTags', '2HTML', '2HTMLBrowse', 'All2HTML', 'Rss',
|
||||
'NormalizeLink', 'RenumberList', 'RenumberAllLists',
|
||||
'ListToggle', 'IncrementListItem', 'DecrementListItem',
|
||||
'CatUrl',
|
||||
}
|
||||
for _, suffix in ipairs(both_forms) do
|
||||
for _, prefix in ipairs({ 'Nuwiki', 'Vimwiki' }) do
|
||||
@@ -148,6 +152,21 @@ vim.defer_fn(function()
|
||||
record(exists, 'surface.NuwikiInstall',
|
||||
exists and '' or ':NuwikiInstall not registered')
|
||||
end
|
||||
-- Asymmetric / compat-only spellings: the canonical :Nuwiki* name differs
|
||||
-- from the upstream :Vimwiki* name (or has no canonical counterpart because
|
||||
-- nuwiki already exposes it under a clearer name).
|
||||
local extra_surface = {
|
||||
'NuwikiTableAlign', 'VimwikiTableAlignQ', 'VimwikiTableAlignW',
|
||||
'NuwikiChangeSymbol', 'VimwikiChangeSymbolTo', 'VimwikiListChangeSymbolI',
|
||||
'NuwikiChangeSymbolInList', 'VimwikiChangeSymbolInListTo',
|
||||
'VimwikiDeleteLink', 'VimwikiRenameLink', 'VimwikiGenerateTags',
|
||||
'NuwikiRemoveCheckbox', 'VimwikiRemoveSingleCB',
|
||||
'NuwikiRemoveCheckboxInList', 'VimwikiRemoveCBInList',
|
||||
}
|
||||
for _, cmd in ipairs(extra_surface) do
|
||||
local exists = vim.fn.exists(':' .. cmd) == 2
|
||||
record(exists, 'surface.' .. cmd, exists and '' or (':' .. cmd .. ' not registered'))
|
||||
end
|
||||
|
||||
-- ===== Pure-Lua command invocation (cursor movement) =====
|
||||
-- :NuwikiNextLink / :NuwikiPrevLink wrap the link-search motion and run
|
||||
|
||||
Reference in New Issue
Block a user