WikiJournalNext/Prev does not work when the journal dir is the same that the wiki root dir
# Description
I want to keept all my notes (journal entries) in a single folder without any subfolders. The following configuration works as expected except for the journal related commands. Setting `root` to be the same fullpath `~/notes` does not solve the problem.
```lua
{
'lervag/wiki.vim',
init = function()
vim.g.wiki_root = '~/notes'
vim.g.wiki_journal = {
name = '',
root = ''
}
end
},
```
Commands such as `WikiJournal` and `WikiJournalIndex` work, but `WikiJournalNext`, `WikiJournalPrev`, `WikiJournalCopyToNext`, etc do not. I expected that after setting the wiki root directory and the journal directory to be the same, it will work with all the features, both journal specific and general wiki ones, when I am inside the wiki directory.
I suspect the problem lies in how the plugin detects whether the current file is inside the journal folder
关闭于 2026-01-02 2 条评论