From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Adding tags when capturing? Date: Thu, 20 Dec 2012 11:02:05 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8fb203eec978b704d14bb090 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TljVd-0002Rd-HB for emacs-orgmode@gnu.org; Thu, 20 Dec 2012 12:02:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TljVW-0004rS-Pp for emacs-orgmode@gnu.org; Thu, 20 Dec 2012 12:02:13 -0500 Received: from mail-ob0-f173.google.com ([209.85.214.173]:58208) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TljVW-0004rG-Ig for emacs-orgmode@gnu.org; Thu, 20 Dec 2012 12:02:06 -0500 Received: by mail-ob0-f173.google.com with SMTP id xn12so3469612obc.4 for ; Thu, 20 Dec 2012 09:02:05 -0800 (PST) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Alan Schmitt Cc: emacs-orgmode --e89a8fb203eec978b704d14bb090 Content-Type: text/plain; charset=UTF-8 On Thu, Dec 20, 2012 at 2:11 AM, Alan Schmitt < alan.schmitt@polytechnique.org> wrote: > Hello, > > Is there a shortcut to add tags when doing a capture? C-c C-c obviously > does not work. > > If one could specify a list of tags from which to complete, it would be > great as well. > > Are you using a template? I might be missing something, but it seems that orgmode already does this. Here's my todo template: ----- ("t" "task" entry (file+headline "~/org/projects.org" "Tasks") "* todo %? %^g\n%u" :prepend t) ----- the =%^g= option has the capture window prompt for tags right away. Lower case g auto-completes for tags in the target file. =%^G= auto-completes with tags in any file in the agenda list. - http://orgmode.org/manual/Template-expansion.html#Template-expansion Will that do what you're looking for? John > Thanks a lot, > > Alan > > --e89a8fb203eec978b704d14bb090 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Thu, Dec 20, 2012 at 2:11 AM, Alan Sc= hmitt <alan.schmitt@polytechnique.org> wrote:
Hello,

Is there a shortcut to add tags when doing a capture? C-c C-c obviously
does not work.

If one could specify a list of tags from which to complete, it would be
great as well.


Are you using a template? I might be m= issing something, but it seems that orgmode already does this. Here's m= y todo template:

-----
=C2=A0 =C2= =A0 ("t" "task" entry (file+headline "~/org/projects.org" "Tasks")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"* todo %? %^g\n%u" :prepe= nd t)
-----

the =3D%^g=3D option h= as the capture window prompt for tags right away. Lower case g auto-complet= es for tags in the target file. =3D%^G=3D auto-completes with tags in any f= ile in the agenda list.

Will that do what you're looki= ng for?


John
=C2=A0
Thanks a lot,

Alan


--e89a8fb203eec978b704d14bb090--