From dc38976f987cc640e4afc609370f38d950c48881 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Tue, 16 Apr 2024 14:02:31 +0300 Subject: 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. --- gnosis.el | 3 +-- 1 file changed, 1 insertion(+), 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)) -- cgit v1.2.3