Skip to content

Latest commit

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

📝 nvim-quicknotes

Quicknotes plugin for Neovim.

Screenshot

Create a Quicknote in a floating window, and save it on your computer to be picked up later. The Quicknote supports Markdown format.

If, like me, you are someone that always needs to note down stuff when working on a project, then this plugin may be for you!

Installation

Lazy

{
"davmacario/nvim-quicknotes",
-- >>> The following are optionals, to enable lazy loadingkeys= { "<leader>qn" },
cmd= { "Quicknotes", "QuicknotesClear", "QuicknotesCleanup" }, -- Lazy-load the plugin-- <<<config=function()
require("nvim-quicknotes").setup()
-- Custom keymapvim.keymap.set("n", "<leader>qn", vim.cmd.Quicknotes, { desc="Open quicknotes" })
end,
}

Configuration

The following are the default configuration settings for the plugin:

require("nvim-quicknotes").setup({
-- Local directory where all the quicknotes will be storedquicknotes_dir=utils.path_join({ os.getenv("HOME"), ".local/state/nvim/quicknotes/" }),
-- Window configurationwindow= {
-- width and height represent the relative size of the floating windowwidth=0.5,
height=0.6,
relative="editor",
style="minimal",
-- Specify border styleborder="rounded",
-- Titletitle="📝 Quicknotes",
title_color="#FABD2F",
})

The notes are stored in quicknotes_dir. For a quicknote opened in /path/to/project, the quicknote name will be path%to%project%quicknotes.md.

Usage

  • :Quicknotes: open quicknote for current project (create it if absent). Press q in normal mode to save the note and close the floating window.
  • :QuicknotesClear: delete the quicknote associated with current directory.
  • :QuicknotesCleanup: cleanup the quicknotes directory - delete the quicknotes associated with directories that are not anymore on the current system or any file not following the naming scheme inside quicknotes_dir.

License

MIT

About

QuickNotes plugin for neovim

Resources

Stars

6 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages