Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feed an input text to org-capture from Ivy

NotificationsYou must be signed in to change notification settings

akirak/counsel-org-capture-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://melpa.org/packages/counsel-org-capture-string-badge.svghttps://travis-ci.org/akirak/counsel-org-capture-string.svg?branch=master

This is a counsel wrapper fororg-capture-string in Emacs Org mode.

org-capture-string is a function that lets you fire anorg-capture template with a given initial input. Unlike the normalorg-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 likeorg-capture-string, but it lets you enter input viaIvy. 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.

Prerequisites

This package requires Emacs 25.1.

Installation

This package is available from MELPA ascounsel-org-capture-string.

Configuration

You don’t need an initial configuration to use this package, but it allows you to set options via the Emacs customization interface. Check outcounsel-org-capture-string group. In particular,counsel-org-capture-string-sources allows you to customize candidates

Usage

Runcounsel-org-capture-string command. Its basic usage is the same asorg-capture-string.

  1. Enter input.
  2. Choose anorg-capture template.

Guide to Ivy

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-i to insert the candidate into the mini buffer and continue editing
  • M-n to enter a symbol at point
  • M-y to insert text from the kill ring
  • M-o to select an alternative action
    • i to insert the candidate into the original buffer
    • w to store the candidate to the kill ring
    • ivy-add-actions lets you define extra actions
  • C-r to review the history

Inspirations

The original inspiration for this package wasthis blog post.

License

GPL v3

About

Feed an input text to org-capture from Ivy

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp