diff options
author | Thanos Apollo <[email protected]> | 2024-07-10 01:37:04 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-07-10 01:37:04 +0300 |
commit | 266790312fff722ae40e69e576fba88ec5a8cb00 (patch) | |
tree | 914f69bc39068b524372536aaa36bfe4b76cd7db | |
parent | fc61cc38230e0f87b9e1913c2cf84d3ec2038517 (diff) |
gnosis-dashboard-notes: Make columns adjustable to window-width
-rw-r--r-- | gnosis.el | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |