Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excessive Sync Times when used with Excalidraw Plugin #288

Closed
niposch opened this issue Oct 18, 2021 · 10 comments · Fixed by #289
Closed

Excessive Sync Times when used with Excalidraw Plugin #288

niposch opened this issue Oct 18, 2021 · 10 comments · Fixed by #289

Comments

@niposch
Copy link
Contributor

niposch commented Oct 18, 2021

This issue occurs when this plugin is used in conjunction with the obsidian excalidraw plugin ⇒ https://github.com/zsviczian/obsidian-excalidraw-plugin
The excalidraw plugin stores the created drawings as .excalidraw.md files and this causes obsidian-to-anki to scan these files.

As these files are simple md files containing a giant json code block in which the excalidraw information is stored, they tend to be rather big files (100'000k characters or more) this leads to first time syncs of these files to take a lot of time.
(have a few of those files in my vault and the anki sync took well over 2 hours and had to be aborted after that)
I do not want to create anki cards from these files and therefore an option to ignore certain files (similar to a .gitignore) file would make it possible to ignore every file ending with .excalidraw.md using this syntax: **/*.excalidraw.md
This would solve the excessive sync time I was experiencing by not scanning the files that cause it.

@niposch
Copy link
Contributor Author

niposch commented Oct 20, 2021

I got a working prototype ignore setting implemented in #289 that addresses this issue

@ananthuthilakan
Copy link

yeah pls fix this

@ananthuthilakan
Copy link

I got a working prototype ignore setting implemented in #289 that addresses this issue

The author is away since Dec 2020 and unlikely to get any update soon.

@niposch
Copy link
Contributor Author

niposch commented Nov 6, 2021

I have provided a prerelease version of the plugin, including the ignore setting feature. Available here: https://github.com/niposch/Obsidian_to_Anki/releases/tag/3.5.0_prerelease1

@ananthuthilakan
Copy link

ananthuthilakan commented Nov 6, 2021

I have provided a prerelease version of the plugin, including the ignore setting feature. Available here: https://github.com/niposch/Obsidian_to_Anki/releases/tag/3.5.0_prerelease1

thank you for the prerelease much appreciated👌

In fact i have followed the method given in this thread #230 to compile your developmental version and tested in a TEST VAULT.

however didn't really used it in original vault because there was many content linked to ANKI.

thank you for the prerelease

@ananthuthilakan
Copy link

ananthuthilakan commented Nov 12, 2021

today i gave it a go in the main vault after backing up everything as suggested and Everything works good😊
great work @niposch 🥰🥰

@AppGo123
Copy link

HI,
I HAD A PROBLEM WITH "OBSIDIAN-TO-ANKI".
WHEN IT HAS THE .excalidraw FILES IT BLOCKS, SO WITH A LITTLE SEARCH I FOUND THIS POST.

I HAVE REPLACED THE FILES
https://github.com/niposch/Obsidian_to_Anki/releases/tag/3.5.0_prerelease1
IN THE PLUGIN FOLDER BUT IT STILL STOPS, I HAVE TO SPECIFY TO SKIP THE .excalidraw FILES,
IF DOVE

THANK YOU SO MUCH FOR SUPPORTING A PLUGING WHICH UNFORTUNATELY IS NOT UPDATED :)

@niposch
Copy link
Contributor Author

niposch commented Nov 18, 2023

HI, I HAD A PROBLEM WITH "OBSIDIAN-TO-ANKI". WHEN IT HAS THE .excalidraw FILES IT BLOCKS, SO WITH A LITTLE SEARCH I FOUND THIS POST.

I HAVE REPLACED THE FILES https://github.com/niposch/Obsidian_to_Anki/releases/tag/3.5.0_prerelease1 IN THE PLUGIN FOLDER BUT IT STILL STOPS, I HAVE TO SPECIFY TO SKIP THE .excalidraw FILES, IF DOVE

THANK YOU SO MUCH FOR SUPPORTING A PLUGING WHICH UNFORTUNATELY IS NOT UPDATED :)

I've incorporated the recent fixes from this repo in the new release I did a couple of days ago, so installing this should make the plugin work again, and it includes the ignore setting.
https://github.com/niposch/Obsidian_to_Anki/releases/tag/3.5.0_prerelease2

To ignore excalidraw files, I've used this line in the ignore Setting: **/*.excalidraw.md

@AppGo123
Copy link

it works again :))
Thank you
how do I add other files or paths to ignore just use comma or semicolon **/*.excalidraw.md, file.md

@niposch
Copy link
Contributor Author

niposch commented Nov 19, 2023

one pattern per line. So you could do:

**/*.excalidraw
Home.md
templates/*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants