org-ql icon indicating copy to clipboard operation
org-ql copied to clipboard

Grouping issue on narrowed buffer

Open whudwl opened this issue 2 years ago • 2 comments

When running (org-ql-search (current-buffer) '(tags "test") :super-groups '((:auto-parent t))) on below buffer:

* Shopping :test:

** Apples

* Bills :test:

** Water 

If the buffer is narrowed to Shopping, the search result would look like this:


 Shopping
  Apples                                                                                            :test:
  Bills                                                                                             :test:
  Water                                                                                             :test:

 Other items
  Shopping                                                                                          :test:

There should be a Bills group, but there isn't. Both "Bills" and "Water" are grouped under "Shopping".

whudwl avatar Apr 19 '22 01:04 whudwl

You have two headings with h1 in their name--which one did you narrow to?

Anyway, this is likely an issue with org-super-agenda, see https://github.com/alphapapa/org-super-agenda/blob/3108bc3f725818f0e868520d2c243abe9acbef4e/org-super-agenda.el#L1073 Maybe if you widen around that, it will fix it.

alphapapa avatar Apr 21 '22 18:04 alphapapa

You have two headings with h1 in their name--which one did you narrow to?

Anyway, this is likely an issue with org-super-agenda, see https://github.com/alphapapa/org-super-agenda/blob/3108bc3f725818f0e868520d2c243abe9acbef4e/org-super-agenda.el#L1073 Maybe if you widen around that, it will fix it.

sorry, I made the test data quite hard to read. I've updated it to be more readable.

whudwl avatar Apr 22 '22 02:04 whudwl