Git Product home page Git Product logo

emacs-velocity's Introduction

Emacs Velocity: search and create text files

It didn't take long to discover that his main occupation, even when he wasn't keeping records of his behavior, was centered on keeping records of everything else. Astonishing as it must have seemed to any self-respecting scientist like himself, his observations revealed that about 85% of his "thinking" time was actually spent "getting into a position to think, to make a decision, to learn something I needed to know. Much more time went into finding or obtaining information than into digesting it." โ€” Howard Rheingold, Tools for Thought

Inspired by Notational Velocity.

Table of Contents

Demo

Features

  • Multiple formats: org, markdown, plain, and an API for adding more.
  • File and sub-file search: search and return entire files or sections within filesj, configurable on a per-file basis.
  • File and sub-file create: create content as files or as sections within files.

Requirements

Currently supports Helm as front end.

Installation

Download this repository and add it to Emacs's load-path. MELPA coming soon.

Configuration

Bind velocity to a key combination, e.g.:

(global-set-key (kbd "C-c r") velocity)

Set or customize the velocity-searches variable to specify what files should be searched and how. For example:

(setq velocity-searches
      '(;; Search level-1 sections in Org files
        (:files ("~/notes/bucket.org" "~/journal.org") :backend org-heading-1)

        ;; Search whole Org files
        (:files ("~/notes/roam/*.org") :backend org-file)

        ;; Search level-2 sections in Markdown files
        (:files ("~/projects/foobar/manual.md" :backend markdown-heading-2))

        ;; Search whole Markdown files
        (:files ("~/projects/*/README.md" :backend markdown-file))

        ;; Search plain text files
        (:files ("/usr/share/doc/*/README.txt")))

Set or customize the velocity-targets variable to specify where new content should go. For example:

(setq velocity-targets
      '(;; Add new content as level-1 section Org file
        (:file "~/bucket.org" :backend org-heading-1)
        ;; Add new content as stand-alone Mardown file
        (:file "~/blog/posts/%s.md" :backend markdown-file))))

Usage

Searching

Invoke velocity and write some words. Matching notes will appear in the helm buffer.

Follow-mode is enabled by default. To disable it, invoke C-c C-f during the helm session.

Creating

When the input is at least 15 characters, Velocity guesses you're writing the title of a new entry instead of a search query, and displays a list of possible targets; if you select any of those, a new note is created and displayed.

Related work

emacs-velocity's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.