A pluggin to create, list and view custom notes.
Important
This plugin was made for educational purposes, and personal use. It's my first plugin made to learn lua and nvim plugin development
{
"EnzoJ0se/quick-notes.nvim",
dependencies = { "nvim-lua/plenary.nvim" }
}
local quickNotes = require('quick-notes');
-- Setup call is required.
--
-- OPTS EXAMPLE
-- @field notes_dir string (base dir to store notes)
-- @field note_file_extension string (the notes file extension, by defualt it's .md)
-- @field open_command string (the command used to open files, by default it's "e")
quickNotes:setup();
vim.keymap.set("n", "<leader>Qq", function() quickNotes:toggle() end, { desc = 'Toggle Quick Menu' });
vim.keymap.set("n", "<leader>Ql", function() quickNotes:openLastNote() end, { desc = 'Open last open note' });
vim.keymap.set("n", "<leader>Qn", function() quickNotes:new() end, { desc = 'Create new note on notes_dir' });
vim.keymap.set("n", "<leader>Qb", function() quickNotes:browse() end, { desc = 'Browse to notes dir using Netrw' });
<C-n>
: Create new note;<C-b>
: Browse to notes dir;<C-o>
: Open the note under the cursor in preview window;<C-v>
: Split the note under the cursor in a new window;<C-d>
: Delete the note under the cursor;<ESC>
orq
: to close the Menu";