Age | Commit message (Collapse) | Author |
|
- Make sure note id value will not be changed
Change suggested by Nicholas Vollmer
|
|
- No need to have them as 'hidden' with double dash (--)
Change suggested by Nicholas Vollmer
|
|
Fix quotes
|
|
No need to warn user not to change the value of a defconst
Change suggested by Nicholas Vollmer
|
|
Change suggested by Nicholas Vollmer
|
|
cl-loop's do clause is an implicit progn.
|
|
Length= is available only for Emacs 28.1 >
Pointed out by Nicholas Vollmer
|
|
- Use keywords!
- Add argument for initial-interval, successful-reviews,
successful-reviews-c, fails-c, fails-t
- Use initial-interval which is could be different for every note,
instead of gnosis-algorithm-interval value.
- Depending on the value of new arguments for total/consecutive
fails/successful reviews calculate a different interval.
|
|
|
|
|
|
- Update note after all clozes have been revealed and add comment as reminder
|
|
Previous implementation was using total successful reviews in a row
|
|
- Remove previous unused user-input keyword
- Fix name typo
|
|
Having gnosis-edit-mode-map defined after gnosis-edit-mode does not
work, it needs to be defined before
|
|
|
|
Display answer for note with face depending on the value of success
|
|
Functions to add note type y-or-n,
gnosis-add-note--y-or-n is the hidden function that interacts with
gnosis-add-note-fields & gnosis-add-note-y-or-n that passes values interactively
|
|
|
|
Fix typos and previously used logic
|
|
Display next review value
|
|
Function to exit recursive edit & save changes
- Add gnosis-edit-exit on gnosis-edit-mode-map
|
|
Use italic face & change foreground value
This way we keep the same face but do not depend on markdown-mode
--Suggested by Protesilaos Stavrou--
|
|
|
|
|
|
Use cl-defun and add optional value for unsuspend, this function
should also be used to unsuspend notes
|
|
|
|
Redo checking if note is due
- Avoid depending on emacsql
- Seperate checking if it's suspended or not
|
|
|
|
|
|
|
|
Seperate the comparing of dates, emacsql is way too buggy for
comparing lists directly
|
|
- Remove unused progn
- Add todo's
|
|
|
|
Redo with if statement & update message
|
|
Flatten returned list
|
|
This should be renamed soon as well...
|
|
|
|
|
|
|
|
|
|
Function to export deck notes as & import them as DECK
|
|
"Export notes for deck in FILENAME."
FILENAME: The name of the file to save the exported deck.
This function prompts the user to provide a deck name and allows the
user to specify a filename for exporting notes belonging to that deck.
It then retrieves all the notes associated with the deck and exports
them.
The exported notes are formatted as an Emacs Lisp code block that can
be evaluated to recreate the deck with its associated notes. The
resulting code is saved to a file with the provided FILENAME and a
'.el' extension is added automatically.
Each note is exported using the `gnosis-export-note` function. The
generated code includes a call to `gnosis-define-deck` with the deck
name and all notes formatted as nested lists
|
|
"Export fields for note with value of id ID."
ID: Identifier of the note to export.
This function retrieves the fields of a note with the given ID and
inserts them into the current buffer. Each field is represented as a
property list entry. The following fields are exported: type, main,
options, answer, tags, extra-notes, image, and second-image.
The exported fields are formatted as key-value pairs with a colon,
e.g., :field value. The fields are inserted sequentially into the
buffer. For certain field values, like lists or nil, special
formatting is applied.
If the value is a list, the elements are formatted as strings and
enclosed in double quotes.
If the value is nil, the field is exported as :field nil.
All other values are treated as strings and exported with double
quotes.
The final exported note is indented using the `indent-region' function
|
|
Return a list of ID vlaues for each note with value of deck-id DECK
|
|
|
|
Add faces on gnosis.el
|
|
gnosis-edit-mode, a mode derived from emacs-lisp with that has keybind
C-c C-c to a #'lambda that evaluates & kills buffer, exiting
recursive-edit loop
|
|
Get due notes of specified deck-id
|
|
|
|
a loop to update values of fields using gnosis-update
|