anki-connect
anki-connect copied to clipboard
Deck and note type parameters for guiAddCards
It would be nice to be able to open the GUI entry window with the correct deck/note type already preselected, e.g. for creating a keyboard shortcut:
function addCard {
local deck=$1
local note=$2
# from package `httpie`
http --json POST localhost:8765 action=guiAddCards "params={\"deck\": \"$deck\", \"note_type=$note\"}"
}
# add these to your keybindings
addCard Japanese "Japanese (recall)"
addCard English Basic
something like that.
It would be even nicer to prefill fields with content that you can send over the API. I wanna take a look into this in the coming weeks...
I think this can also be closed.
@hgiesel Oh cool, this can be done now I assume?
Yes. Look at the documentation for guiAddCards.