5 Commits

Author SHA1 Message Date
giardn a54a3002e2 Update vimwiki.txt - Issue #795: VimwikiRebuildTags 2026-04-30 12:15:09 -06:00
giardn 389533bbbb Update tags.vim
Remove stale entries for files no longer on disk
2026-04-30 12:15:09 -06:00
xtbqimuxmvtx 92e911c25e Fixed to include default options first, markdown as example 2026-04-29 18:26:52 -06:00
xtbqimuxmvtx 70e3aa519b Update README.md lazy install
Fixed to declare variables inline as per lazy convention
2026-04-29 18:26:52 -06:00
xtbqimuxmvtx 9edd8724c8 Update README.md 2026-04-29 18:26:52 -06:00
5 changed files with 51 additions and 18 deletions
+6 -10
View File
@@ -64,24 +64,20 @@ jobs:
opt: [
# "vint",
"-n vim_7.4.2367",
"-n vim_8.2.5172",
"-n vim_9.0.2190",
"-n vim_9.1.0786",
"-n vim_7.3.429",
"-n vim_8.1.0519",
# TODO add me when test works on Vim, 9.0
# -- Currently I experienced some surprised due to defaults
# -- tinmarino 2023-03-10
# "-n v9.0.1396",
# This build isn't currently working with vim-testbed:
# "-n nvim_0.10.2",
"-n nvim_0.3.8",
# Cannot quote as it is expanded from $OPT after quote removal
# So I decided to escape the *
# "-n vim_7.4.1099 -f '[a-k]*.vader'",
# "-n vim_7.4.1546 -f 'l*.vader'",
# "-n vim_8.0.0027 -f '[m-z]*.vader'",
"-n vim_7.4.1099 -f '[a-k]*.vader'",
"-n vim_7.4.1546 -f 'l*.vader'",
"-n vim_8.0.0027 -f '[m-z]*.vader'",
]
steps:
# This action is required to fetch the code to test
+7 -8
View File
@@ -17,11 +17,10 @@ RUN git checkout de8a976f1eae2c2b680604205c3e8b5c8882493c
# Build vim and neovim versions we want to test
WORKDIR /
RUN install_vim -tag v7.4.2367 -name vim_7.4.2367 -build
RUN install_vim -tag v8.2.5172 -name vim_8.2.5172 -build
RUN install_vim -tag v9.0.2190 -name v9.0.2190 -build
RUN install_vim -tag v9.1.0786 -name v9.1.0786 -build
# TODO: This one doesn't build - vim-testbed seems way out of date:
# TODO: tag neovim:v0.10.2, name nvim_0.10.2
# (Format as install_vim instances above.)
RUN install_vim -tag v7.3.429 -name vim_7.3.429 -build
RUN install_vim -tag v7.4.1099 -name vim_7.4.1099 -build
RUN install_vim -tag v7.4.1546 -name vim_7.4.1546 -build
RUN install_vim -tag v8.0.0027 -name vim_8.0.0027 -build
RUN install_vim -tag v8.1.0519 -name vim_8.1.0519 -build
RUN install_vim -tag v9.0.1396 -name v9.0.1396 -build
RUN install_vim -tag neovim:v0.3.8 -name nvim_0.3.8 -build
+22
View File
@@ -10,6 +10,8 @@
- [Pathogen](#installation-using-pathogen)
- [Vim-Plug](#installation-using-vim-plug)
- [Vundle](#installation-using-vundle)
- [Lazy](#installation-using-lazy)
- [Basic Markup](#basic-markup)
- [Lists](#lists)
- [Key Bindings](#key-bindings)
@@ -142,6 +144,26 @@ vim +PluginInstall +qall
```
#### Installation using [Lazy](https://github.com/folke/lazy.nvim)
Add repository within `require('lazy').setup` call in your vimrc (or for plugins file ie. /lua/plugins/, do the same within a `return{}` statement).
If you are unfamiliar with lua, note that the brackets `{`, `}` need a closing comma (`},`) if you are adding this to an existing function like the .setup call.
``` { 'vimwiki/vimwiki' } ```
**Example with options (Change syntax to markdown)**:
``` lua
{
'vimwiki/vimwiki',
init = function()
vim.g.vimwiki_path = '~/vimwiki/'
vim.g.vimwiki_syntax = 'markdown'
vim.g.vimwiki_ext = 'md'
end,
}
```
#### Manual Install
Download the [zip archive](https://github.com/vimwiki/vimwiki/archive/dev.zip)
+7
View File
@@ -47,6 +47,13 @@ function! vimwiki#tags#update_tags(full_rebuild, all_files) abort
let wiki_base_dir = vimwiki#vars#get_wikilocal('path')
let tags_file_last_modification = getftime(vimwiki#tags#metadata_file_path())
let metadata = s:load_tags_metadata()
" Remove stale entries for files no longer on disk
let l:ext = vimwiki#vars#get_wikilocal('ext')
for pagename in keys(metadata)
if !filereadable(wiki_base_dir . pagename . l:ext)
call remove(metadata, pagename)
endif
endfor
for file in files
if all_files || getftime(file) >= tags_file_last_modification
let subdir = vimwiki#base#subdir(wiki_base_dir, file)
+9
View File
@@ -980,6 +980,7 @@ Vimwiki file.
*:VimwikiRebuildTags*
Rebuilds the tags metadata file for all wiki files newer than the metadata
file.
Stale entries for files that have been deleted or moved are removed automatically.
Necessary for all tags related commands: |vimwiki-syntax-tags|.
:VimwikiRebuildTags! does the same for all files.
@@ -4019,6 +4020,7 @@ Contributors and their Github usernames in roughly chronological order:
- @jiamingc
- Alex Claman (@claman)
- @qadzek
- Nathan Giard (@giardn)
==============================================================================
@@ -4038,6 +4040,13 @@ master is retained as a legacy mirror of the dev branch.
This is somewhat experimental, and will probably be refined over time.
2026.04.08~
Fixed:~
* Issue #795: VimwikiRebuildTags now removes stale entries for files
that have been deleted or moved
2024.01.24~
New:~