Skip to content

EnzoJ0se/quick-notes.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

quick-notes.nvim

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


Instalation

{
    "EnzoJ0se/quick-notes.nvim",
    dependencies = { "nvim-lua/plenary.nvim" }
}

Basic Setup

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' });

Quick Menu Keymaps

  • <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> or q: to close the Menu";

About

A pluggin to create custom notes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages