This is a counsel wrapper for org-capture-string in Emacs Org mode.
org-capture-string is a function that lets you fire an org-capture template with a given initial input. Unlike the normal org-capture with which you have to choose a template before you type input, org-capture-string lets you enter input text before you choose a template. I personally find this workflow often more “natural”, because I usually seem to come up with an idea before thinking about where to refile it.
counsel-org-capture-string is like org-capture-string, but it lets you enter input via Ivy. Because it is based on Ivy, it supports alternative actions such as insertion and copying. counsel-org-capture-string also supports defining functions for generating completion candidates so that you can enter a particular keyword efficiently. That is, counsel-org-capture-string is an omni note-taking interface for Emacs.
This package requires Emacs 25.1.
This package is available from MELPA as counsel-org-capture-string.
You don’t need an initial configuration to use this package, but it allows you to set options via the Emacs customization interface. Check out counsel-org-capture-string group. In particular, counsel-org-capture-string-sources allows you to customize candidates
Run counsel-org-capture-string command. Its basic usage is the same as org-capture-string.
- Enter input.
- Choose an
org-capturetemplate.
Because the command is based on Ivy, any knowledge about Ivy applies to it. The following tips may be useful when you use this package:
M-ito insert the candidate into the mini buffer and continue editingM-nto enter a symbol at pointM-yto insert text from the kill ringM-oto select an alternative actionito insert the candidate into the original bufferwto store the candidate to the kill ringivy-add-actionslets you define extra actions
C-rto review the history
The original inspiration for this package was this blog post.
GPL v3