zoliky · 2022-08-06 19:03
Hello, when I press the `C-c .` in an Org file the calendar shows up then I can pick a day. The date is entered in this form: `<2022-08-06 Sat>`. I recently installed Prot's "denote" package and I noticed that his package inserts dates in this format: `[2022-08-06 Sat 21:56]` which I personally like more. Is it possible to make `C-c .` insert the date in the `[2022-08-06 Sat 21:56]` format too?
kickingvegas1 · 2022-08-06 19:14
It took me *forever* to figure this out but apparently using the prefix `C-u` before `C-c .` will insert an active timestamp which is enclosed by `<>`.
Use the key sequence `C-u C-c !` to get an inactive timestamp (enclosed by `[]`).
kickingvegas1 · 2022-08-06 19:19
Personally not thrilled with the ergonomics of `C-u C-c !`, so I made a elisp function and mapped that to `C-c t` in org-mode
```
(defun cc/org-time-stamp-inactive ()
(interactive)
(org-time-stamp-inactive '(16)))
(setq org-mode-hook
'((lambda ()
(local-set-key (kbd "C-c t") 'cc/org-time-stamp-inactive)
)))
```
zoliky · 2022-08-06 20:36
Thank you. What is the difference between the active and inactive timestamp?
ieure · 2022-08-06 20:53
Entries with inactive timestamps don't show up on the agenda. Probably other cases where similar logic exists — I know that if you use the iCalendar export backend, inactive timestamps don't create ICS entries.
kickingvegas1 · 2022-08-06 20:56
Active timestamps are used to create Org agenda entries. Inactive timestamps are for recordkeeping that is not directly intended to be processed by org-agenda.
https://orgmode.org/manual/Creating-Timestamps.html