Blue Star

by Wang Guoshi
5
4
3
2
1
Score: 45/100

Description

Category: Learning & Knowledge Management

The Blue Star plugin helps you convert your notes into structured Anki flashcards with a variety of parsing modes and flexible configuration options. It allows you to create cards from either the current file or an entire directory, with support for headings, sections, custom delimiters, or regular expressions. You can filter files by tag or path and assign default decks, models, and tags for consistent card generation. With document-level overrides and support for AnkiConnect, it provides fine control over how and where cards are synced.

Reviews

No reviews yet.

Stats

9
stars
853
downloads
0
forks
547
days
521
days
521
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
5
total issues
2
open issues
3
closed issues
38
commits

Latest Version

a year ago

Changelog

[1.2.5] - 2024-12-05

Fixed

  • Fixed some bugs.

README file from

Github

Blue Star: Effortlessly Transform Your Obsidian Notes into Anki Flashcards

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.

Features

  • Two Ways to Create Cards:
    • Create cards from current file using the star (⭐) icon or command
    • Create cards from a specified directory using the moon-star (🌙) icon or command
  • Multiple Parsing Modes: Choose from pre-defined modes based on headings, sections, or custom delimiters. Craft powerful flashcards using regular expressions for advanced control.
  • Directory and Tag Filtering: Generate flashcards from specific directories or files tagged with particular keywords, enabling focused learning.
  • Granular Control: Decide whether to add new cards only or update existing ones in Anki. Configure default decks, models, and tags for seamless workflow integration.
  • Document-Level Settings: Fine-tune card creation behavior within individual notes. Override default settings for ultimate flexibility.
  • Intuitive Setup: Clear instructions guide you through the initial AnkiConnect configuration.

Installation

  1. In Obsidian, go to Settings -> Community plugins.
  2. Click Browse and search for "Blue Star".
  3. Click Install and then Enable to activate the plugin.

Getting Started

1. Install AnkiConnect

Blue Star requires the AnkiConnect plugin for communication with Anki.

  • Search for AnkiConnect (code: 2055492159) in Anki's Add-ons menu.
  • After installation, restart Anki.
  • Optional but Recommended: Install a Markdown plugin in Anki (e.g., "Markdown and KaTeX", code: 1786114227) for enhanced card display.

 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"
    ]
}

2. Configure Blue Star

  • Access Blue Star's settings in Obsidian's plugin settings.
  • Configure your preferred parsing mode, default Anki settings, and directory settings.
  • Set up directory path and optional file tags for batch processing.

3. Generate Flashcards

You have two ways to generate flashcards:

  1. From Current File:

    • Click the star (⭐) icon in the ribbon
    • Or use the command Blue Star: Create Anki cards from current file
  2. From Directory:

    • Click the moon-star (🌙) icon in the ribbon
    • Or use the command Blue Star: Create Anki cards from directory
    • Make sure to configure the directory path in settings

Monitor the progress notifications in Obsidian's status bar.

Parsing Modes

