Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide empty group after setting org-agenda-filter-by-* #56

Closed
casch-at opened this issue Nov 13, 2018 · 8 comments
Closed

Hide empty group after setting org-agenda-filter-by-* #56

casch-at opened this issue Nov 13, 2018 · 8 comments

Comments

@casch-at
Copy link
Contributor

casch-at commented Nov 13, 2018

Is this possible?

@alphapapa
Copy link
Owner

I don't understand.

@casch-at
Copy link
Contributor Author

When I'm inside the org-agenda buffer and call one of the org-agenda-filter-by-*, than it's possible that no, tasks are left for that group. I expect that group to be hidden as well.

screenshot from 2018-11-15 07-46-46

@alphapapa
Copy link
Owner

alphapapa commented Nov 16, 2018

I actually wasn't aware of those functions.

I think it would be possible to support that, but you'd have to add a function that runs after the filter function that would hide headers without items, using the same method as the filter function.

Since I don't use this feature, I may not add it myself. Patches welcome. :)

@casch-at
Copy link
Contributor Author

I'll look into that.

@alphapapa
Copy link
Owner

You might be able to accomplish it with advice (i.e. advice-add).

casch-at added a commit to casch-at/org-super-agenda that referenced this issue Nov 27, 2018
When there is no tasks left for the group after setting a filter
(`org-agenda-filter-by-*`), the group header is still shown.

These changes make the header invisible when all the tasks from that group are
invisible.
casch-at added a commit to casch-at/org-super-agenda that referenced this issue Mar 28, 2019
casch-at added a commit to casch-at/org-super-agenda that referenced this issue Mar 29, 2019
casch-at added a commit to casch-at/org-super-agenda that referenced this issue Mar 29, 2019
casch-at added a commit to casch-at/org-super-agenda that referenced this issue Mar 29, 2019
casch-at added a commit to casch-at/org-super-agenda that referenced this issue Mar 30, 2019
casch-at added a commit to casch-at/org-super-agenda that referenced this issue Mar 30, 2019
casch-at added a commit to casch-at/org-super-agenda that referenced this issue Jun 12, 2019
@alphapapa alphapapa added this to the 1.3 milestone Nov 21, 2020
@ngharrison
Copy link

@cslux I still get empty groups after executing (setq org-super-agenda-hide-empty-groups t). Was there something else required to enable this feature?

Example:

  1. Run org-todo-list
  2. Run org-agenda-filter-by-tag, choosing a tag
  3. I get some headers with no items as shown in your original image

@casch-at
Copy link
Contributor Author

casch-at commented Jul 16, 2022 via email

@alphapapa
Copy link
Owner

Please file a new issue for this new problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants