Coder Social home page Coder Social logo

anki-keep-empty-note's Introduction

Tag notes with no card

Rationale

Sometime, you press «Empty cards...», and anki also delete note. Because when a note has no more card, anki deletes it. (see [https://github.com/Arthur-Milchior/anki/blob/master/documentation/deletion.md] for more information about deletion)

However, maybe you didn't actually want to delete the whole note and lose its entire content. May be you thought anki were going to delete a few card which became empty, not realizing it will in fact delete EVERY cards, and thus delete the note, and its fields, and its tag...

With this add-on, when you press «Empty cards», cards are deleted as usual, with one exception. If deleting the cards leave the note empty, then the cards are not deleted. Instead, the tag NoteWithNoCard is added to those notes, and the browser is opened to show those notes.

You can still delete those notes if that's what you want, but you have either to disable this add-on and restart anki, or to delete them manually from the browser.

Warning

The tag NoteWithNoCard is automatically removed from notes which now have a card, when you use «empty cards». This is probably what you want, so that the tag states the truth.

Note that a note with no cards can also occurs because of the synchronization process. In which card, this add-on won't save the note. Instead, you can save it using add-on 1135180054.

Version 2.0

Port by lovac42

Internal

This add-on modifies the method aqt.main.AnkiQt.onEmptyCards.

Links, licence and credits

Key Value
Copyright Arthur Milchior [email protected]
Based on Anki code by Damien Elmes [email protected]
License GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
Source in https://github.com/Arthur-Milchior/anki-keep-empty-note
Addon number 2018640062

anki-keep-empty-note's People

Contributors

arthur-milchior avatar

Watchers

 avatar James Cloos avatar

Forkers

lovac42

anki-keep-empty-note's Issues

Set upper limit of Anki version

Arthur, I'm sure you know this, but I think it could help to find this info in the description or at least this issue here.

This add-on is disadvantageous on more recent Anki versions (I notice it on 2.1.35).

  • Anki by itself got a new function that can keep notes with no valid cards
  • when additionally habing this add-on enabled, Anki will not even detect cards when you have empty 1st cards. It will not even detect cards of notes that have some valid (= non-empty) cards and some empty cards.

So, as far as I see, Anki has taken this add-on's purpose over, and the add-on inhibits the normal "check for empty cards function".

Because of this, I suggest you set an upper limit on Ankiweb: the latest Anki version that did not incorporate this add-on's function.

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.