diff options
author | Thanos Apollo <[email protected]> | 2024-04-17 16:04:48 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-04-17 16:04:48 +0300 |
commit | 046584f86d9fa049a1409f868f00bfdaef0f53ef (patch) | |
tree | 23bb6d1beb912a02ae01ad1abf4b10fe2180721d /gnosis.el | |
parent | 3cba3ae7e49e9024a8dd95148383816f0efc80bd (diff) |
[Feature] gnosis-dashboard: View notes of deck
- From gnosis-dashboard of decks, press RET to view all notes of deck
Diffstat (limited to 'gnosis.el')
-rw-r--r-- | gnosis.el | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1690,7 +1690,7 @@ QUERY: String value," (mapcar 'string-to-number (gnosis-dashboard-deck-note-count id))) when (listp item) do (cl-remove-if (lambda (x) (and (vectorp x) (zerop (length x)))) item) - collect (prin1-to-string item))) + collect (format "%s" item))) (defun gnosis-dashboard-output-decks () "Return deck contents for gnosis dashboard." @@ -1719,7 +1719,11 @@ QUERY: String value," (gnosis-suspend-deck (string-to-number (tabulated-list-get-id))) (gnosis-dashboard-output-decks) - (revert-buffer t t t)))) + (revert-buffer t t t))) + (local-set-key (kbd "RET") #'(lambda () (interactive) + (gnosis-dashboard "notes" + (gnosis-collect-note-ids + :deck (string-to-number (tabulated-list-get-id))))))) (defun gnosis-dashboard-edit-note (&optional dashboard) "Get note id from tabulated list and edit it. |