Skip to content

yuucu/minimemo.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

minimemo.nvim πŸ“

Minimal NeoVim memo plugin - Create quick memos with a single command

πŸ“– Overview

minimemo.nvim is a memo plugin that pursues "simplicity". With just one command, it handles both single-line memos and code snippet memos, automatically saving them to daily Markdown files.

Inspired by the quick capture functionality of Thino (Obsidian plugin), this plugin brings similar convenience to NeoVim users.

πŸš€ Usage

Basic Commands

" Single-line memo
:Minimemo Today's task completed

" Selection memo (after Visual selection)
:'<,'>Minimemo

Output Example

# 20250604

## minimemo
- 2025-06-04 01:05:29 JST - Today's task completed
- 2025-06-04 01:05:46 JST - From /path/to/file.js:1-3
  ```javascript
  function hello() {
    console.log('world');
  }

πŸ“¦ Installation

-- lazy.nvim
{
  'yuucu/minimemo.nvim',
  config = function()
    require('minimemo').setup()
  end
}

-- packer.nvim
use {
  'yuucu/minimemo.nvim',
  config = function()
    require('minimemo').setup()
  end
}

βš™οΈ Configuration

require('minimemo').setup({
  memo_dir = "~/memo",                    -- πŸ“‚ Memo save directory
  file_format = "%Y%m%d.md",              -- πŸ“„ File name format
  header_name = "minimemo",               -- 🏷️  Memo section name
  display_timezone = "Asia/Tokyo",        -- 🌍 Timezone display
  time_format = "%Y-%m-%d %H:%M:%S %Z",   -- πŸ•’ Time display format
  include_file_info = true,               -- πŸ“‹ Include file info in code
  auto_detect_filetype = true,            -- πŸ” Auto language detection
})

πŸ“ File Format Examples

-- Compact format (default)
file_format = "%Y%m%d.md"        -- 20250604.md

-- Separated format
file_format = "%Y-%m-%d.md"      -- 2025-06-04.md

-- Different extension
file_format = "%Y%m%d.txt"       -- 20250604.txt

-- Custom format
file_format = "%Y%m%d_memo.md"   -- 20250604_memo.md

πŸ—οΈ Architecture

minimemo.nvim/
β”œβ”€β”€ plugin/minimemo.vim          # 🎯 Vim command definition
└── lua/minimemo/
    β”œβ”€β”€ init.lua                 # 🚦 Main processing & argument branching
    β”œβ”€β”€ config.lua               # βš™οΈ  Configuration management
    └── core/
        β”œβ”€β”€ memo.lua             # ✍️  Memo entry generation
        β”œβ”€β”€ file.lua             # πŸ“ File operations
        └── timestamp.lua        # ⏰ Time processing

πŸ“„ License

MIT License

About

πŸ“ Minimal NeoVim memo plugin - Create quick memos with a single command

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published