unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [DRAFT] New features in Vim interface
@ 2015-01-10 12:03 Bartosz
  2015-01-10 12:03 ` [PATCH 1/4] VIM: implemented message folding in thread view Bartosz
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Bartosz @ 2015-01-10 12:03 UTC (permalink / raw)
  To: notmuch

Hi,

I really like to use notmuch for organising my emails. However, I noticed that vim interface is slightly lagging behind emacs. Some of the most important features still missing are:

- adding attachments (PATCH 4)
- saving sent emails to "Sent" box in maildir (PATCH 3)
- forwarding messages (not implemented yet)
- folding read messages in thread view (PATCH 1 and 2)

This patch series attempts to implement some of the features. It is not a finished product, but rather a prototype of the interface. If you consider it worthwhile I will try to polish the patches.

[PATCH 1/4] VIM: implemented message folding in thread view

This patch automatically folds all read messages in thread view and jumps to the first unread message (if present). It uses vim folding mechanisms (based on syntax definition), so folds can be easily opened/closed.

[PATCH 2/4] VIM: move backward trough messages in thread mode

Currently, vim frontend allows to jump forward through messages in a thread using Tab key. This patch introduces Shift-Tab shortcut to move backwards. In addition, jumping to a new message automatically unfolds it.

[PATCH 3/4] VIM: save sent message to maildir

This patch uses "notmuch insert" for adding a message to a sent folder in mail archives after it is sent. The path to "sent" folder is configurable through .notmuch-config, by defining a section called [vim]. So far there is a single parameter in the section "sent_dirs" that should define a mapping between email addresses and folders. For example:

  [vim]
  sent_dirs=telenczb@hu-berlin.de=>HU/Sent;telenczuk@unic.cnrs-gif.fr=>CNRS/Sent

Email address is parsed from the "From" header of the sent email.

[PATCH 4/4] VIM: adding attachments

Paths to files to be attached should be listed as the final lines of the composed message and prefixed by "Attachment:" (one line per file). For example:
   
   <HEADER>

   <MESSAGE BODY>

   Attachment: /home/bartosz/test.pdf
   Attachment: /home/bartosz/test.txt

I will be glad to hear your opinion about the design and implementation.

Yours,

Bartosz

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-02-02 23:39 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-10 12:03 [DRAFT] New features in Vim interface Bartosz
2015-01-10 12:03 ` [PATCH 1/4] VIM: implemented message folding in thread view Bartosz
2015-01-22 20:41   ` Franz Fellner
2015-02-02 23:39     ` Bartosz Telenczuk
2015-01-10 12:03 ` [PATCH 2/4] VIM: move backward trough messages in thread mode Bartosz
2015-01-10 12:03 ` [PATCH 3/4] VIM: save sent message to maildir Bartosz
2015-01-10 12:03 ` [PATCH 4/4] VIM: adding attachments Bartosz
2015-01-10 22:53 ` [DRAFT] New features in Vim interface David Bremner
2015-01-11 15:39   ` Bartosz Telenczuk
2015-01-12  7:56     ` David Bremner
2015-01-17 18:35     ` Ian Main
2015-01-18  9:43       ` David Bremner
2015-01-19 23:02       ` Bartosz Telenczuk

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).