Gantt View Limited to a Certain Heading Level (e.g., up to *** headings) · Issue #20 · legalnonsense/elgantt · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can use column to see headings levels 1 through 2 by going into column view C-c C-x C-c and typing C-u 2 S-TAB. Using a modified version of your test.org file, I can jump between columnview of all headings and column view up to level 2.
I can then type C-u 2 S-TAB to get
I know it should be possible because you simply use org-ql, but I am not quite sure where in you code I could make this change. Is there a way to tell El Gantt to limit itself to headings of a certain level?
The text was updated successfully, but these errors were encountered:
Okay, I figured it out. Your packaged is well written. If you legal work is like your code, your clients are doing well.
Below, I show how to restrict to level 1 and 2 headings. It would be quite simple to modify the code to do what I want.
(defun elgantt--iterate ()
"Iterate over all entries in `elgantt-agenda-files'."
(if elgantt-insert-header-even-if-no-timestamp
;; Seems wasteful to write two separate queries, but
;; I do not know how to format a single org-ql query
;; to include or exclude timestamps depending on the value of
;; the horribly named `elgantt-insert-header-even-if-no-timestamp'
(mapc #'elgantt--insert-entry
(-non-nil
(org-ql-select elgantt-agenda-files
`(not (tags ,(when elgantt-skip-archives
org-archive-tag)))
:action #'elgantt--parser)))
(mapc #'elgantt--insert-entry
(-non-nil
(org-ql-select elgantt-agenda-files
`(and (ts :from ,elgantt-start-date)
(not (tags ,(when elgantt-skip-archives
org-archive-tag)))
;; (level #'<= 2) ;; Add this to only show headings up to level 2
)
:action #'elgantt--parser)))))```
Uh oh!
There was an error while loading. Please reload this page.
I can use column to see headings levels 1 through 2 by going into column view
C-c C-x C-c
and typingC-u 2 S-TAB
. Using a modified version of yourtest.org
file, I can jump between columnview of all headings and column view up to level 2.I can then type
C-u 2 S-TAB
to getI know it should be possible because you simply use org-ql, but I am not quite sure where in you code I could make this change. Is there a way to tell El Gantt to limit itself to headings of a certain level?
The text was updated successfully, but these errors were encountered: