Browse Source

vimrc: source links from vimwiki-index; dict from tag index

VimwikiMakeLink() now draws from the list of existing vimwiki pages.
Ctrl-n / Ctrl-p draw from the list of all tags, which includes Pinboard
tags.

Arguably maybe these should use the same source.
master
Brennen Bearnes 1 year ago
parent
commit
6db24bfc10
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      home/.vim/vimrc

+ 2
- 2
home/.vim/vimrc View File

@ -273,7 +273,7 @@ let mapleader = ","
" completion and dictionary stuff for Ctrl-P,Ctrl-N - uses an
" index built by an embedded script on my vimwiki index for
" keyword completion:
set dictionary+=~/notes/vimwiki_index
set dictionary+=~/notes/tag-index
set complete=.,w,b,u,t,i,k
" there can be many of these
@ -968,7 +968,7 @@ let mapleader = ","
call fzf#run({
\ 'options': '--reverse',
\ 'sink': function("<SID>AppendAtCursor"),
\ 'source': 'find ~/notes/vimwiki/ -maxdepth 1 -name "*.wiki" -printf "[[/%f]] \n"'
\ 'source': "sed 's/^/[[\\//; s/$/]]/' ~/notes/vimwiki-index"
\ })
endfunction


Loading…
Cancel
Save