Obsidian_to_Anki

Script to add flashcards from text/markdown files to Anki

GPL-3.0 License

Stars
1.5K
Committers
9

Bot releases are hidden (Show)

Obsidian_to_Anki - Minor patch

Published by Pseudonium over 1 year ago

Whoops forgot to push a commit before..

Anyway, this should fix the syncing issue (which I guess is a pretty major bug...)

Big thanks to @ShootingKing-AM for help with this.

Obsidian_to_Anki - More error handling

Published by Pseudonium almost 4 years ago

  • Added error handling for unlocated media files
  • Added error handling for unrecognised note types
  • Fixed issue with adding new folders and then not opening settings to generate folder table before next run of plugin
Obsidian_to_Anki - Tag integration and folder settings

Published by Pseudonium almost 4 years ago

New features:

  • Option for script to recognise #tags as Anki tags in note fields
  • Settings for folder deck and tag

Bugfixes:

  • Fixed issue with remnote inline syntax conflicting with hierarchical tags in file tags
Obsidian_to_Anki - Settings visual improvement and command

Published by Pseudonium almost 4 years ago

Note type table is now collapsible, should make navigating settings easier.

Added a command to scan the vault, so that a hotkey can be assigned.

Bugfixes:

  • Fixed code being rendered with HTML escape characters
Obsidian_to_Anki - Proper error handling

Published by Pseudonium almost 4 years ago

The plugin no longer stops execution when an error is thrown, which was leading to problems such as IDs for added cards not being written. Errors are logged to the console instead.

Obsidian_to_Anki - More regex bugfixes

Published by Pseudonium almost 4 years ago

  • Fixed a bug of a note incorrectly being identified as having no cloze deletions because of stupid javascript global regex rules

Reminder to update AnkiConnect to latest version in order for plugin to function correctly.

Obsidian_to_Anki - Regex bugfixes and media performance improvement

Published by Pseudonium almost 4 years ago

  • Fixed bug with regex notes not updating properly
  • Media is now added by path instead of reading the media file data directly - should be much faster!
  • Removed some accidental log messages

Note that AnkiConnect needs to be updated to the latest version for the plugin to work properly.

Obsidian_to_Anki - Hotfix for highlights to clozes

Published by Pseudonium almost 4 years ago

Fixed the highlight regexp to work properly with multiple highlights in a paragraph

Obsidian_to_Anki - Code Syntax Highlighting and Regex Update

Published by Pseudonium almost 4 years ago

This update adds support for code syntax highlighting! Also, the regex switch has been removed - regex is now always enabled (you still have to input a custom regex), and you can now have both START END notes and regex notes scanned simultaneously.

Bugfixes:

  • Anki icon should look cleaner now, and will change with the css theme
  • Fixed issue of adding duplicates
Obsidian_to_Anki - Scheduling and Highlights update

Published by Pseudonium almost 4 years ago

This update adds two new features - the ability to schedule the script, and the ability to convert highlights to clozes for CurlyCloze to process!

Bugfixes:

  • Fixed bug with context algorithm
  • Default tag is now read properly from settings
  • Plugin now auto-converts Obsidian highlights to HTML highlights
Obsidian_to_Anki - Context Update

Published by Pseudonium almost 4 years ago

This update adds the ability to add 'context' to a note - this is the path of the file the card was generated from, and the position of the note within the heading tree, if any, of the file. Obsidian Plugin only.

Obsidian_to_Anki - Obsidian Plugin Update

Published by Pseudonium almost 4 years ago

Critical bugfix - fixes an issue that could've overwritten some users' files

Obsidian_to_Anki - Obsidian Plugin Update

Published by Pseudonium almost 4 years ago

Some bugfixes from the initial release.

Obsidian_to_Anki - Obsidian Plugin Update

Published by Pseudonium almost 4 years ago

It's finally here. Version 3 marks the release of the Obsidian_to_Anki as an Obsidian plugin! Some new features:

  • Full link support
  • Obsidian image embed and audio embed support
  • Inbuilt plugin settings - no longer have to edit config file directly!
  • Anki icon for running the script on the vault
  • Improved Add File Link

I'll still release the python script for each release however.

Obsidian_to_Anki - Winter Cleaning Update

Published by Pseudonium almost 4 years ago

This update kicks off a new period of script development by fixing a bunch of bugs:

  • UTF-8 error is now fixed
  • Note and Field Substitutions are no longer a thing - were just too buggy to be usable.
  • Fields logic for START END and STARTI ENDI is now more robust - can deal with fields in any order, as well as any number of optional fields
  • Script now properly ignores matches inside math or code
  • Script properly interprets %20 in file paths
  • Added media filenames are now stored in a dedicated 'data' file rather than the config file
  • Instead of throwing an error that stops execution, the script now prints a warning message if a card in a file is not present in Anki (if you deleted it in Anki without deleting the corresponding ID line), and skips over the card
  • The script no longer throws an error if "Vault" is specified but the vault name is not found in the path
  • CurlyCloze no longer converts cloze deletions in code
  • Single way to delete a note now - DELETE and then identifier on next line

A few bonus features:

  • Frozen fields are now a thing!
  • FILE TAGS and TARGET DECK can now be specified inline
  • Added Media is now stored in a dedicated Data file, rather than being stored in the config file
  • The script will now skip over files it's already scanned that haven't changed - should be useful for large vaults!

Also, most of the documentation has now been moved to a GitHub wiki! Made README much smaller.

By the way, you should delete your config files (try to save any custom regexps etc that you've made) - the script will regenerate a much shorter config file.

Obsidian_to_Anki - Obsidian update

Published by Pseudonium about 4 years ago

This update will be focused on adding some Obsidian integration.

Current features:

  • Link to the file that made the flashcard

Back to updating the script now! This should hopefully address #100.

Obsidian_to_Anki - Cloze update

Published by Pseudonium about 4 years ago

This update adds more syntax for working with cloze notes, via CurlyCloze. Anki's cloze syntax is now also supported when using CurlyCloze.

Bugfixes:

  • Fixed odd HTML parsing into a paragraph tag with an ID
  • Script no longer writes to a file if it hasn't changed anything
  • Files in a directory are now processed in 'natural' order
Obsidian_to_Anki - Automation Update

Published by Pseudonium about 4 years ago

This update allows you to automate the script more easily - the script will now try to open Anki in the correct profile if both Anki Path and Anki Profile are supplied.

Obsidian_to_Anki - Recursion Update

Published by Pseudonium about 4 years ago

This update allows you to call the script recursively on a folder, so that subfolders are also scanned.

Bugfixes:

  • Image tags should work properly (not sure how they worked before to be honest...)
  • Fixed issue with calling the script on a directory
  • Script now reloads config file if any exception occurs upon trying to load it
Obsidian_to_Anki - GUI, HTML comments and Setup Update

Published by Pseudonium about 4 years ago

Lots of new things in this update:

  • Updated GUI to make it even clearer
  • Script now has a setup file
  • IDs are now wrapped in HTML comments by default
  • Regex mode can now be configured to be on by default
  • Script now falls back to a command-line interface if Gooey isn't installed

Bugfixes:

  • Fixed issue with generating field substitutions dictionary
  • Fixed math formatting being incorrectly interpreted as HTML tags
  • Documentation made slightly clearer in certain places
  • Fixed issue with wrong name for directory