Commit graph

122 commits

Author SHA1 Message Date
Jason Woofenden
2b79776eed vim: fix space key: now archives (did opposite)
In vim, in the message view, space is supposed to remove the "unread" and
"inbox" tags, but was sometimes adding them instead.

This patch assures that they are always removed by this binding.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2011-07-16 21:57:38 +03:00
Uwe Kleine-König
bab653ce39 vim: use the full path for sendmail
... as /usr/sbin isn't usually in user's PATH.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2011-07-16 21:57:38 +03:00
Uwe Kleine-König
bcb17491b5 vim: skip trailing slash for g:notmuch_compose_temp_file_dir
With the trailing slash I get

	Error detected while processing function <SNR>10_NM_new_mail..<SNR>10_NM_cmd_compose..<SNR>10_NM_newComposeBuffer..<SNR>10_NM_newFileBuffer:
	line    3:
	E739: Cannot create directory: /home/ukleinek/.notmuch/compose/

when hitting 'm' to compose a new mail. strace shows:

	stat("/home/ukleinek/.notmuch/compose/", 0x7fffee314a10) = -1 ENOENT (No such file or directory)
	stat("/home/ukleinek/.notmuch/compose/", 0x7fffee314e30) = -1 ENOENT (No such file or directory)
	stat("/home/ukleinek/.notmuch/compose", 0x7fffee315270) = -1 ENOENT (No such file or directory)
	stat("/home/ukleinek/.notmuch", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
	mkdir("/home/ukleinek/.notmuch/compose", 0755) = 0
	mkdir("/home/ukleinek/.notmuch/compose/", 0755) = -1 EEXIST (File exists)

so it seems vim's mkdir() isn't able to handle a trailing slash.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2011-07-16 21:49:12 +03:00
Pieter Praet
607a73010a fix sum moar typos [error messages]
Various typo fixes in error messages within the source code.

Signed-off-by: Pieter Praet <pieter@praet.org>

Edited-by: Carl Worth <cworth@cworth.org> Restricted to just error messages.
2011-06-23 15:59:03 -07:00
Pieter Praet
8bb6f7869c fix sum moar typos [comments in source code]
Various typo fixes in comments within the source code.

Signed-off-by: Pieter Praet <pieter@praet.org>

Edited-by: Carl Worth <cworth@cworth.org> Restricted to just
source-code comments, (and fixed fix of "descriptios" to "descriptors"
rather than "descriptions").
2011-06-23 15:58:39 -07:00
Felipe Contreras
e96741388a vim: add delete commands
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2011-05-31 17:52:23 -07:00
Felipe Contreras
8344c439bf vim: add support for delete in search view
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2011-05-31 17:52:23 -07:00
Felipe Contreras
06a292018d vim: add support to mark as read in search view
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2011-05-31 17:52:23 -07:00
Felipe Contreras
e236142f03 vim: add support to mark as read in show view
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2011-05-31 17:52:23 -07:00
Felipe Contreras
81347e289f vim: parse 'from' address
In order to pass it to sendmail.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2011-05-04 23:38:38 +03:00
Felipe Contreras
e7899b00d0 vim: use sendmail directly
The problem with 'mailx' is that it's not standardized, and it doesn't
allow the -f option, which is pretty important on many sendmail
configurations.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2011-05-04 23:38:38 +03:00
Felipe Contreras
5cdf424657 vim: add myself (Felipe Contreras) as contributor
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2011-05-04 23:14:37 +03:00
Felipe Contreras
ac9b9cf56a vim: implement archive in show view
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2011-05-04 23:06:10 +03:00
Felipe Contreras
3cac5f8acb vim: refactor tagging stuff
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2011-05-04 23:06:09 +03:00
Peter John Hartman
4aeb291c78 vim: Get user email address from notmuch config file.
Here's a bitty patch to the vim plugin; it now calculates the primary email
of the user based on a call to notmuch config.  There's still a lot of work
that needs to get done on notmuch.vim, e.g., the ability to have multiple
emails/accounts.
2011-01-26 16:57:58 +10:00
Felipe Contreras
eb80315d5a vim: run(): optimize non-debug path
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2010-11-08 10:00:18 -08:00
Felipe Contreras
6b9aa725ad vim: use mailx for sending
Possilby used by more systems, and besides the code wasn't really
working properly anyway.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2010-11-08 10:00:18 -08:00
Felipe Contreras
5a8903f05a vim: add option to mark as read + archive
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2010-11-08 10:00:18 -08:00
Felipe Contreras
c639ffae1e vim: remove add_remove_tags_on_screen()
It's not working properly; the current message is jumping around and the
tags not really added/removed properly.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2010-11-08 10:00:17 -08:00
Felipe Contreras
75633b3220 vim: cleanup search buffer
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2010-11-08 10:00:17 -08:00
Felipe Contreras
087e292d11 vim: add archive support from 'show'
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2010-11-08 10:00:17 -08:00
Ben Gamari
2805a243b5 Fix typo in message 2010-04-15 19:43:56 -07:00
Bart Trojanowski
0ca1611416 vim: preserve the 'show everything' flag when finding next/prev buffer
When show mode is invoked it could be displaying just the matched messages
or everything.  This flag is passed to NM_search_show_thread().  It is then
stored in a buffer variable, b:nm_show_everything, and used for subsequent
calls to NM_search_show_thread() triggered by <Space>, <C-n> and <C-p>.

Signed-off-by: Bart Trojanowski <bart@jukie.net>
2009-12-03 13:30:21 -08:00
Bart Trojanowski
8a3352e619 vim: use notmuch show --entire-thread 2009-12-02 14:37:15 -08:00
Bart Trojanowski
e6628e78d9 vim: use <Space> more consistently in search view
In search view <Space> will show the thead, but folding messages that
don't match the current search expression.  Conversly, <Enter> always
shows all messages in the thread.
2009-11-27 18:02:05 -05:00
Bart Trojanowski
16a00de924 vim: make it possible to start a search in show mode 2009-11-27 17:43:01 -05:00
Bart Trojanowski
dffee11a40 vim: don't toggle folds that are inside closed folds in show mode 2009-11-27 17:18:41 -05:00
Bart Trojanowski
e5a25c7692 vim: primitive reply to message 2009-11-27 16:52:00 -05:00
Bart Trojanowski
ab3ce6196e vim: primitive reply to thread 2009-11-27 16:48:52 -05:00
Bart Trojanowski
0ef04e14ff vim: few compose mode updates, including README 2009-11-27 16:47:39 -05:00
Bart Trojanowski
e13bdc2c0e vim: don't remove headers until after parsing them 2009-11-27 14:05:13 -05:00
Bart Trojanowski
fd805c16c3 vim: fix off-by-one error when removing header from message to send out 2009-11-27 14:02:25 -05:00
Bart Trojanowski
b76852dcc5 vim: generalize compose buffer function further 2009-11-27 13:32:57 -05:00
Bart Trojanowski
ef81270760 vim: have ,nmr just reload the plugin w/o restarting state 2009-11-27 13:08:30 -05:00
Bart Trojanowski
d1eb2c6ce5 vim: make it possible to replace NM_cobine_tags() 2009-11-27 13:06:46 -05:00
Bart Trojanowski
efa9df2d49 vim: add a helper to combine tag search expressions 2009-11-27 11:04:54 -05:00
Bart Trojanowski
43cfdab608 vim: have '?' show search words in search mode 2009-11-27 09:35:49 -05:00
Bart Trojanowski
dfb0b97b3c vim: cleanup error messages 2009-11-27 01:34:08 -05:00
Bart Trojanowski
a04334e959 vim: fix regexp for cleaning search list 2009-11-27 01:31:16 -05:00
Bart Trojanowski
5b8f74b512 vim: force deleting buffers 2009-11-27 01:18:00 -05:00
Bart Trojanowski
becc49eee7 vim: fix message parsing patterns
if a message did not contain a trailing CR, we may not be able to match ^\f
2009-11-27 01:17:36 -05:00
Bart Trojanowski
b5e28d8615 vim: implement sending with ,s from compose buffer 2009-11-27 01:03:35 -05:00
Bart Trojanowski
05d76deb2e vim: store previous buffer number when starting to compose 2009-11-27 01:02:50 -05:00
Bart Trojanowski
651b215f0f vim: make sure headers begin with \w 2009-11-27 01:02:37 -05:00
Bart Trojanowski
350e013696 vim: allow overriding how newBuffer is created 2009-11-27 01:01:37 -05:00
Bart Trojanowski
9012c65282 vim: replace echo\nreturn with trhow in a few places 2009-11-26 23:11:38 -05:00
Bart Trojanowski
aa312db8cd vim: make insert in compose mode configurable 2009-11-26 23:09:57 -05:00
Bart Trojanowski
8bafbac75c vim: add a helpful header to notmuch-compose mode 2009-11-26 23:07:07 -05:00
Bart Trojanowski
b078a0c8c2 vim: add support for <Tab> in compose mode
this will skip to the next header in insert and normal modes, and
behave like <Tab> otherwise.
2009-11-26 22:32:02 -05:00
Bart Trojanowski
0aa5f7d250 vim: add support for :NotMuch compose
... but it doesn't send yet.
2009-11-26 22:30:13 -05:00