<leader>ww opens the currently active wiki.

The previous behavior was to open the index of the first wiki. This
change makes the command more consistent with similar mappings.
Closes #741.
This commit is contained in:
Rane Brown 2019-08-25 14:25:31 -06:00
parent a17a9826bd
commit 4458216760
2 changed files with 5 additions and 4 deletions

View File

@ -153,8 +153,9 @@ course.
[count]<Leader>ww
Open index file of the [count]'s wiki.
<Leader>ww opens the first wiki from |g:vimwiki_list|.
1<Leader>ww as above, opens the first wiki from |g:vimwiki_list|.
<Leader>ww opens the first wiki from |g:vimwiki_list| if no wiki is
open. Otherwise the index of the currently active wiki is opened.
1<Leader>ww opens the first wiki from |g:vimwiki_list|.
2<Leader>ww opens the second wiki from |g:vimwiki_list|.
3<Leader>ww opens the third wiki from |g:vimwiki_list|.
etc.

View File

@ -374,9 +374,9 @@ command! VimwikiShowVersion call s:get_version()
" <Plug> global definitions
nnoremap <silent><script> <Plug>VimwikiIndex
\ :<C-U>call vimwiki#base#goto_index(v:count1)<CR>
\ :<C-U>call vimwiki#base#goto_index(v:count)<CR>
nnoremap <silent><script> <Plug>VimwikiTabIndex
\ :<C-U>call vimwiki#base#goto_index(v:count1, 1)<CR>
\ :<C-U>call vimwiki#base#goto_index(v:count, 1)<CR>
nnoremap <silent><script> <Plug>VimwikiUISelect
\ :VimwikiUISelect<CR>
nnoremap <silent><script> <Plug>VimwikiDiaryIndex