Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rguruprakash/simple-note.nvim

A simple note taking plugin for neovim
https://github.com/rguruprakash/simple-note.nvim

neovim neovim-plugin notes nvim nvim-plugin

Last synced: 3 months ago
JSON representation

A simple note taking plugin for neovim

Awesome Lists containing this project

README

        

# Neovim Simple Note Plugin

This is a very minimalist note-taking plugin for Neovim. It provides functionality to create, list, preview, rename, and delete notes.

#### Motivation
I've always desired a simple, straightforward note-taking method in vim. I'm only interested in basic functions such as creating, listing, deleting, renaming, and previewing notes. I don't need advanced features like nested notes or linking notes - just plain markdown notes will do. This plugin attempts to do the same with the help of telescope.nvim

## Features

- Create a new note file with a unique timestamp or the provided filename as argument.
- List all existing notes in a Telescope prompt.
- Preview notes in a Telescope prompt.
- Delete a selected note file.
- Rename a selected note file.

## Installation and Configuration

**Lazy**

```lua
{
'rguruprakash/simple-note.nvim',
dependencies = {
'nvim-lua/plenary.nvim',
'nvim-telescope/telescope.nvim',
},
config = function ()
require('simple-note').setup({
-- Optional Configurations
notes_dir = '~/notes/', -- default: '~/notes/'
notes_directories = { -- default: {}
'~/notes/',
'~/work/',
'~/personal/'
},
telescope_new = '', -- default:
telescope_delete = '', -- default:
telescope_rename = '', -- default:
telescope_change_directory = '' -- default:
})
end
}
```

## Usage

### Commands

- `:SimpleNoteList`: Lists all existing notes in a Telescope prompt.
- `:SimpleNoteCreate [filename (optional)]`: Creates a new note file and opens it in Neovim.
- `:SimpleNotePickDirectory`: Pick notes directory.

### Telescope default prompt keymaps

- ``: Creates new note (using the current line in the search prompt if any)
- ``: Delete note
- ``: Rename note
- ``: Change notes directory

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.