-
Notifications
You must be signed in to change notification settings - Fork 30
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
Hidden parent headings when using helm-org-rifle-current-buffer on collapsed hierarchies #85
Comments
Hi Karl, You should be able to use the option BTW, while I do intend for |
FYI, during the discussion in OrgMeetup, we have found that there is one important feature of helm-org-rifle that is missing in org-ql - displaying exact line matching search string inside the heading. org-ql cannot do it - it only displays the outline path. |
It can do it. See option I don't know why it doesn't perform as well. It might be something to do with using the completing-read API that Helm does differently, or it might be something else. I spent hours trying to solve it, but it's very hard to profile and troubleshoot things that run within completing-read. |
Hmm... We mostly looked at helm-org-ql :)
My usual suspect with completing read is the fact that it is not limiting the number of matches. So, things might get quite slow when the completion lists is long (short query). |
Ah, you didn't mention that. It does not use the same options as
The snippets are added via an annotation function, which (should) only be run on candidates which are to be displayed (i.e. in Vertico with Marginalia), not all of them. |
If they work via completion API, it is probably not true - completion API works via completions buffer that lists all the possible completions (you can literally switch to that buffer and see that it annotates every single completion out there) |
P.S. You can try M-x elp-instrument-function + M-x elp-results to check the number of calls to a given function. |
FWIW, there's currently a small bug in
Well, I thought the whole point of the annotation/affixation API features was to not annotate every candidate, but only ones that are to be displayed at the moment--otherwise one might as well make every candidate string itself pre-annotated. I don't have time to investigate further right now, but if you are correct, that would seem strange to me. |
I'm sorry when the subject doesn't cover the thing I want to address. Hence a more verbose explanation of my issue at hand:
I'm in a large Org file and using
helm-org-rifle-current-buffer
in order to find a particular heading in my (partly) collapsed hierarchy.Simplified example:
When invoked a search for
2024-06-12
with the headings below "two" in a collapsed state, I end up with a view like:... where I can't access "three" or its direct neighbours that easily. In other words, some but not all parent headings are visible.
According to my tests, even "two" is not shown when it was hidden before I invoked the rifle command. The general rule seems to be: "show the matching heading but don't show collapsed parent headings".
Is there some kind of option I might activate so that I always see all parent headings when accessing a search result heading?
When I'm using
org-occur
does reveal all the parent headings even when they were collapsed.Thanks for any pointer
Org-mode 9.6.28 on Emacs 29.3 (NixOS), helm-org-rifle 20230821.1927
The text was updated successfully, but these errors were encountered: