Keep files (git, svn...) in add-on folders

AnkiWeb addon 225953877

Preserves specified files and folders, such as .git, .gitignore and .svn, inside add-on folders during updates, with configurable lists of what to keep.
AI-generated summary; may contain mistakes.

backup-maintenancedeveloper-tools

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2020-03-09
Anki versions
2.1.20~
License
GPL-3.0 (from the license file in the package)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON, Batchfile
Description language
en

Maintenance

abandoned

  • Last update or commit: 2020-03-09 (2428 days before the snapshot).
  • Commits in the last year: 0.
  • Issues: 0 open, 0 closed.
  • Pull requests: 0 open, 0 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.02.1.20+2020-03-09
History across monthly snapshots

Loading…

Similar addons

AnkiGit

Exports each Anki note as a Markdown file in a local Git repository, enabling snapshots, selective import, diff previews, conflict resolution, and automatic syncing.

importexportsync-integrationbackup-maintenance

1 votes 21% approval πŸ‘ 1 Β· πŸ‘Ž 0 ⭐ 5 Anki 25.09.2~ Updated 2026-05-28
Typst Math in Anki

Converts Typst math code into MathML or SVG for Anki flashcards, offering inline and block editors plus a replace function for $...$ equations.

formattingshortcuts

1 votes 21% approval πŸ‘ 1 Β· πŸ‘Ž 0 ⭐ 20 Anki 26.05~ Updated 2026-07-12
Obsidian Sync (Differential)

Exports Anki notes differentially to Markdown in Obsidian, mirroring deck folders, syncing images/video/audio, generating index files, and linking cards back to Anki.

exportsync-integration

13 votes 77% approval πŸ‘ 13 Β· πŸ‘Ž 0 ⭐ 25 Anki 26.08.1~ Updated 2026-08-09
Anki Markdown Notes

Imports and exports Markdown notes as Anki cards, converting Q/A entries into basic or reversed cards and mapping folders to decks.

card-creationimportexport

1 votes 0% approval πŸ‘ 0 Β· πŸ‘Ž 1 ⭐ 38 Anki 2.1.41~ Updated 2021-03-14
TRDict - Turkish Dictionary

Looks up Turkish definitions, example sentences, and pronunciations from the TDK dictionary, filling single or selected notes via editor/browser buttons, and generating cached pronunciation audio through a template filter.

card-creationcard-templatesdictionary

3 votes 44% approval πŸ‘ 3 Β· πŸ‘Ž 0 ⭐ 1 Anki 23.10.1~ Updated 2023-12-10

Description

This allow to keep files in the add-on folders. Not only user_files

README

Keep files not in add-on folder not in user files

Rationale

I want to keep a .git folder in my add-on folder, and still be able to update my add-ons. When an add-on is updated, the entire content of the add-on's folder is deleted, which means that .git is deleted too.

This add-on ensure that some files are keep. By default it's user_files (as by default in anki), .git, .gitignore and .svn.

Configuration

You can add or remove some files/folder to keep.

Internal

This change the methods aqt.addons.AddonManager.backupUserFiles and aqt.addons.AddonManager.restoreUserFiles.

Version 2.0

None

Links, licence and credits

Key Value
Copyright Arthur Milchior arthur@milchior.fr
Based on Anki code by Damien Elmes anki@ichi2.net
License GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
Source in https://github.com/Arthur-Milchior/anki-keep-files-in-addon-Folder
Addon number 225953877