Skip to content

kubemancer/quick-notes.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

quick-notes.nvim

A simple and efficient quick notes plugin for Neovim that helps you capture thoughts and ideas without leaving your editor.

Features

  • 📝 Quick Note Creation: Create timestamped markdown notes instantly
  • 🔍 Smart Search: Search within your notes using Telescope (with fallback)
  • 📋 Note Listing: Browse all notes with fuzzy finding
  • 🎯 LazyVim Integration: Seamless integration with LazyVim
  • 🏥 Health Checks: Built-in health check support
  • 🐛 Debug Mode: Development utilities for troubleshooting

Installation

With lazy.nvim (LazyVim)

{
  "kubemancer/quick-notes.nvim",
  config = function()
    require("quick-notes").setup({
      notes_dir = vim.fn.expand("~/notes"),
      default_note_name = "quick-note",
      date_format = "%Y-%m-%d_%H-%M-%S",
    })
  end,
  keys = {
    { "<leader>nn", "<cmd>QuickNote<cr>", desc = "Create new quick note" },
    { "<leader>nl", "<cmd>QuickNoteList<cr>", desc = "List quick notes" },
    { "<leader>ns", "<cmd>QuickNoteSearch<cr>", desc = "Search notes" },
  },
  cmd = { "QuickNote", "QuickNoteList", "QuickNoteSearch" },
}
use {
  "kubemancer/quick-notes.nvim",
  config = function()
    require("quick-notes").setup()
  end
}
Plug 'kubemancer/quick-notes.nvim'

Then in your init.lua:

require("quick-notes").setup()

Configuration

Default configuration:

require("quick-notes").setup({
  notes_dir = vim.fn.expand("~/notes"),        -- Directory to store notes
  default_note_name = "quick-note",            -- Default note filename prefix
  date_format = "%Y-%m-%d_%H-%M-%S",          -- Timestamp format
  debug = false,                               -- Enable debug mode
})

Usage

Commands

  • :QuickNote - Create a new timestamped note
  • :QuickNoteList - List all notes (uses Telescope if available)
  • :QuickNoteSearch - Search within note contents

Default Keymaps

  • <leader>nn - Create new quick note
  • <leader>nl - List quick notes
  • <leader>ns - Search notes

Note Template

Each note is created with a basic template:

# Quick Note - 2024-01-15 14:30:45

## Notes

Dependencies

Required

  • Neovim >= 0.7.0

Optional

Health Check

Run :checkhealth quick-notes to verify your installation and configuration.

Development

Enable debug mode for development:

require("quick-notes").setup({
  debug = true,
})

Debug commands (only available in debug mode):

  • :QuickNoteDebug - Run plugin tests
  • :QuickNoteInspect - Inspect current configuration

License

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages