Skip to content

Commit fa36baa

Browse files
committed
Fix #+ATTR_ID: keyword for incremental-reading-mode
1 parent e9692b3 commit fa36baa

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

README.org

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
* Open the org note related the card from Anki!
1+
* Open the original org-note related the card from Anki!
22
#+ATTR_HTML: :width 300px
33
[[file:icons/unicorn.png]]
44

5-
You don't need any sophisticated works inside org files to open the related org
6-
file. Just make some Anki cards from org files and Press =Ctrl+O= key in Anki when you
7-
are reviewing one of the cards. This plugin makes workflow that going back to your original
8-
org-heading and text easily without any extra backlink field.
5+
Just make some Anki cards from org files and Press =Ctrl+O= key in Anki when you
6+
are reviewing one of the cards. You don't need any sophisticated works inside
7+
org files to open the related org file. This plugin makes workflow that going
8+
back to your original org-heading and text easily without any extra backlink
9+
field.
910

1011
* How to Use
1112
#+ATTR_HTML: :width 500px
@@ -18,15 +19,15 @@ org-heading and text easily without any extra backlink field.
1819
=Config= Button.
1920
- Multiple org-directories are supported.
2021
3) Make your anki-card using [[https://github.com/eyeinsky/org-anki/][org-anki]] or [[https://github.com/louietan/anki-editor][anki-editor]].
21-
- This plugin handle cards only which are generated from =org= files.
22+
- This plugin handle cards only which are generated from =org= files using Emacs.
2223
4) When you are on =Review= or =Deck-Browser=, click the =Open Note= button or Press
2324
=Ctrl+O= key.
24-
- You can change the shortcut in the config window.
25-
- This plugin will search =card-id= through your org files entirely. If you
25+
- You can change the =Ctrl+O= shortcut in the config window.
26+
- This plugin will search =card id= through your org files entirely. If you
2627
have [[https://github.com/BurntSushi/ripgrep][ripgrep]] program in your system, this searching will much faster.
2728
* TODOs
28-
- [X] Implement a initial anki plugin.
29-
- [X] Support [[https://github.com/vascoferreira25/org-mode-incremental-reading][the org-mode-incremental-reading]]
29+
- [x] Implement a initial anki plugin.
30+
- [x] Support [[https://github.com/vascoferreira25/org-mode-incremental-reading][the org-mode-incremental-reading]]
3031
- =org-anki= and =anki-editor= use the tree structure for card design. But
3132
=org-mode-incremental-reading= adds a [[https://orgmode.org/manual/Drawers.html][property drawer]] for the card design to
3233
handle the long text such as book and article sytles.

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"use_index_cache": true,
66
"use_ripgrep": true,
77
"ripgrep_opts": "ripgrep -ni",
8-
"note_match": "^\\s*:(ANKI_NOTE_ID|ATTR_ID):\\s*\\\"?{note_id}\\\"?\\b",
8+
"note_match": "^\\s*(?:#\\+|:)(ANKI_NOTE_ID|ATTR_ID):\\s*\\\"?{note_id}\\\"?\\b",
99
"exec": "emacsclient -nce '(progn (select-frame-set-input-focus (selected-frame)) (find-file \"{org_file}\") (goto-char {char_pos_end}) (when (string-equal \"{note_type}\" \"ANKI_NOTE_ID\") (org-back-to-heading t)) (recenter))'",
1010
"shortcuts": {
1111
"open": "Ctrl+O"

0 commit comments

Comments
 (0)