emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: Marcelo de Moraes Serpa <celoserpa@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Automatically tag an item if direct child of a specific list
Date: Thu, 30 Jul 2009 17:36:59 -0400	[thread overview]
Message-ID: <87r5vxzwck.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <1e5bcefd0907301422q76a1a3eem1bd8bf7ffa4b4fd4@mail.gmail.com> (Marcelo de Moraes Serpa's message of "Thu\, 30 Jul 2009 16\:22\:06 -0500")

Marcelo de Moraes Serpa <celoserpa@gmail.com> writes:

> Hello list -- here goes a quick crazy question:
>
> Is there a way to extend org in a way that, whenever I write/add a new
> item as a direct child of a Projects list, it will tag this item as
> :PROJECT: automatically ? This could happen when I press enter or if I
> enter the item through another command (instead of writing it directly
> in the buffer -- like when refiling).

Tags are normally inherited - so if you tag the parent task
with :PROJECT: then ALL tasks under that will inherit the :PROJECT: tag.
There's no need to tag everything under it with the :PROJECT: tag.

Alternatively if you keep all of your projects in a separate
projects.org file you can add a FILETAGS entry that puts the :PROJECT:
tag on every entry in that file.

This way your child task is part of a project or not based on where it
is currently.  You're free to refile it somewhere else (that is not a
project) and it loses it's project tag.

HTH,
Bernt

      reply	other threads:[~2009-07-30 21:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-30 21:22 Automatically tag an item if direct child of a specific list Marcelo de Moraes Serpa
2009-07-30 21:36 ` Bernt Hansen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r5vxzwck.fsf@gollum.intra.norang.ca \
    --to=bernt@norang.ca \
    --cc=celoserpa@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).