-
Notifications
You must be signed in to change notification settings - Fork 66
Questionable use of wiki#journal#get_all_nodes() #403
Description
Description
Long-time wiki.vim user here. I recently updated an old fork of the plugin, and my :WikiJournalPrev/:WikiJournalNext calls have gone from nearly instantaneous execution to taking upwards of 5 seconds. Perhaps there are other new internals to blame, but this looks to be the fault of the wiki#journal#get_all_nodes() call in wiki#journal#go(). In my case, this entails matching 3000+ journal pages for each step through daily files (e.g., if I want to go from 2025-02-13.md to 2025-02-14.md), and appears to be done from scratch each call.
Is this a known drawback and experienced by others with 1000s of journal files? Any particular reason the logic has changed for this command (relative to ~1.5 years ago)? Would be happy to dive further if there's a planned change, but I've otherwise not done much more looking for the time being.
Here are my wiki_journal settings, in case that's useful:
let g:wiki_journal = {
\ 'frequency' : 'daily',
\ 'date_format' : {
\ 'daily' : '%Y-%m-%d',
\ 'weekly' : '%Y-w%V',
\ 'monthly' : '%Y-m%m',
\ },
\}I'm also using the latest version of wiki.vim in Neovim 0.10.4 on Arch linux.
Thanks @lervag for the great plugin and any help on this!