From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Re: assign tags via helm/avy? Date: Wed, 1 Jun 2016 10:15:11 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c07e2100f26dc05343240f5 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b80Mz-000845-Ax for emacs-orgmode@gnu.org; Wed, 01 Jun 2016 03:15:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b80Mx-0007es-Vd for emacs-orgmode@gnu.org; Wed, 01 Jun 2016 03:15:13 -0400 Received: from mail-yw0-x22f.google.com ([2607:f8b0:4002:c05::22f]:34722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b80Mx-0007em-Qm for emacs-orgmode@gnu.org; Wed, 01 Jun 2016 03:15:11 -0400 Received: by mail-yw0-x22f.google.com with SMTP id c127so10345494ywb.1 for ; Wed, 01 Jun 2016 00:15: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: Kaushal Modi Cc: org mode , John Kitchin --94eb2c07e2100f26dc05343240f5 Content-Type: text/plain; charset=UTF-8 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 > --94eb2c07e2100f26dc05343240f5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thx so much guys for the great answers

= Kaushal Modi:=C2=A0cousel-org-tag is fanta= stic and works very well for me

John: i d= id try helm with=C2=A0(mapcar 'car 'org-tag-persistent-alist ) but = it gave me an error:

=
cons: Wrong type argumen= t: sequencep, org-tag-persistent-alist

the code i used:

(defun helm-tagger ()
=
=C2=A0 (interactive)
=C2=A0 (helm=
=C2=A0 =C2=A0:source= s
=C2=A0 =C2= =A0`((name . "HELM tag setter")
=C2=A0 =C2=A0 =C2=A0(candidates . ,(mapcar '= ;car 'org-tag-persistent-alist ))
=C2=A0 =C2=A0 =C2=A0(action . (lambda (candidate)
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(org-set-tags-to (helm-mark= ed-candidates)))))))


to be= honest=C2=A0cousel-org-tag works r= eally 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 <kaushal.modi@gmail.com> wrote:


On Mon, May 30, 2016, 11:18 PM Xebar Saram <zeltakc@gmail.com> wrote:
thx so much john!

=
is there a way where the function can auto read all the tags from &quo= t;org-tag-persistent-alist " instead of manfully adding to the functio= n each time a new tag is added?

best
Z

If y= ou use the ivy-family of list completion, check out the counsel package, an= d the cousel-org-tag function in there.=C2=A0
<= font color=3D"#888888">
--

--
Kaushal Modi


--94eb2c07e2100f26dc05343240f5--