Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Zettelkasten for Neovim — Smart Notes, Linked for Thought

License

hisamafahri/archive.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

archive.nvim

Intelligent notes with wikilink support and autocomplete. Heavily inspired by The Archive app.

Features

  • Create timestamped markdown notes with unique IDs
  • Wikilink autocomplete with nvim-cmp integration
  • Navigate between notes using wikilinks ([[Note Title]]) and markdown syntax links ([text](url))
  • Automatic note creation
  • Open URLs in default browser

Requirements

  • ripgrep (required for file searching)
  • nvim-cmp (optional, for autocomplete)

Installation

vim-plug

Plug 'hisamafahri/archive.nvim'

dein.vim

call dein#add('hisamafahri/archive.nvim')

packer.nvim

use 'hisamafahri/archive.nvim'

lazy.nvim

{
  'hisamafahri/archive.nvim',
  config = function()
    require('archive').setup({
      workspace = '~/notes' -- Required: path to your notes directory
    })
  end
}

Configuration

Basic Setup

require('archive').setup({
  workspace = '~/notes' -- Required: path to your notes directory
})

With nvim-cmp Integration

-- Setup archive.nvim
require('archive').setup({
  workspace = '~/notes'
})

-- Add to your nvim-cmp sources
require('cmp').setup({
  sources = {
    { name = 'archive_wikilink' },
    -- your other sources...
  }
})

Usage

Available Commands

  • :Archive new - Create a new note with user input title
  • :Archive go_to_link - Navigate to link under cursor

Keybindings

Add these to your Neovim configuration:

-- Create new note
vim.keymap.set('n', '<leader>an', ':Archive new<CR>', { desc = 'Create new note' })

-- Navigate to link under cursor
vim.keymap.set('n', '<leader>ag', ':Archive go_to_link<CR>', { desc = 'Go to link under cursor' })

About

Zettelkasten for Neovim — Smart Notes, Linked for Thought

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages