From 82b6bc9c60000545696398c30d4197ec77c6fda5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Fr=C3=B3es=20Franco?= Date: Sun, 31 May 2026 07:54:25 -0300 Subject: [PATCH] test(client): cover Vim/Neovim link-follow command surface + tab-drop Add SplitLink/VSplitLink/TabnewLink/TabDropLink/GoBackLink to both keymap harness command lists, plus a smoke check that nuwiki.commands.follow_link_drop is callable. Co-Authored-By: Claude Opus 4.7 --- development/tests/test-keymaps-vim.vim | 1 + development/tests/test-keymaps.lua | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/development/tests/test-keymaps-vim.vim b/development/tests/test-keymaps-vim.vim index 0a5f69f..4d66ca5 100644 --- a/development/tests/test-keymaps-vim.vim +++ b/development/tests/test-keymaps-vim.vim @@ -103,6 +103,7 @@ endif let s:both_forms = [ \ 'Index', 'TabIndex', 'UISelect', 'Goto', 'FollowLink', 'Backlinks', + \ 'SplitLink', 'VSplitLink', 'TabnewLink', 'TabDropLink', 'GoBackLink', \ 'NextLink', 'PrevLink', 'BaddLink', 'RenameFile', 'DeleteFile', \ 'MakeDiaryNote', 'TabMakeDiaryNote', 'MakeYesterdayDiaryNote', \ 'MakeTomorrowDiaryNote', diff --git a/development/tests/test-keymaps.lua b/development/tests/test-keymaps.lua index bed5a2c..382d1f6 100644 --- a/development/tests/test-keymaps.lua +++ b/development/tests/test-keymaps.lua @@ -130,6 +130,7 @@ vim.defer_fn(function() -- nuwiki-only maintenance command with no :Vimwiki* alias. local both_forms = { 'Index', 'TabIndex', 'UISelect', 'Goto', 'FollowLink', 'Backlinks', + 'SplitLink', 'VSplitLink', 'TabnewLink', 'TabDropLink', 'GoBackLink', 'NextLink', 'PrevLink', 'BaddLink', 'RenameFile', 'DeleteFile', 'MakeDiaryNote', 'TabMakeDiaryNote', 'MakeYesterdayDiaryNote', 'MakeTomorrowDiaryNote', @@ -167,6 +168,11 @@ vim.defer_fn(function() local exists = vim.fn.exists(':' .. cmd) == 2 record(exists, 'surface.' .. cmd, exists and '' or (':' .. cmd .. ' not registered')) end + do + local callable = type(require('nuwiki.commands').follow_link_drop) == 'function' + record(callable, 'direct.follow_link_drop_callable', + callable and '' or 'nuwiki.commands.follow_link_drop is not a function') + end -- ===== Pure-Lua command invocation (cursor movement) ===== -- :NuwikiNextLink / :NuwikiPrevLink wrap the link-search motion and run