anki-enhanced-cloze icon indicating copy to clipboard operation
anki-enhanced-cloze copied to clipboard

Hide Cloze, Show only contextual relevant ones

Open itsmarble opened this issue 1 year ago • 2 comments

It would be very helpful if there was the possibility to hide individual clozes. For example, when I query an exam scheme, only the elements of a certain level (and higher-ranking ones) are on the screen, so that it is not overloaded - I do not mean that the others are covered, but are not displayed at all. I have always used the cloze text template with attached documentation for this, unfortunately it only works to a limited extent. A similar function would be fantastic for this add-on here.

What is behind >>> (i.e., three consecutive greater-than signs) is generally initially hidden. This section is only revealed immediately if text is queried that is behind it. Example:

Section 1 >>>Section 2. If a cloze text within Section 1 is queried, everything from >>> is initially hidden. However, if a cloze text within Section 2 is queried, the entire text is immediately displayed.

[[ and ]] What is within two square brackets ([[ and ]]) is also generally initially hidden. The entire contents of the bracket are only displayed from the beginning if something within these square brackets is queried. Example:

The capital of Germany is [[since {{c2::1990}}]] {{c1::Berlin}}. If it is queried what the capital of Germany is (= cloze text 1), the additional information "since 1990" is initially hidden. If the second cloze text position is queried (Since when is Berlin the capital of Germany?), the contents of the square brackets are immediately revealed.

You can use >>> both outside and inside (!) of [[ ]]. The use of >>> within a [[ ]]-bracket makes sense to reveal their contents only gradually. Example:

Definitions Theft (§ 242 StGB) Removal [[is {{c1::the breaking of foreign and the establishment of new, not necessarily perpetrator-owned custody.}} >>>Custody is {{c2::the actual control of a person over a thing,}} >>>which {{c3::is driven by a natural will to control.}}]]

Movable [[is a thing, if...]]

Intent to appropriate [[is...]] If two sections with [[ and ]] follow each other immediately as in this example:

[[{{c3::District courts}} are divided into {{c1::departments.}}]]

[[{{c4::Regional courts}} are divided into {{c2::chambers.}}]] ...you can write || instead of the inner ]][[:

[[{{c3::District courts}} are divided into {{c1::departments.}}

||{{c4::Regional courts}} are divided into {{c2::chambers.}}]] You can also use || alone to quickly divide related information into individual packages:

{{c3::District courts}} are divided into {{c1::departments.}}||

{{c4::Regional courts}} are divided into {{c2::chambers.}}` The sentence from which nothing is queried is then initially hidden.

and If text is queried that is between and , everything that follows the respective queried position is initially hidden with >>>. This can be useful, for example, with longer definitions. Example:

An attempt has failed if

{{c1::the perpetrator, according to his subjective perception}}

{{c2::cannot complete the act with the means available to him}}

{{c3::without a temporal break.}} If the first cloze text position is queried ("the perpetrator, according to his subjective perception"), everything that follows, for example, is initially hidden.

(See https://thomaskahn.de/jura-vorlagen/#/dokumentation)

itsmarble avatar Aug 03 '23 16:08 itsmarble