Normally org-capture lets one insert a templated subtree somewhere into an existing Org file or tree node.

Is it possible to use org-capture to instead add a row to an existing Org-mode table?


Yes, it is. For example, with this org file:

* my table
| blah  | blah |

And this elisp:

    (("t" "Table" table-line
      (file+headline "" "my table")
      "|%?| Blah |")))))

I can run org-capture and it appends a line to the table.

If it doesn't find your org file, you may need to replace the "" in the file+headline form with a file path (I don't remember what the "" defaults to, but it finds my main org-mode file).

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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