Exporting - eevdriet/obsidian-anki GitHub Wiki
By defining export rules, you can export any notes you have defined in Obsidian into Anki!
Each rule exports all notes that are found under the Search folder
from the Format
with the specified Note type
.
Below is an example of the default settings for a newly created export rule:
General
These settings set some general properties of the rule and the notes it exports. Note the following:
- When the
Note type
is reset, some other settings that depend on it (such as theObsidian link
) are also reset - The
Deck
that the notes are exported into can be set in multiple places. See the note page to find out how ObsidiAnki determines which deck is used
Format
This setting sets the format to scan for notes in Obsidian as a template or regular expression. See the related pages for more information on how to define the format correctly.
Fields
- Based on the given format, some fields will be set in Anki when the note is exported.
Enabling
Override empty?
determines what happens to fields that are not set:- If enabled, the fields are cleared when exported to Anki
- If disabled, the fields retain the value that is currently set in Anki
- If
Obsidian link
is enabled, a link to the note's location in Obsidian is added to the specified field. Note that the field is overridden if already set by the format
Files
These settings determine which files/folders are searched for notes for this export rule.
- The
Search folder
sets the top folder that is searched, which is/
(the vault root) by default. If you have many files in your vault, narrowing the search for notes to export notes can be useful to reduce export times! - The
File patterns
allows you to restrict which files in the search folder are used for exporting notes. Files are filtered by the micromatch package through its glob patterns