Blue Star is an Obsidian plugin that simplifies the process of creating Anki flashcards from your notes. With a variety of built-in parsing modes and customization options, Blue Star empowers you to efficiently turn your knowledge into memorable study material.
Settings -> Community plugins.Browse and search for "Blue Star".Install and then Enable to activate the plugin.Blue Star requires the AnkiConnect plugin for communication with Anki.
If the connection fails, check the AnkiConnect configuration as follows:
{
"apiKey": null,
"apiLogPath": null,
"ignoreOriginList": [],
"webBindAddress": "127.0.0.1",
"webBindPort": 8765,
"webCorsOrigin": "http://localhost",
"webCorsOriginList": [
"http://localhost",
"app://obsidian.md"
]
}
You have two ways to generate flashcards:
From Current File:
Blue Star: Create Anki cards from current fileFrom Directory:
Blue Star: Create Anki cards from directoryMonitor the progress notifications in Obsidian's status bar.
Blue Star offers the following parsing modes:
Below is an example text demonstrating the built-in generation modes (The setting for heading level is 2):
# Example
## export and import
Named Export and Import
### export
- Named Export
```js
export function foo()...
```
### import
- Named Import
```js
import {foo} from './example'
```
Generates cards with 2 fields based on heading and subheading blocks. Example card:
Front:
Back:
Generates cards with 2 fields based on heading and the content block under the heading. Example card:
Front:
Back:
Generates cards with multiple fields based on each subheading block under a heading. Example card:
Front:
Back:
Generates cards with multiple fields based on each content block under a heading. Example card:
Front:
Back:
Generates cards based on custom start, field separator, and end delimiters.
Note:
# Example
<!-- card start -->
Custom Delimiter Card Front
<!-- field separator -->
Custom Delimiter Card Back
<!-- card end -->
Front:
Back:
Generates cards based on custom start, field separator, and end delimiters.
Note:
# Example
Custom Delimiter Card Front
<!-- field separator -->
Custom Delimiter Card Back
Front:
Back:
Generates cards based on regular expressions. If you create a useful regex, please share it on the plugin's GitHub page. Many thanks!
If you are not familiar with writing regular expressions (don't worry, neither am I), the Obsidian_2_Anki plugin provides some useful regex patterns. You can find them on its introduction page, which also includes usage examples. Many thanks to Obsidian_2_Anki.
When using regex patterns from Obsidian_2_Anki with this plugin, set the regex flags to gm. Obsidian_2_Anki regex introduction page: Regex.
You can configure Anki card generation for a specific document. Document-level settings override the default settings. You don't need to configure all options; only the ones specified in the document block will override the defaults.
Customize card creation for individual notes using code blocks with the following format:
```anki
deck: YourDeckName
model: YourModelName
tag: YourTagName
parser: section-subsection
```
or
```
anki
deck: YourDeckName
model: YourModelName
tag: YourTagName
parser: section-subsection
```
Available options:
deck / anki-deckmodel / anki-model / note-type / anki-note-typetag / anki-tag / card-tag / anki-card-tagparser / parser-mode / match / match-mode (Options: section-subsection, heading-paragraph, multi-subsection, multi-subparagraph, regex, custom-delimiter, single-delimiter)heading / heading-levelregexflags / regex-flag / flag / regex-flagscard-startfield-separator / field-split / fieldcard-endupdate / upsert (Values: true or false)single / single-field (Values: true or false)html / html-break / html-line-break (Values: true or false)ignore (Values: true or false)You can specify Anki's multi-level decks using ::, for example: Deck::SubDeck.
Encountered an issue or have a suggestion? Please open an issue on the GitHub repository.