emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: garjola@garjola.net
To: Bernt Hansen <bernt@norang.ca>
Cc: emacs-orgmode@gnu.org
Subject: Re: Converting tags to TODO states
Date: Tue, 16 Apr 2019 18:36:51 +0200	[thread overview]
Message-ID: <871s21ewkc.fsf@pc-117-162.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <87pnpm84jr.fsf@norang.ca> (Bernt Hansen's message of "Tue, 16 Apr 2019 09:26:16 -0400")

On Tue 16-Apr-2019 at 15:26:16 +02, Bernt Hansen <bernt@norang.ca>
wrote: 
> garjola@garjola.net writes:
>
>> Hi,
>>
>> For my GTD implementation with org-mode, I have been using the :next:
>> tag for my next actions. I would like now to use a "NEXT" TODO keyword,
>> which means that I need to convert all :next: tags with "TODO" headlines
>> into "NEXT" headlines without the :next: tag. 
>>
>> I have *a lot* of org files, so an automatic procedure is needed. Since
>> I am not fluent in elisp, I was going to write a python script to do
>> this, but maybe there is already a way to do this conversion with
>> org-mode itself?
>>
>> The tricky thing I see with parsing is dealing with the ":" in the case
>> of multiple tags (I know how to do this in python, but I don't in
>> elisp).
>>
>> Thanks for any hint you can provide.
>>
>> Garjola
>
> As this is a one-time change I would just use the agenda and bulk
> operations to fix your entries.
>
> If the files already contribute to your agenda (I assume they do) 
> you can just run a tag match on :next:
>
> C-c a m next RET
>
> and mark all the entries returned with 
>
> m (repeat for each task)
>
> then add a NEXT todo keyword
>
> B t NEXT RET
>
> and mark all the tasks again
>
> m (repeat for each task)
>
> and remove the :next: tag
>
> B - next RET
>
> and save your files.
>
> HTH,
> Bernt

Hi Bernt,

You just made me discover that one can change tags on bulk. I have used
bulk operations for rescheduling, but not for this.

That's great!

Thanks!
-- 

      reply	other threads:[~2019-04-16 16:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-15 15:00 Converting tags to TODO states garjola
2019-04-16 13:26 ` Bernt Hansen
2019-04-16 16:36   ` garjola [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=871s21ewkc.fsf@pc-117-162.i-did-not-set--mail-host-address--so-tickle-me \
    --to=garjola@garjola.net \
    --cc=bernt@norang.ca \
    --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).