emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Converting tags to TODO states
@ 2019-04-15 15:00 garjola
  2019-04-16 13:26 ` Bernt Hansen
  0 siblings, 1 reply; 3+ messages in thread
From: garjola @ 2019-04-15 15:00 UTC (permalink / raw)
  To: emacs-orgmode

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


-- 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Converting tags to TODO states
  2019-04-15 15:00 Converting tags to TODO states garjola
@ 2019-04-16 13:26 ` Bernt Hansen
  2019-04-16 16:36   ` garjola
  0 siblings, 1 reply; 3+ messages in thread
From: Bernt Hansen @ 2019-04-16 13:26 UTC (permalink / raw)
  To: garjola; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Converting tags to TODO states
  2019-04-16 13:26 ` Bernt Hansen
@ 2019-04-16 16:36   ` garjola
  0 siblings, 0 replies; 3+ messages in thread
From: garjola @ 2019-04-16 16:36 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: emacs-orgmode

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!
-- 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-04-16 16:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-15 15:00 Converting tags to TODO states garjola
2019-04-16 13:26 ` Bernt Hansen
2019-04-16 16:36   ` garjola

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).