From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: assign tags via helm/avy? Date: Mon, 30 May 2016 20:42:58 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7Xlt-0004mT-If for emacs-orgmode@gnu.org; Mon, 30 May 2016 20:43:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7Xlp-0003CV-Ck for emacs-orgmode@gnu.org; Mon, 30 May 2016 20:43:00 -0400 Received: from mail-qk0-x22e.google.com ([2607:f8b0:400d:c09::22e]:36597) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7Xlp-0003CH-7j for emacs-orgmode@gnu.org; Mon, 30 May 2016 20:42:57 -0400 Received: by mail-qk0-x22e.google.com with SMTP id x7so132447629qkd.3 for ; Mon, 30 May 2016 17:42:55 -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 Here is a helm approach that seems like what you want. #+BEGIN_SRC emacs-lisp (defun tag-lister () "Function that gets and returns possible tags." (list "tag1" "tag2" "tag3")) (defun helm-tagger () (interactive) (helm :sources `((name . "HELM tag setter") (candidates . ,(tag-lister)) (action . (lambda (candidate) (org-set-tags-to (helm-marked-candidates))))))) #+END_SRC Xebar Saram writes: > Hi guys > > i have a bunch of tags i define via > > (:startgroup) > ("Where?") > (:grouptags) > ("@home" . ?h) > ("@work" . ?w) > ("@pc" . ?p) > ("@family" . ?f) > ("@shop" . ?s) > (:endgroup) > > (:startgrouptag) > ("people") > (:grouptags) > ("allan" . ?a) > ("bob" . ?o) > ("joel" . ?j) > ("david" . ?d) > ("boris" . ?b) > ("massimo" . ?s) > (:endgrouptag) > > anyone know of a way to quick add tags via a helm/avy interface? > > right now its quite cumbersome to press C-c then C-c to see a list of all > tags. also some tags have the same key (?a) and then its impossible to > select the 2nd one > > thx alot in advance > > Z -- 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