From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: assign tags via helm/avy? Date: Wed, 01 Jun 2016 07:19:10 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b84B9-00085Z-CR for emacs-orgmode@gnu.org; Wed, 01 Jun 2016 07:19:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b84B6-0008Av-3e for emacs-orgmode@gnu.org; Wed, 01 Jun 2016 07:19:15 -0400 Received: from mail-qk0-x22c.google.com ([2607:f8b0:400d:c09::22c]:34026) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b84B5-0008Ar-Vb for emacs-orgmode@gnu.org; Wed, 01 Jun 2016 07:19:12 -0400 Received: by mail-qk0-x22c.google.com with SMTP id y126so11479066qke.1 for ; Wed, 01 Jun 2016 04:19:11 -0700 (PDT) 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: Xebar Saram Cc: org mode , Kaushal Modi I had one too many quotes in there. It should have been ,(mapcar 'car org-tag-persistent-alist) The counsel command is nice too. I have a lot of helm muscle memory to work with though ;) Xebar Saram writes: > Thx so much guys for the great answers > > Kaushal Modi: cousel-org-tag is fantastic and works very well for me > > John: i did try helm with (mapcar 'car 'org-tag-persistent-alist ) but it > gave me an error: > > cons: Wrong type argument: sequencep, org-tag-persistent-alist > > > the code i used: > > (defun helm-tagger () > (interactive) > (helm > :sources > `((name . "HELM tag setter") > (candidates . ,(mapcar 'car 'org-tag-persistent-alist )) > (action . (lambda (candidate) > (org-set-tags-to (helm-marked-candidates))))))) > > > to be honest cousel-org-tag works really well but if anyone else is > interested in the helm part ive posted the error > > kind regards > > Z > > > > On Tue, May 31, 2016 at 6:40 AM, Kaushal Modi > wrote: > >> >> >> On Mon, May 30, 2016, 11:18 PM Xebar Saram wrote: >> >>> thx so much john! >>> >>> is there a way where the function can auto read all the tags from >>> "org-tag-persistent-alist " instead of manfully adding to the function each >>> time a new tag is added? >>> >>> best >>> >>> Z >>> >> >> If you use the ivy-family of list completion, check out the counsel >> package, and the cousel-org-tag function in there. >> >>> -- >> >> -- >> Kaushal Modi >> -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu