Browse Source

vim: preview fragments, split window for fzf stuff

Puts tag finding atop screen, fragment menu at bottom.

Adds a preview invocation for fragments.
main
Brennen Bearnes 5 months ago
parent
commit
4560426038
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      home/.vim/vimrc

+ 6
- 4
home/.vim/vimrc View File

@ -875,9 +875,10 @@ let mapleader = ","
" current buffer
function! s:FragmentMenu()
call fzf#run({
\ 'options': '--reverse',
\ 'options': ['--reverse', '--preview={}'],
\ 'sink': '.r !',
\ 'source': 'find ~/bin/ -maxdepth 1 -name "fragment-*" -printf "%f\n"'
\ 'source': 'find ~/bin/ -maxdepth 1 -name "fragment-*" -printf "%f\n"',
\ 'down': '50%'
\ })
endfunction
@ -1017,12 +1018,13 @@ let mapleader = ","
call <SID>AppendAtCursor(bracketed)
endfunc
" Make a link from an fzf-found page:
" Make a link from an fzf-found page or known tag name:
function! s:VimwikiMakeLink()
call fzf#run({
\ 'options': ["--reverse", "--preview=notes-tag-summary {}"],
\ 'sink': function("<SID>AppendAtCursorAsVimwikiLink"),
\ 'source': "cat ~/notes/tag-index"
\ 'source': "cat ~/notes/tag-index",
\ 'up': '50%'
\ })
endfunction


Loading…
Cancel
Save