Add 'AnkiDeck' function

master
Hektor Misplon 2024-10-08 20:34:26 +02:00
parent 93a76e7940
commit 06c90adb7c
1 changed files with 5 additions and 0 deletions

View File

@ -16,3 +16,8 @@ func! GetContext()
endfunc endfunc
com! -nargs=0 GetContext :call GetContext() 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')}))