4

I want to change an active date <2017-12-10 17:04> to inactive date [2017-12-10 17:04] and vice versa.

How do I do that?

  • 1
    The opposite of "active" is "inactive". Using the word "passive" in the question and in the answer makes it less likely that someone can find this thread in the future using Google or other search engine. See the org-mode manual for the correct terminology: orgmode.org/guide/Creating-timestamps.html – lawlist Dec 10 '17 at 17:33
  • 1
    @lawlist: I edited the question. – Francesco Turco Dec 11 '17 at 12:18
  • @lawlist I am editing the question. Thanks for pointing it out. – deshmukh Dec 11 '17 at 12:40
  • @FrancescoTurco Thanks! That was perfect. – deshmukh Dec 11 '17 at 12:41
9

TL;DR; From the keyboard (in org-mode):

C-c .

to activate (convert from inactive to active).

C-c !

to inactivate (convert from active to inactive).

From lisp:

(org-time-stamp t)

to activate, and

(org-time-stamp t t)

to inactivate.

Edit: As Juancho points out, <S-up> and <S-down> both toggle between active and inactive timestamps.

  • 5
    You can also use shift UP/DOWN when the cursor is on the opening or closing brackets. – Juancho Dec 10 '17 at 20:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.