Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Read/write mail offline in your favorite text editor. Notmuch interface for neovim written in Lua

NotificationsYou must be signed in to change notification settings

yousefakbar/notmuch.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A powerful and flexible mail reader interface for NeoVim. This plugin bridgesyour email and text editing experiences directly within NeoVim by interfacingwith theNotmuch mail indexer.

Table of Contents

  1. Introduction
  2. Feature Overview
  3. Requirements
  4. Installation
  5. Usage
  6. Configuration Options
  7. License

Introduction

Notmuch.nvim is a NeoVim plugin that serves as a front-end for the Notmuchmail indexer, enabling users to read, compose, and manage their emails fromwithin NeoVim. It facilitates a streamlined workflow for handling emails usingthe familiar Vim interface and motions.

Feature Overview

  • 📧Email Browsing: Navigate emails with Vim-like movements.
  • 🔍Search Your Email: Leveragenotmuch to search your email interactively.
  • 🔗Thread Viewing: Messages are loaded with folding and threading intact.
  • 📎Attachment Management: View and save attachments easily.
  • ⬇️Offline Mail Sync: Supportsmbsync for efficient sync processes.
  • 🔓Async Search: Large mailboxes with thousands of email? No problem.
  • 🏷️Tag Management: Conveniently add, remove, or toggle email tags.
  • 🔭 (WIP)Telescope.nvim Integration: Search interactively, extract URL's, jumpefficiently, with the powerful file picker of choice.

Requirements

  • NeoVim: Version 0.5 or later isrequired due to LuaJIT support.
  • Notmuch: Ensure Notmuch and libnotmuch libraryare installed
  • (WIP)Telescope.nvim: Filepicker of choice for many use cases.

Installation

You can install Notmuch.nvim using your favorite NeoVim plugin manager.

Usinglazy.nvim:

{'yousefakbar/notmuch.nvim',config=function()-- Configuration goes herelocalopts= {}require('notmuch').setup(opts)end,}

Manual Installation:

Clone the repository and add the directory to yourruntimepath:

git clone https://github.com/yousefakbar/notmuch.nvim.git

Usage

Here are the core commands within Notmuch.nvim:

  • :Notmuch: Lists available tags in your Notmuch database in a buffer.Setup key bindings for easy access. Example:

    -- Define a keymap to run `:Notmuch` and launch the plugin landing pagevim.keymap.set("n","<leader>n","<CMD>Notmuch<CR>")
  • :NmSearch <query>: Executes an asynchronous search based on providedNotmuch query terms.

    " Loads the threads in your inbox received today:NmSearchtag:inboxand date:today

Configuration Options

You can configure several global options to tailor the plugin's behavior:

OptionDescriptionDefault value
notmuch_db_pathDirectory containing the.notmuch/ dir$HOME/Mail
maildir_sync_cmdBash command to run for syncing maildirmbsync -a
open_cmdBash command for opening attachmentsxdg-open
keymapsConfigure any (WIP) command's keymapSeeconfig.lua1

Example in plugin manager (lazy.nvim):

{"yousefakbar/notmuch.nvim",opts= {notmuch_db_path="/home/xxx/Documents/Mail"maildir_sync_cmd="mbsync personal"keymaps= {sendmail="<C-g><C-g>",        },    },},

License

This project is licensed under the MIT License, granting you the freedom to use,copy, modify, merge, publish, distribute, sublicense, and/or sell copies. TheMIT License's full text can be found in theLICENSE section of the project'sdocumentation.

For more details on usage and advanced configuration options, please refer tothe in-depth plugin help within NeoVim::help notmuch.

About

Read/write mail offline in your favorite text editor. Notmuch interface for neovim written in Lua

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp