summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-11-10 16:27:47 +0200
committerThanos Apollo <[email protected]>2024-11-10 16:27:47 +0200
commit419234bcaade183755155850f929ae58d3912785 (patch)
treedc505624e3bfc1b50840385c0da31911c489b687
parentb30a06fc16c18b6de7d5a21facf2b5fd8d90b613 (diff)
completing-read: Adjust for fido-mode.
-rw-r--r--gnosis.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/gnosis.el b/gnosis.el
index 8fbc721..35c01e7 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -95,7 +95,8 @@ framework's minibuffer."
(defcustom gnosis-completing-read-function
(cond ((or (bound-and-true-p ivy-mode)
(bound-and-true-p helm-mode)
- (bound-and-true-p vertico-mode))
+ (bound-and-true-p vertico-mode)
+ (bound-and-true-p fido-mode))
#'completing-read)
(t #'ido-completing-read))
"Function to use for `completing-read'."
@@ -699,7 +700,8 @@ Also see `gnosis-string-edit'."
(let* ((interval (car (gnosis-review-algorithm id success)))
(next-review-msg (format "\n\n%s %s"
(propertize "Next review:" 'face 'gnosis-face-directions)
- (propertize (format "%s" interval) 'face 'gnosis-face-next-review))))
+ (propertize (format "%s" interval) 'face
+ 'gnosis-face-next-review))))
(if (search-backward "Next review" nil t)
;; Delete previous result, and override with new this should
;; occur only when used for overriding review result.
@@ -2648,7 +2650,6 @@ DATE: Integer, used with `gnosis-algorithm-date' to get previous dates."
(gnosis-dashboard--streak dates (cl-incf num) (- date 1))
num)))
-;; TODO: Optionally, add dates where no review was made.
(defun gnosis-dashboard-output-average-rev ()
"Output the average daily notes reviewed for current year.