GithubHelp home page GithubHelp logo

mzx102208 / anki-copy-note Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arthur-milchior/anki-copy-note

0.0 0.0 0.0 72 KB

An add-on to copy anki's note

License: GNU General Public License v3.0

Python 100.00%

anki-copy-note's Introduction

Copy notes

Copy cards, either as new cards, or preserving intervals, ease, etc., from the original card.

To copy a note:

  1. Open the card browser
  2. Select at least one note.
  3. Go to Edit > Note Copy. The keyboard shortcut is configurable; the default is Ctrl+C.

The copy preserves fields, tags, and decks.

Warnings

Bug in previous version

Before the 26th of September 2019, there was a bug in this add-on. Because of this bug, if you shared and imported a deck containing either:

  • a note and a copy of this note
  • two notes originally copied from the same note then importing this deck will fail. Only one of the multiple notes will be imported; the other will be detected as copy by anki, even if they have quite different content.

This add-on does two things to correct this bug.

Correcting your collection

The first time you open a profile with this add-on installed, it'll check whether your collection contains the bug. In this case it'll ask whether you want to correct it or not. It won't check again the next time you open it; indeed, this bug should not appear again. (Unless you use an old version of this add-on on another computer which is synchronized with the same collection. But normally, in this case, it'll be corrected when you update this add-on on the other computer).

Correcting imports with this bug

Anki will try to detect when this bug exists in a deck you import. In this case, it'll correct it and tell you to tell to the deck's author to update this deck. Since this changes the importer, a part of anki which should not be touched by an add-on whose purpose is only to copy notes, you can deactivate it in the configuration.

Empty cards

There is a potential caveat, which should not occur often nor have real consequences. You should note that empty cards are not copied. If you don't know what this means, you probably don't need to worry about it.

Incompatibilites

This add-on is currently incompatible with:

Configuration

Using the add-on configuration, you can:

  • change the shortcut.
  • decide whether to keep the original creation time or set it to the current time.
  • decide whether to keep interval, due date, number of lapses, etc...

Relate card

Add-on 413416269 allows the user to relate notes, so that cards of related notes are buried as siblings during reviews (only on Anki desktop). Relations are created using tags. You can configure this add-on to automatically relate a note and its copy by ensuring that they share a tag. More precisely, if they already have a relation tag, then the same one will be used in the new copied note. Otherwise, a new tag will be added to both.

All Configuration Options

  • Copy log (Default = True): Whether to also copy the review log of the selected cards
  • Preserve creation time (Default = True): The original card and note's creation time are preserved. Otherwise, it is set to the time of the copy.
  • Preserve ease, due, interval... (Default = True): Preserve all information not related to creation date
  • Shortcut: copy (Default = Ctrl+C): set a custom keyboard shortcut
  • correct import (Default = True): Whether to correct bugs in imported decks created by an old version of this add-on. You should set it to False if it interferes with other add-ons; otherwise, keeping it set to True should be all right.
  • current tag prefix (Default = relation_): the prefix of the tag used to relate notes, as in Bury related notes add-on
  • relate copies (Default = True): Add a tag to relate the original note and its copy for the Bury related notes add-on
  • tag prefixes (Default = ['relation_']): if a copied note's tag contain a prefix in this list, no prefix will be added. As in the Bury related notes add-on
  • tag for copies (Default = 'copy'): A tag added to the new notes, copied from another note.

Links, licence and credits

Key Value
Copyright Arthur Milchior [email protected]
Based on Kealan Hobelmann's addon 396494452 (for anki 2.0)
Based on Anki code by Damien Elmes [email protected]
License GNU AGPL, version 3 or later; http
Source in https://github.com/Arthur-Milchior/anki-copy-note
Addon number 1566928056

anki-copy-note's People

Contributors

arthur-milchior avatar ijgnd avatar mattcarmody avatar mzx102208 avatar snoyes avatar ukanuk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.