diff --git a/.vim/ftplugin/pandoc/wiki.vim b/.vim/ftplugin/pandoc/wiki.vim index 6a0b2d3..17f4b1e 100644 --- a/.vim/ftplugin/pandoc/wiki.vim +++ b/.vim/ftplugin/pandoc/wiki.vim @@ -16,3 +16,8 @@ func! GetContext() endfunc com! -nargs=0 GetContext :call GetContext() +function! Put(str) + put = a:str +endfunction + +com! -nargs=0 AnkiDeck call fzf#run(fzf#wrap({'source': 'get-anki-decks', 'sink': function('Put')}))