alphapapa / org-super-agenda

Supercharge your Org daily/weekly agenda by grouping items
GNU General Public License v3.0
1.33k stars 107 forks source link

Add filename to outline-path #259

Open gsingh93 opened 2 months ago

gsingh93 commented 2 months ago

I have two org files that have content under the same heading:

* Heading 1
** TODO Item 1

I have this in my org-agenda-custom-commands:

(setq org-agenda-custom-commands
...
  (org-ql-block '(todo "TODO")
                ((org-super-agenda-groups '((:auto-outline-path t)))))
...

And this is what I see in the agenda view:

Query:(todo "TODO")  In:org-agenda-files

 Heading 1
  TODO Item 1 
  TODO Item 1 

What I would like to see is:

Query:(todo "TODO")  In:org-agenda-files

 file1.org/Heading 1
  TODO Item 1 

 file2.org/Heading 1
  TODO Item 1 

If there isn't a way to do this already, could it be added? I know there are some other issues discussing groups of groups, multiple org-ql-blocks in an agenda view, multiple org-ql-search queries in a single buffer, etc, which may be alternative solutions for distinguishing between these headings, but I think just having the filename in the outline path is a simpler solution for what I need.

alphapapa commented 1 week ago

Sure, this would be simple to add. Patches welcome, or I'll get to it someday.