From 06c90adb7c3e50fe9b65f08c5b6a38956ba72572 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Tue, 8 Oct 2024 20:34:26 +0200 Subject: [PATCH] Add 'AnkiDeck' function --- .vim/ftplugin/pandoc/wiki.vim | 5 +++++ 1 file changed, 5 insertions(+) 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')}))