All Projects β†’ soywod β†’ Iris.vim

soywod / Iris.vim

Licence: mit
πŸ“« Simple mail client for Vim.

Programming Languages

python3
1442 projects

Projects that are alternatives of or similar to Iris.vim

Gen tags.vim
Async plugin for vim and neovim to ease the use of ctags/gtags
Stars: ✭ 288 (+94.59%)
Mutual labels:  plugin, neovim, vim-plugin
Asyncrun.vim
πŸš€ Run Async Shell Commands in Vim 8.0 / NeoVim and Output to the Quickfix Window !!
Stars: ✭ 1,332 (+800%)
Mutual labels:  neovim, vim-plugin
Sniprun
A neovim plugin to run lines/blocs of code (independently of the rest of the file), supporting multiples languages
Stars: ✭ 93 (-37.16%)
Mutual labels:  plugin, neovim
Ncm R
R autocompletion for Neovim and vim 8 πŸ“ πŸ“Š ⚑️
Stars: ✭ 102 (-31.08%)
Mutual labels:  neovim, vim-plugin
Todoist.nvim
A todoist extension for neovim
Stars: ✭ 84 (-43.24%)
Mutual labels:  neovim, vim-plugin
Vim Rfc
πŸ““ Query RFC database and download RFCs from within Vim.
Stars: ✭ 88 (-40.54%)
Mutual labels:  neovim, vim-plugin
Vim current word
Plugin highlighting word under cursor and all of its occurences
Stars: ✭ 100 (-32.43%)
Mutual labels:  neovim, vim-plugin
Vim Grepper
πŸ‘Ύ Helps you win at grep.
Stars: ✭ 1,030 (+595.95%)
Mutual labels:  neovim, vim-plugin
Nvim Toggleterm.lua
A neovim lua plugin to help easily manage multiple terminal windows
Stars: ✭ 102 (-31.08%)
Mutual labels:  plugin, neovim
Nvim Treesitter Context
Show code context
Stars: ✭ 113 (-23.65%)
Mutual labels:  neovim, vim-plugin
Nvim Lspconfig
Quickstart configurations for the Nvim LSP client
Stars: ✭ 3,410 (+2204.05%)
Mutual labels:  plugin, neovim
Vista.vim
🌡 Viewer & Finder for LSP symbols and tags
Stars: ✭ 1,218 (+722.97%)
Mutual labels:  neovim, vim-plugin
Vim Crates
Handle Cargo dependencies like a Rustavimean.
Stars: ✭ 54 (-63.51%)
Mutual labels:  plugin, neovim
Vim Which Key
🌷 Vim plugin that shows keybindings in popup
Stars: ✭ 1,310 (+785.14%)
Mutual labels:  neovim, vim-plugin
Vim Lookup
Jump to the definition of variables or functions in VimL code.
Stars: ✭ 51 (-65.54%)
Mutual labels:  neovim, vim-plugin
Close Buffers.vim
πŸ“– Quickly close (bdelete) several buffers at once πŸ“•
Stars: ✭ 99 (-33.11%)
Mutual labels:  plugin, neovim
Vim Laravel
Vim support for Laravel/Lumen projects
Stars: ✭ 128 (-13.51%)
Mutual labels:  plugin, neovim
Neoformat
✨ A (Neo)vim plugin for formatting code.
Stars: ✭ 977 (+560.14%)
Mutual labels:  plugin, neovim
Vim Outdated Plugins
πŸ”„ Async Vim/Neovim plugin for showing the number of your outdated plugins
Stars: ✭ 44 (-70.27%)
Mutual labels:  neovim, vim-plugin
Neovim Fuzzy
Fuzzy file finding for neovim
Stars: ✭ 103 (-30.41%)
Mutual labels:  neovim, vim-plugin

⚠️ Project archived. Have a look at himalaya, its successor.

πŸ“« Iris.vim

Simple mail client for Vim, inspired by (Neo)Mutt and Alpine.

image

Table of contents

Motivation

(Neo)Mutt and Alpine are very good terminal mail clients, but they lack of Vim mappings. You can emulate, but it requires a lot of time, patience and configuration. Why trying to emulate, when you can have it in Vim? VimL and Python are strong enough to do so. The aim of Iris is to provide a simple mail client that:

  • Allows you to manage your mails inside Vim
  • Does not slow down neither Vim nor your workflow (async+lazy)
  • Is built on the top of a robust Python IMAP client to avoid implementing IMAP protocol logic

Requirements

