From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean Louis Subject: Re: Configure Helm Source from org-tags-view Date: Thu, 8 Aug 2019 21:13:13 +0200 Message-ID: <20190808191313.GW23122@protected.rcdrun.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:49492) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hvnqg-0005Gb-Ke for emacs-orgmode@gnu.org; Thu, 08 Aug 2019 15:13:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hvnqf-0001Z6-Qi for emacs-orgmode@gnu.org; Thu, 08 Aug 2019 15:13:18 -0400 Received: from stw1.rcdrun.com ([217.170.207.13]:34829) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hvnqf-0001Y7-Ji for emacs-orgmode@gnu.org; Thu, 08 Aug 2019 15:13:17 -0400 Content-Disposition: inline In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nathan Neff Cc: emacs-orgmode * Nathan Neff [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))))) org--matcher-tags-todo-only) 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. Jean