summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-07-10 01:37:04 +0300
committerThanos Apollo <[email protected]>2024-07-10 01:37:04 +0300
commit266790312fff722ae40e69e576fba88ec5a8cb00 (patch)
tree914f69bc39068b524372536aaa36bfe4b76cd7db /gnosis.el
parentfc61cc38230e0f87b9e1913c2cf84d3ec2038517 (diff)
gnosis-dashboard-notes: Make columns adjustable to window-width
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/gnosis.el b/gnosis.el
index 8c9cbe6..37be8cc 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -2017,12 +2017,12 @@ QUERY: String value,"
(cl-assert (listp note-ids) t "`note-ids' must be a list of note ids.")
(pop-to-buffer "*gnosis-dashboard*")
(gnosis-dashboard-mode)
- (setf tabulated-list-format [("Main" 30 t)
- ("Options" 20 t)
- ("Answer" 25 t)
- ("Tags" 25 t)
- ("Type" 10 t)
- ("Suspend" 2 t)]
+ (setf tabulated-list-format `[("Main" ,(/ (window-width) 4) t)
+ ("Options" ,(/ (window-width) 6) t)
+ ("Answer" ,(/ (window-width) 6) t)
+ ("Tags" ,(/ (window-width) 5) t)
+ ("Type" ,(/ (window-width) 10) T)
+ ("Suspend" ,(/ (window-width) 6) t)]
tabulated-list-entries (cl-loop for id in note-ids
for output = (gnosis-dashboard-output-note id)
when output