Skip to content

A nice plugin to use the Notr note app directly from within neovim. Easily browse and search your notebooks and notes, create new ones and keep them in sync.

License

Notifications You must be signed in to change notification settings

kimusan/notr.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

notr.nvim

Neovim integration for Notr—browse, preview, and edit encrypted notes without leaving the editor.

Features

  • Fzf-lua powered pickers for notebooks and notes
  • Live Markdown previews driven by notr view --plain
  • In-buffer editing with automatic notr update + optional notr sync
  • Configurable path to the notr executable and auto-sync behaviour

Requirements

  • Neovim 0.8+ (0.10 recommended for vim.system)
  • notr CLI available on $PATH
  • fzf-lua

Installation

With lazy.nvim:

{
  "kimusan/notr.nvim",
  config = function()
    require("notr").setup({
      cmd = "notr",
      auto_sync = true,
    })
  end,
  dependencies = { "ibhagwan/fzf-lua" },
}

Usage

Commands provided:

  • :NotrNotebooks – fuzzy pick notebooks, then jump into notes picker.
  • :NotrNotes [notebook] – open the notes picker directly (optional notebook argument).
  • :NotrNewNotebook [name] – create (or ensure) a notebook, prompting for a name if omitted.
  • :NotrNewNote [notebook] – open a new note buffer ready to save into a notebook (prompting if omitted).
  • :NotrSync – run notr sync from inside Neovim.

Within the notes picker:

  • <Enter> – open the selected note in a markdown buffer backed by notr update.
  • Ctrl-s – trigger a manual notr sync.

The opened buffer is marked acwrite; :write (or auto-write) pushes changes through notr update and, if enabled, notr sync afterwards.

Tip: run notr login in a shell first so the master key is unlocked before you start editing inside Neovim.

Configuration

Call require("notr").setup({ ... }) to override defaults:

require("notr").setup({
  cmd = "notr",      -- path to the notr executable
  auto_sync = true,   -- run `notr sync` after each update
})

Roadmap

  • Telescope picker support
  • Async status reporting during sync/update operations
  • Keymaps for quick note creation

PRs welcome—see CONTRIBUTING.md.

About

A nice plugin to use the Notr note app directly from within neovim. Easily browse and search your notebooks and notes, create new ones and keep them in sync.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages