

Github GitHub - lepisma/oca: Org Capture Anywhere
source link: https://github.com/lepisma/oca
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Org Capture Anywhere (oca
) allows you to use Org Capture for capturing items
anywhere.
Many times I need to capture structured text items that have to go in places that are not Org mode files. For example, to create tasks in Jira or Trello or adding an event on Google Calendar. This package provides simple functions to extend Org Capture’s final destination.
Once installed, call oca-setup
for setting up capture hooks. Then define your
capture workflow by writing a template and specifying a push function. The push
function takes AST of captured Org item via org-element
API and does whatever it
wants with it.
Here is an example to log lines in an SQLite database. We first define a push function that takes a headline entry and pushes the title to our database.
(defun oca-push-my-db (element) (let ((text (org-element-property :raw-value element))) (call-process "sqlite3" nil nil nil "db.sqlite3" (format "insert into data (line) values (\"%s\")" text))))
Then write a capture template using oca-visit
and the push function defined
above.
(setq org-capture-templates '(("s" "Capture to SQLite" entry (function (lambda () (oca-visit #'oca-push-my-db))) "* %?")))
Now capturing items using C-c c s
will put the line in the database.
Recommend
-
128
Rogue Personal spacemacs layer. Color settings are lying in a messy state in ./config.el, which are defined as overrides over themes spacemacs-light
-
108
react-navigation - Learn once, navigate anywhere
-
96
inspector - A drop-anywhere C++ REPL
-
65
vim-anywhere - Use Vim everywhere you've always wanted to
-
77
emacs-anywhere - :pencil: Open emacs from anywhere
-
51
emacs-anywhere - Use. Emacs. Anywhere.
-
66
README.md react-check-auth react-check-auth is a tiny react component helps you make auth checks declarative in your react or react-native app. This component uses
-
64
README.md Kickstarter for iOS Welcome to Kickstarte...
-
38
README.org iorg Self contained org-mode files with images. Put encoded image data in a buffer within #+BEGIN_IMAGE … #+END_IMAGE
-
11
README.org org-krita Minor mode for working with krita notes, sketches etc. in org mode.
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK