Git Product home page Git Product logo

capture-nvim's Introduction

capture-nvim

plugin to quickly store ideas with exact place in a file

Installation

Plug 'nagy135/capture-nvim'

Optionally for fancy gui prompt

Plug 'MunifTanjim/nui.nvim'

Usage

demo_picker demo

  • leader X - create new todo
  • leader J - jump to file (improved gF that jumps to column as well as line)

both binds have "shift modifier" ... so, leader, shift+x

Configuration

Put these lines in your init.lua or inside lua block in .vimrc.

require("capture").setup({
    location = "~/todo.md",
    project_root_todo = false
})

location

Combined place to store captures.

project_root_todo

Controls behavior where todo.md is stored in root of git repository/

Change binds

Simply define binds you want with provided lua functions

nnoremap <leader>X :lua capture_module.create_todo()<CR>
nnoremap <leader>J :lua capture_module.jump_to_file_with_column()<CR>

Similair projects

I am using this plugin for my own personal use and I like its minimal nature. For more features and more "emacs capture" feel, you might wanna try orgmode.nvim

TODO

  • check if inside git repository (now nvim crashes instead)
  • make higher level headers in combined root todo list

capture-nvim's People

Contributors

nagy135 avatar

Stargazers

Rolf avatar Chase Colman avatar  avatar Gabe Oppenheimer avatar Soc Virnyl S. Estela avatar  avatar Adam Wagner avatar  avatar Yuta Katayama avatar Iqbal Rifai avatar Dicha Zelianivan Arkana avatar

Watchers

 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.