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:
@@ -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