Commit graph

7 commits

Author SHA1 Message Date
GenjiFujimoto 16943ccab1 Add ankicard link and button
make selectedText const

add a new keyboard shortcut: ctrl+shift+n to make a card

if word is empty, warn and exit

rename

return after ankisearch

remove temp vars

change the anki action's text depending on selected text

reformat article maker

the anki button is shown under the heading

revert to the previous way of constructing gddictname

to reduce size of the diff
2023-04-06 09:06:57 +08:00
Ren Tatsumoto 3173a13493 replace magic number 2023-03-23 07:58:48 +08:00
Ren Tatsumoto 94fefe8ce9 use raw string in post template 2023-03-23 07:58:48 +08:00
Ren Tatsumoto 06946e559a fix typo 2023-03-23 07:58:48 +08:00
Ren Tatsumoto 01c661b575
Allow adding "ankisearch:" links in external programs. (#412)
* Add ankisearch link

* auto indent

* use raw string

* refuse to run if ankiconnect is not enabled

---------

Co-authored-by: GenjiFujimoto <dratschuk.d@gmail.com>
2023-03-22 10:04:54 +08:00
Ren Tatsumoto 1a0af48a7a
Improve Anki support (#384)
* allow the user to configure word,text,sentence Anki fields

* if sentence field is not set, don't add it

* mark the target word bold, if possible

* Update how to connect with anki.md

* rename default field names
2023-03-16 19:55:47 +08:00
Xiao YiFang 0a2661f986 add 'send to anki' function
users can configure the ankiconnect to use together with anki
2022-05-21 17:34:22 +08:00