-
Notifications
You must be signed in to change notification settings - Fork 109
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
org-ql-find does not take you to the search result you select #380
Comments
Fixes #380. Reported-by: Omar Antolín Camarena <[email protected]>
Hi Omar, Thanks for reporting that. I hadn't noticed since I use I think this commit should fix it: 631cd80 Please let me know if it does for you. |
Yes, that works perfectly. Thank you! |
THANK YOU, @oantolin !!! This has been driving me crazy for weeks now, and I had no idea where, even on which package, the problem was!! |
@telenieko Glad that it's fixed for you. Could you tell me a bit more about how you're using org-ql? I'm surprised it wasn't more obvious where the problem was. |
Yeah, I'm curious about that too, @telenieko. |
There are two places that were broken in my system, In a (defun mf-email-get-links-to-current-thread()
"Find org items linking to this email thread."
(interactive)
(let* ((message-ids (notmuch-show-get-messages-ids))
(targets (mapconcat (lambda (tgt) (format "\"notmuch:%s\"" tgt))
message-ids))
(query (format "org-backlinks:%s" targets))
(title (format "Tasks linked to: %s"
(notmuch-show-get-subject)))
)
(org-ql-find (org-agenda-files t t)
:query-prefix query
:prompt "Tareas relacionadas: "))) I also have a very simple search function bound to a key for "full text" searching: (defun mf-pkm-todo-search (arg)
"Search for TODO. If ARG search archives too."
(interactive "P")
(let ((include-archives (not (eq nil arg))))
(org-ql-find (org-agenda-files nil include-archives)))) You see both functions use Back to the obviousness: Now that @oantolin mentioned it... I feel ashamed of missing this behaviour of |
Cool, thanks. Quick thing I noticed that you might want to be aware of: you seem to be concatting
Well, you shouldn't feel bad, after all, I misused it myself. :) Also, friendly tip: Instead of |
Thanks for the tips @alphapapa! will polish my code a little bit! :D For anyone coming here in the future: I fixed the |
Commit 8e9a8fe reintroduces |
Argh. Thanks for reporting. |
See <#380 (comment)>. Reported-by: Bram Schoenmakers <[email protected]>
This should be fixed now, on |
I'm still seeing the bug after that commit. You did replace |
See #380. Reported-by: Omar Antolín Camarena <[email protected]>
@oantolin Thanks. I've just pushed fixes as v0.8.3 and to |
Thank you! I can confirm that fix works for me. |
Or rather it does, but it does so inside a
org-with-point-at
which expands to a form includingsave-excursion
so the jumping gets undone right away! (There's an easy work around: just useembark-dwim
, but I would much rather just pressRET
.) This is with org-ql version 0.8-pre from MELPA, build 20231020.244.The text was updated successfully, but these errors were encountered: