[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Configure Helm Source from org-tags-view

From: Nathan Neff
Subject: Re: [O] Configure Helm Source from org-tags-view
Date: Thu, 8 Aug 2019 15:03:50 -0500

Hi Jean,

Thank you - however, I can't get this function to return anything.

org-scan-tags accepts an action, a matcher and a todo-only.


(org-scan-tags 'agenda ;; Action
                      '(staff lambda (todo tags-list level)  ;; Matcher
                                    (setq org-cached-props nil)
                                    (or (and (member staff tags-list))))) ;; End Matcher
                       org--matcher-tags-todo-only) ;; Todo-only

* To my knowledge, the 'agenda is the action, and the list starting with
`(staff <snip>) is the matcher. 
* Why does the tag I'm searching for ("staff") appear as the first "atom" in the
"matcher" parameter?  Why isn't it just a lambda?
* I don't quite understand what the "or" and "and" are doing.  It seems like
I don't need either of them.

My org-agenda-files contains files and I have a headline with the tag "staff"
- no quotes, and the function's not returning anything.


On Thu, Aug 8, 2019 at 2:13 PM Jean Louis <bugs@gnu.support> wrote:
* Nathan Neff <address@hidden> [2019-08-08 18:50]:
> Hello all,
> Has anyone created a Helm source from the results of org-agenda?
> Specifically org-tags-view I think would be a cool Helm source to
> configure where the headings that have certain tags could be displayed
> by Helm.
> I looked @ the code for org-tags-view and it's fairly straight
> forward - however, I think that the function itself is tightly
> coupled between finding the results and displaying the results.  In
> other words, there's no easy function that I see which would provide
> headings that match a tags search that I could use as a Helm source.

If tag is 'staff, this below will give structure out:

(org-scan-tags 'agenda '(staff lambda (todo tags-list level) (progn
(setq org-cached-props nil) (or (and (member staff tags-list)))))

Now `org-scan-tags` could be inspected if it constructs some lists,
alist, that are somewhat nicer than such output.

But that output can be converted to HELM completion.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]