-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: add AnkiConnect plugin support #29
Open
MarkoSagadin
wants to merge
3
commits into
Mochitto:main
Choose a base branch
from
MarkoSagadin:feature/ankiconnect
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is just great :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
## Importing your cards via CSV - Legacy feature | ||
|
||
<!-- prettier-ignore --> | ||
> ![NOTE] | ||
> This feature is considered legacy. Currently, the recommended way to import | ||
> cards is via AnkiConnect plugin. To use this feature, you need to set `"use legacy CVS output?"` | ||
> option in .ini config file to `True`. | ||
|
||
### Importing your cards | ||
|
||
Once you have processed your cards, they will be divided in cards with clozes | ||
and cards without clozes. Those will become two `.csv` files: | ||
`basic_anki_cards.csv` and `clozed_anki_cards.csv`. To import these, you have to | ||
open up Anki and press the "Import File" in the lower side of the main menu, or, | ||
if you prefer, you can use "File>Import" from the menu in the top-left of the | ||
Anki app. After selecting the `.csv` file, you have to let anki know that the | ||
separator used is `Comma`, select the right `note type` and the deck you wish | ||
the cards to be imported in. Also make sure to allow HTML in the cards, as they | ||
need it to work correctly. | ||
|
||
This is a screenshot of how this could look in your Anki (Anki's UI can change | ||
depending on the OS it is running on): | ||
 | ||
|
||
You can find more information on importing to Anki here: | ||
https://docs.ankiweb.net/importing.html | ||
|
||
### Importing your images | ||
|
||
You can import images automatically if you add the path to your | ||
[Anki media folder](https://docs.ankiweb.net/files.html#file-locations) in the | ||
config file. Images that are already present won't be added twice and will be | ||
skipped (based on filename). If you prefer checking the images before importing | ||
them manually, you can point to another folder or leave the default one. | ||
**Notice:** when images are copied, they lose their metadata: this is due to | ||
security, as others' could read your images metadata if you were to share your | ||
cards, and for how the python library that handles the copying process is | ||
implemented. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can turn this into a markdown link
[Legacy CSV imports]( ./docs/legacy_importing_cards_with_csv.md)
and put them in-line instead of as a foot-note