You need either Neovim or Vim8+ with:

  • Python3 support enabled :echo has("python3")
  • Job enabled :echo has("job")
  • Channel enabled :echo has("channel")

Installation

For eg. with vim-plug:

Plug "soywod/iris.vim"

Configuration

Before using Iris, you need to configure it:

Identity (required)

let g:iris_name  = "My name"
let g:iris_mail = "[email protected]"

IMAP (required)

let g:iris_imap_host  = "your.imap.host"
let g:iris_imap_port  = 993
let g:iris_imap_login = "Your IMAP login" "Default to g:iris_mail

SMTP (required)

let g:iris_smtp_host  = "your.smtp.host" "Default to g:iris_imap_host
let g:iris_smtp_port  = 587
let g:iris_smtp_login = "Your IMAP login" "Default to g:iris_mail

Passwords

On startup, Iris always asks for your IMAP and SMTP passwords. To avoid this, you can save your password in a file and encrypt it via GPG:

gpg --encrypt --sign --armor --output myfile.gpg myfile
let g:iris_imap_passwd_filepath = "/path/to/imap.gpg"
let g:iris_smtp_passwd_filepath = "/path/to/smtp.gpg"

Note: iris_imap_passwd_filepath & iris_smtp_password_filepath must be absolute paths. For example the path ~/passwords/imap.gpg would not work because of the ~.

If you want to use something else than GPG, you can set up your custom command. For eg., with the MacOSX security tool:

let g:iris_imap_passwd_show_cmd = "security find-internet-password -gs IMAP_KEY -w"
let g:iris_smtp_passwd_show_cmd = "security find-internet-password -gs SMTP_KEY -w"

Idle mode

On startup, Iris spawns two Python jobs: one for the API, one for the idle mode. The last one allows you to receive notifications on new mails. You can disable this option or change the default timeout (every 15s):

let g:iris_idle_enabled = 1
let g:iris_idle_timeout = 15

Pagination

By default, Iris fetches your last 50 mails:

let g:iris_emails_chunk_size = 50

Note: the pagination is based on message sequences which is not necessary consecutive. It makes the pagination less accurate (doesn't fetch always the same amount of mails) but more performant.

Attachments

let g:iris_download_dir = "~/Downloads"

Usage

Email list

:Iris
Function Default keybind Override
Preview (text) <Enter> nmap <cr> <plug>(iris-preview-text-email)
Preview (html) gp (for go preview) nmap gp <plug>(iris-preview-html-email)
Download attachments ga (for go attachments) nmap ga <plug>(iris-download-attachments)
New mail gn (for go new) nmap gn <plug>(iris-new-email)
Previous page <Ctrl+b> (for page backward) nmap <c-b> <plug>(iris-prev-page-emails)
Next page <Ctrl+f> (for page forward) nmap <c-f> <plug>(iris-next-page-emails)
Change folder gf (for go folder) nmap gf <plug>(iris-change-folder)

Email text preview

Function Default keybind Override
Reply gr (for go reply) nmap gr <plug>(iris-reply-email)
Reply all gR (for go reply all) nmap gR <plug>(iris-reply-all-email)
Forward gf (for go forward) nmap gf <plug>(iris-forward-email)

Email composition

Iris is based on the builtin mail.vim filetype and syntax. An email should contains a list of headers followed by the message:

To: [email protected].com
Subject: Welcome

Hello world!
Function Default keybind Override
Save draft :w
Send gs (for go send) nmap gs <plug>(iris-send-email)

Folders

By default, Iris will display a basic prompt to select your folders:

:IrisFolder

Iris supports those fuzzy finders:

Note: Iris will use the first fuzzy finder available automatically.

Flags

Flags appears in the first column of the email list view. There is 5 different flags:

  • N if it's a new email
  • R if it has been replied
  • F if it has been flagged
  • D if it's a draft
  • @ if it contains an attachment

Contacts

In order to autocomplete addresses, Iris keeps a .contacts file that contains emails of your contacts. It's updated each time you send a new email (only the To header is used). You can extract existing addresses from all your emails:

:IrisExtractContacts

Note: the completion may need to be triggered manually via <C-x><C-u>, see :h i_CTRL-X_CTRL-U.

Contributing

Git commit messages follow the Angular Convention, but contain only a subject.

Use imperative, present tense: β€œchange” not β€œchanged” nor β€œchanges”
Don't capitalize first letter
No dot (.) at the end

Code should be as clean as possible, variables and functions use the snake case convention. A line should never contain more than 80 characters.

Tests should be added for each new functionality. Be sure to run tests before proposing a pull request.

Credits

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].