Skip to content

aliyss/vim-himalaya-ui

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-himalaya-ui

Simple UI for himalaya. It allows simple navigation through mail accounts and allows for reading and writing email.

Tested on Linux and Neovim.

Features:

  • Navigate through multiple accounts and it's folders and emails

Disclaimer

The idea is to have a similar interface to vim-dadbod-ui, but for email. Which is why I decided to fork it and modify it to the needs of himalaya. This is a work in progress and it's not ready for use. Pull requests are extremely welcome.

This is my first vim plugin, so I'm learning as I go.

Installation

No clue. I'm still working on this.

After configuring your mail account, run :HIMALAYAUI, which should open up a drawer with all mail accounts provided. When you finish writing an email, just write the file (:w) and it will automatically prompt to send or save as draft.

Actions

Drawer

  • Create a new email
  • List folders in an account
  • List emails in a folder

List

List Actions

  • Navigate Next & Previous Pages (Enter, n, p)
  • Read an email in the list view (Enter)
  • Refresh list of emails (r)

Email Actions

  • Reply to an email in the list view (mr)
  • Reply All to an email in the list view (mR)
  • Forward an email in the list view (mf)
  • Move an email in the list view (mm)
  • Copy an email in the list view (mc)
  • Download an email's attachments in the list view (ma)
  • Delete an email in the list view (md)

Multiple Email Actions

  • Move multiple emails in the list view (Visual mode + m)
  • Copy multiple emails in the list view (Visual mode + c)
  • Download multiple email's attachments in the list view (Visual mode + a)
  • Delete multiple emails in the list view (Visual mode + d)

Email

  • Reply to the email in the mail view (r)
  • Reply All to the email in the mail view (R)
  • Forward the email in the mail view (f)
  • Move the email in the mail view (m)
  • Copy the email in the mail view (c)
  • Download the email's attachments in the mail view (a)
  • Delete the email in the mail view (d)
  • Add attachment to the email in the mail view

Future

Fix multiple issues and implement more features.

Roadmap

Mail List View (aka $ list mails)

Uses the current window where in dadbod you write the query, but instead lists all the emails.

Actions (based on keybindings and hovered_over):

  • Reply (Mail Create View)
  • Reply all (Mail Create View)
  • Forward (Mail Create View)
  • Download Attachments
  • Open externally...
  • Delete
  • Move to... (Telescope integration?)
  • Enter: shows Mail in the dadbod result window (Mail Display View)

Mail Display View

Displays Mail as text. Toggable to HTML view which shows raw html.

Actions:

  • same as in List View
  • View as HTML/Text
  • (when hovered_on Thread expand...)

Mail Create View (aka $ create mail)

Pre-filled based on context. Should actually already work easily as himalaya provides most of this.

Actions

  • Send
  • Save as draft
  • Add Attachment
  • Discard

Afaik that should be all of the main stuff.


Hard stuff not provided by Himalaya:

  • Enhanced Mail View in the future with lynx browser integration possibly.
  • Images maybe with sixel. No clue. I actually don't mind reading Email in text only.
  • Querying using something like notmuch

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 99.8%
  • Shell 0.2%