Blue Star offers the following parsing modes:

  • Section :: Subsection: Creates two-field cards from headings and their immediate subheadings.
  • Heading :: Paragraph: Generates two-field cards from headings and their corresponding content blocks.
  • Multi-Subsection: Produces multi-field cards by extracting content from all subheadings under a main heading.
  • Multi-Subparagraph: Creates multi-field cards by dividing content under a heading into separate fields based on paragraphs.
  • Regex: Empowers you to define custom card and field extraction rules using regular expressions.
  • Custom Delimiter: Allows you to specify unique start, end, and field separator strings for card generation.

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'
```

Section :: Subsection

Generates cards with 2 fields based on heading and subheading blocks. Example card:

Front:

Back:

Heading :: Paragraph

Generates cards with 2 fields based on heading and the content block under the heading. Example card:

Front:

Back:

Multi-Subsection

Generates cards with multiple fields based on each subheading block under a heading. Example card:

Front:

Back:

Multi-Subparagraph

Generates cards with multiple fields based on each content block under a heading. Example card:

Front:

Back:

Custom delimiter

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:

Single delimiter

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:

Regex

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.

Document-Level Configuration

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-deck
  • model / anki-model / note-type / anki-note-type
  • tag / anki-tag / card-tag / anki-card-tag
  • parser / parser-mode / match / match-mode (Options: section-subsection, heading-paragraph, multi-subsection, multi-subparagraph, regex, custom-delimiter, single-delimiter)
  • heading / heading-level
  • regex
  • flags / regex-flag / flag / regex-flags
  • card-start
  • field-separator / field-split / field
  • card-end
  • update / 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)

Deck Tip

You can specify Anki's multi-level decks using ::, for example: Deck::SubDeck.

Support and Feedback

Encountered an issue or have a suggestion? Please open an issue on the GitHub repository.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Regex Find and Replace
4 years ago by Martin Eder
Plugin for Obsidian, providing search/replace functionality which supports regular expressions and selections.
Dynamic Highlights
4 years ago by nothingislost
An experimental Obsidian plugin that highlights all occurrences of the word under the cursor
Linkify
4 years ago by Matthew Chan
braincache
4 years ago by XSPGMike
braincache obsidian plugin
Bulk Rename
4 years ago by Oleg Lustenko
Aosr
4 years ago by linanwx
Aosr is Another Obsidian plugin for Spaced Repetition.
Note Synchronizer
4 years ago by Songchen Tan
Synchronizes Obsidian notes to Anki in a breeze 💨️
Repeat
4 years ago by Andre Perunicic
Review notes using periodic or spaced repetition.
Awesome Flashcard
4 years ago by AwesomeDog
Handy Anki integration for Obsidian.
Global Search and Replace
3 years ago by Mahmoud Fawzy Khalil
A plugin to do a global search and replace in all your Obsidian vault files.
Flashcard Learning
3 years ago by Gaétan Muck
Obsidian plugin. Uses flashcard system to learn things across own notes.
text2anki-openai
3 years ago by Mani Batra
Auto Anki
3 years ago by ad2969
Using AI to automate card creation for Spaced Repetion in Anki
Flashcards LLM
3 years ago by Marco Pampaloni
Use Large Language Models (such as ChatGPT) to automatically generate flashcards from obsidian notes
Flashcard Generator
3 years ago by ChloeDia
Obsidian Plug-in to automatically create a set of questions/answers on your notes !
File Explorer++
3 years ago by kelszo
A plugin for https://obsidian.md, which enables the ability to hide and pin specific files and folders in the file explorer by applying custom filters.
QB Reader Parser
3 years ago by Jacob Barta
QBReader parsing for quiz bowl answerlines
Vocabulary Cards
3 years ago by Eugene Myazin
An easy way to display vocabulary words as flashcards and as a list
AnkiSync+
3 years ago by RochaG0
Mochi Cards Pro
3 years ago by Hayden Carpenter
Create flashcards on Mochi.cards using the API provided by Mochi's Pro subscription in Obsidian.
R.E.L.A.X.
2 years ago by Syr
Regex Obsidian Plugin
Augmented Canvas
2 years ago by Léopold Szabatura
Supercharge your Obsidian canvas experience with AI features.
Tag Links
2 years ago by Zacchary Dempsey-Plante
A plugin for Obsidian that allows tags to be opened as links using a hotkey.
LinkMagic
2 years ago by AndyReifman
Regex Mark
2 years ago by Mara-Li
Yanki
2 years ago by Eric Mika
An Obsidian plugin that syncs flashcards from a folder in your vault to Anki. Pure Markdown syntax. No fuss.
Better Recall
2 years ago by FlorianWoelki
A better spaced repetition and recall plugin for Obsidian inspired by Anki.
Flashcards
5 years ago by Alex Colucci
🎴 An Anki plugin for Obsidian.md
Export to Anki
5 years ago by Pseudonium
Script to add flashcards from text/markdown files to Anki
Mochi Cards Exporter
5 years ago by kalbetre
Mochi Cards Exporter Plugin for Obsidian
Find and replace in selection
5 years ago by Dmitry Savosh
Obsidian plugin. Find and replace in selection.
Regex Pipeline
5 years ago by No3371
An Obsidian plugin that allows users to setup custom regex rules to automatically format notes.
Spaced Repetition
5 years ago by Stephen Mwangi
Fight the forgetting curve by reviewing flashcards & entire notes on Obsidian
Anki Sync
5 years ago by debanjandhar12
Obsidian plugin to make flashcards and sync them to Anki
AnkiBridge
4 years ago by JeppeKlitgaard
Yet Another Obsidian Anki Bridge.
Simple Quiz
a year ago by Ivan Kalmar
Creating simple quizzes.
AI-AnkiSync
a year ago by goev
Memodack
a year ago by Pavlo Kobyliatskyi
Your second language memory tool
Hide Commands in Menu
a year ago by bomian98
Obsidian Plugin, hide different commands in different menus.
AutoMover
a year ago by Al0cam
Move files and notes with specified names into their designated folders according to rules you define.
HiNote
a year ago by Kai
Add comments to highlighted notes, use AI for thinking, and flashcards for memory.
Anki Integration
a year ago by Noah Boos AKA Rift
Create flashcards from your notes with a seamless interface, structuring them with metadata and syncing effortlessly via AnkiConnect.
aDHL
a year ago by tine-schreibt
The Dynamic Highlights Plugin, but with hotkeys, more options and sorting; works well with Highlightr.
FileName Styler
a year ago by Marc Feininger
An Obsidian plugin to hide, customize, and decorate file names in the sidebar using regex and customizable profiles.
Regex Line Filter
a year ago by 64MM4-KN1F3
A note filtering plugin for Obsidian
Come Through
a year ago by mntno
An Obsidian plugin for creating and reviewing flashcards.
Custom Selected Word Count
a year ago by banisterious
Custom Selected Word Count for Obsidian
Auto Replacer
10 months ago by Alecell
A live text replacement plugin that applies automatic formatting, corrections, or custom replacements in real-time. Define your own regex-based rules and transformation logic to modify text dynamically as you type.
Simple Anki Sync
10 months ago by Lukas Mayr
Kindle Vocab
9 months ago by Truong Gia Bao
Generate the markdown version of your Vocabulary Builder in Kindle, and put it in your Obsidian Vault.
URL Formatter
8 months ago by Thomas Snoeck
Automatically formats specific URLs pasted into Obsidian into clean Markdown links.
Dictionary Lexicon
3 months ago by Alvin
Look up words and improve vocabulary by using flash card style cards.
Anki Helper
3 months ago by Dusk
Decks
3 months ago by Xherdi Lika
An Obsidian Flashcards plugin
Card Forge
2 months ago by Carl Sverre
Convert notes into printable cards.