-
Notifications
You must be signed in to change notification settings - Fork 16
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
embark integration with consult-notes-org-headings-mode #48
Comments
The text properrty with the marker should be called Also users can do this on their own without any changes to this library: (defun refine-consult-notes (_type target)
(when-let ((marker (get-text-property 0 'consult--candidate target))
((markerp marker)))
(cons 'org-heading (propertize target 'org-marker marker))))
(add-to-list 'embark-transformer-alist '(consult-notes-category . refine-consult-notes)) |
Isn't it identified as a |
@oantolin There seems to be a consult-notes-category defcustom with a value consult-note. |
Oh, I read very quickly and thought that symbol was quoted, @minad. Thanks for the correction. |
@fhansen42 is the solution offered by @oantolin enough? I could just put that in the readme. |
I've added the code provided by @oantolin to my .init file. I don't see any change in the behavior of embark-act called on a heading in consult-notes. I've just appended to the bottom of my .init. I'm not sure if it makes a difference where it is placed? |
Yeah I'm not seeing a difference either. I'll look into this soon, when I have some more time. |
Oh, I'm sorry, that code won't work. |
It's funny but if you use Now, if you collected some So I stand by my original recommendation: store the marker in |
consult-notes-org-headings-mode is great. It's allowed me to replace consult-org-agenda with consult-notes and get a combined interface for selecting org headings and file names. One items that is missing, however, is identification of the org heading as an org-heading target within embark. Currently it is identified as a consult-note target after calling embark-act.
FYI to @oantolin and @minad in case either of them would like to offer any ideas on how to fix this.
The text was updated successfully, but these errors were encountered: