Age | Commit message (Collapse) | Author |
|
Simarly to gnosis-add-note recent changes, more extensible & flexible.
This makes it easier to maintain & add new note types in the future.
|
|
vc should also be used to "stage" and "commit" changes to db.
|
|
|
|
This reverts commit 2473e9127a8f8ece2bcb1052d5450834bbbbb4c8.
During the this pull request on MELPA
<https://github.com/melpa/melpa/pull/8890>
Nicholas Vollmer pointed out that length= does not exist in Emacs <
28.1, but since we are using compat we can still use it.
This was also suggested by Philip Kaludercic in this email in
emacs-devel:
<https://lists.gnu.org/archive/html/emacs-devel/2024-01/msg00682.html>
I verified this by running emacs-27.2, length= was available thanks to
compat
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- Added `gnosis-note-types` variable to store available note
types (MCQ, Cloze, Basic, Double, y-or-n)
- Updated `gnosis-add-note` function to dynamically call corresponding
note creation functions based on selected type
- Updated interactive prompt in `gnosis-add-note` to display available
note types
This commit enhances the flexibility & extensibility of note creation
|
|
- Updated gnosis-dir to use `locate-user-emacs-file` for consistent file location
- Updated gnosis-images-dir to use `expand-file-name` for consistent filepath
- Updated gnosis-db to use `expand-file-name` for consistent filepath in emacsql-sqlite initialization
|
|
|
|
|
|
- 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
|