From mboxrd@z Thu Jan 1 00:00:00 1970 From: garjola@garjola.net Subject: Converting tags to TODO states Date: Mon, 15 Apr 2019 17:00:29 +0200 Message-ID: <87mukrwbxu.fsf@pc-117-162.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:34510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hG36N-0005FH-9u for emacs-orgmode@gnu.org; Mon, 15 Apr 2019 11:00:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hG36H-0002iC-PL for emacs-orgmode@gnu.org; Mon, 15 Apr 2019 11:00:53 -0400 Received: from 14.mo7.mail-out.ovh.net ([178.33.251.19]:34924) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hG36D-0002d8-Il for emacs-orgmode@gnu.org; Mon, 15 Apr 2019 11:00:46 -0400 Received: from player756.ha.ovh.net (unknown [10.108.42.88]) by mo7.mail-out.ovh.net (Postfix) with ESMTP id 505C310F0FD for ; Mon, 15 Apr 2019 17:00:34 +0200 (CEST) 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: emacs-orgmode@gnu.org 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 --