-
Notifications
You must be signed in to change notification settings - Fork 66
:WikiJournalNext and :WikiJournalPrev moves to non-existent files #266
Copy link
Copy link
Closed
Description
Related to #260 .
Description
WikiJournalNext or WikiJournalPrev moves to non-existent notes.
See below example files created for the below steps.
WikiJournalNext. Steps.
- Open existing file 2022-12-30-1242.md;
- Run WikiJournalNext
- Result: Buffer opens for non-existent file named 2022-12-30.md
Expected: Next existing file is opened (2022-12-31-1243.md).
WikiJournalPrev. Steps:
- Open existing file 2022-12-30-1242.md;
- Run WikiJournalPrev
- Result: Buffer opens for non-existent file named 2022-12-29.md
Expected: Previous existing file is opened (2022-12-31-1243.md).
Minimal working example
``
.
├── test.vim
└── wiki
├── diary
│ ├── 2022-12-29-1241.md
│ ├── 2022-12-30-1242.md
│ ├── 2022-12-31-1243.md
└── index.md
```vim
set nocompatible
set runtimepath^=~/.local/plugged/wiki.vim
filetype plugin indent on
syntax enable
nnoremap q :qall!<cr>
let g:wiki_cache_persistent = 0
let g:wiki_filetypes = ['md']
let g:wiki_write_on_nav = 1
let g:wiki_root = fnamemodify('wiki', ':p')
let g:wiki_link_extension = ''
let g:wiki_link_target_type = 'md'
let g:wiki_journal = {
\ 'name': 'diary',
\ 'index_use_journal_scheme': v:false,
\}
runtime plugin/wiki.vim
silent edit wiki/index.md
WikiJournalIndex
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels