Srijan Choudhary's Articles and Notes Feed for tag: orgmode
A small #Emacs #OrgMode quality-of-life tweak. I often need to replace an org heading's title while preserving the original text in the body. The problem is that pressing enter on a heading inserts a line above the properties drawer, which breaks things.
Here's a function that moves the heading title into the body (below the properties drawer and metadata), and binds it to S-RET:
(defun my-org-demote-title-to-body ()
"Move the current heading's title into the body, below the metadata.
Point returns to the heading for editing."
(interactive)
(org-back-to-heading t)
(let* ((element (org-element-at-point))
(title (org-element-property :raw-value element)))
(org-edit-headline "")
(save-excursion
(org-end-of-meta-data t)
(insert title "\n"))
(org-beginning-of-line)))
(defun my-org-shift-return ()
"On a heading, demote title to body. In a table, copy down."
(interactive)
(cond
((org-at-heading-p) (my-org-demote-title-to-body))
((org-at-table-p) (org-table-copy-down 1))
(t (org-return))))
(define-key org-mode-map (kbd "S-<return>") #'my-org-shift-return)Triggering Orgzly sync on Android when Org file changes
Event based orgzly sync using tasker to prevent conflicts
Capturing slack messages directly into Emacs orgmode inbox
Learn how to seamlessly capture Slack messages into your Emacs Orgmode (GTD) inbox using a custom browser userscript.
My small #emacs #orgmode #gtd customization of the day:
org-edna is a plugin that can be used to setup auto triggers (and blockers) when completing a task. org-gtd uses it to auto-forward the next TODO item in a project to NEXT when a task in the project is marked as DONE. The #orgedna trigger it uses is: relatives(forward-no-wrap todo-only 1 no-sort) todo!(NEXT).
This works okay for me, but also results in tickler tasks configured as repeated tasks to go to NEXT state instead of TODO state when they are completed. This results in them showing up in the org agenda even before they are due.
To fix this, I had to add this property to the top-level headings of the tickler file:
:PROPERTIES:
:TRIGGER: self todo!(TODO)
:END:
This overrides the global triggers configured by org-gtd for these org subtrees.
Using Todoist as a cloud inbox for GTD in Emacs orgmode
Using todoist as a cloud inbox for GTD in Emacs orgmode for better integration with services like Slack and Google Assistant
Found Samuel's nice post on capturing data for org via email.
This is very close to what I was looking for to be able to do GTD capture on-the-go either from phone apps like Braintoss or from any email app.
One addition I would like to make is handling attachments in the email by downloading them and attaching to the org entry.
This would be useful for voice notes from Braintoss - it does transcription of the audio and adds it to the email body, but sometimes it doesn't work so well and I have to fall back to listening to the audio. It will also be useful for forwarded emails containing attachments.