summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-04-16 14:02:31 +0300
committerThanos Apollo <[email protected]>2024-04-16 14:02:31 +0300
commitdc38976f987cc640e4afc609370f38d950c48881 (patch)
treec95b39d0457b996b004750e81771b0c3287961c2 /gnosis.el
parent79bb82845a1213bfdb555735b0561f5a3983f0e6 (diff)
gnosis-dashboard: Style
- Adjust for notes with "\n" - Use format, prin1-to-string displays notes quotes ("") - Remove display-line-numbers-mode, this should be configured by the user.
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/gnosis.el b/gnosis.el
index 8179e2a..5235430 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -1612,7 +1612,7 @@ Return note ids for notes that match QUERY."
if (listp item)
collect (mapconcat #'identity item ",")
else
- collect (prin1-to-string item)))
+ collect (replace-regexp-in-string "\n" " " (format "%s" item))))
(cl-defun gnosis-collect-note-ids (&key (tags nil) (due nil) (deck nil) (query nil))
"Return list of note ids based on TAGS, DUE, DECKS, QUERY.
@@ -1741,7 +1741,6 @@ DASHBOARD: Dashboard to return to after editing."
(define-derived-mode gnosis-dashboard-mode tabulated-list-mode "Gnosis Dashboard"
"Major mode for displaying Gnosis dashboard."
:keymap gnosis-dashboard-mode-map
- (display-line-numbers-mode 0)
(setq tabulated-list-padding 2
tabulated-list-sort-key nil))