summaryrefslogtreecommitdiffstats
path: root/vim
AgeCommit message (Collapse)Author
2018-03-24Fix typos as found by codespellGeorg Faerber
Signed-off-by: Georg Faerber <georg@riseup.net>
2015-01-23VIM: Improve performance of folders_renderFranz Fellner
Simply use query.count_[messages,threads] instead of actually running the query and using the count attribute of the result set.
2015-01-22VIM: Respect exclude_tags specified in .notmuch-configFranz Fellner
Exclude mails tagged with any tag specified in 'notmuch config get search.exclude_tags' in folders list and search list.
2014-10-21VIM: Make starting in 'insert' mode for compose optionalIan Main
This adds a variable to make starting in insert mode optional when composing and replying to emails. I found it unusual to be started in insert mode so I thought I'd make it optional as others may find this as well. Ian
2014-10-21VIM: Use notmuch CLI for configIan Main
This patch switches from reading .notmuch-config directly to using the CLI the same way that emacs does it. It actually uses less code and is probably less error prone. Ian
2014-05-03vim: improve the way messages are sentFelipe Contreras
We want the proper encoding and content-type to be set when sending the mail, but human-readable plain-text for composing. So split the code in two parts: the presentation and the transport conversion. This fixes an issue while sending non-ascii mails to strict servers; the mail needs to be encoded. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2014-05-03vim: make the html handler configurablePaul Roberts
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2014-05-03vim: fix count_threads variable checkFelipe Contreras
It never really worked; in Ruby only 'nil' and 'false' evaluate to false, therefore the statement '0 : true ? false' returns true, so it doesn't matter if notmuch_folders_count_threads = 0, count_threads would be true. We need to check specifically if the value is 1 or 0. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2013-11-20vim: add help fileFelipe Contreras
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2013-11-20vim: check compose is done on deleteFelipe Contreras
Not on unload, which happens when we switch buffers. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2013-11-20vim: remove unnecessary buffer queueFelipe Contreras
Vim handles the buffers just fine: when one is deleted, we go to the previous one. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2013-11-20vim: add wrapper for old variable namesFelipe Contreras
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2013-11-20vim: move default sets to set_defaults()Felipe Contreras
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2013-11-20vim: rename public notmuch_rb variablesFelipe Contreras
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2013-11-20vim: rename internal notmuch_rb variablesFelipe Contreras
Now we are the official one. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2013-11-20vim: add option to compose new messagesFelipe Contreras
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2013-11-20vim: refactor open_reply()Felipe Contreras
In preparation for composing new messages. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2013-11-20vim: trivial cleanupFelipe Contreras
Using $email_address is more straight forward. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2013-11-20vim: don't execute search if it's cancelledFelipe Contreras
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2013-11-20vim: generate custom message-idFelipe Contreras
Using Mail as a reference. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2013-11-20vim: split $email_addressFelipe Contreras
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2013-11-20vim: allow calling with argumentsFelipe Contreras
For example: :NotMuch date:today Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2013-11-20vim: add option to save the patches of a patch seriesFelipe Contreras
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2013-11-20vim: use much clearer sort constantFelipe Contreras
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2013-11-20vim: show first message of the threadFelipe Contreras
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2013-11-20vim: refactor database handlingFelipe Contreras
To minimize memory usage we need to destroy the queries and the databases, so we should keep track of them. Each buffer gets a database connection that is destroyed when the buffer is destroyed, and all the queries along with it. Ideally notmuch should destroy the queries when the database is destroyed, but it's not doing that at the moment. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2013-11-20vim: use notmuch fieldsFelipe Contreras
They are better encoded than Ruby's Mail. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2013-11-20vim: don't automatically refresh after taggingFelipe Contreras
This operation might take a while, and even if it only takes fractions of a second, that's not what the user might want. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2013-11-20vim: run mutt in default termCharlie Allom
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2013-07-28debian: build notmuch-vim againDavid Bremner
Based on id:1370220299-14722-1-git-send-email-felipe.contreras@gmail.com Hacked rather extensively by db. The most important changes: - bring back notmuch.yaml for the (debian specific?) vim-addons tool. - depend on vim-ruby, so we get a version of vim with ruby installed.
2013-06-02vim: use the old vim plugin function nameFelipe Contreras
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2013-06-02Add new notmuch vim pluginFelipe Contreras
The old one was not properly maintained and is now deprecated. The new one has much better support. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2013-02-16notmuch-vim: deprecate, move to contribDavid Bremner
As discussed in id:871udhcmks.fsf@zancas.localnet, notmuch-vim doesn't really meet the standards of the CLI, emacs interface, or python bindings in terms of being well maintained.
2012-04-21vim: simplify buildFelipe Contreras
There should be no functional changes, except that you don't need to make the directories before installing. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2012-04-21vim: fix regex after "notmuch show" output changeJakob
The new field "excluded" was added to the output and made this regex fail. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2011-07-16vim: fix citation/signature fold lengthsJason Woofenden
Before they'd often miss the last line Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2011-07-16vim: fix (hack) cig/cit parsing within multipart/*Jason Woofenden
The vim front-end isn't written to handle nested parts. This patch doesn't change that, it just changes the code to pretend that multipart/* sections end immediately. This makes the parsing code think that all sections are top-level, and are thus parsed well enough. The lovely result of this is that citation folds and signature folds now work in text/plain parts that are within multipart/* sections. Also, all mime section starts are now shown correctly (before some were not parsed and showed the ugly ^L and an ID and so on from notmuch.) Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2011-07-16vim: fix on-screen instructions for show-signatureJason Woofenden
Also change a passed parameter to be consistent with the current binding. This parameter appears to be unused. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2011-07-16vim: fix from list reformatting in search viewJason Woofenden
This patch rewrites the reformatting of the from list so it shows full capitalized names when available (without truncating them as the old code did) and removes the pipe characters that appear between some names. The old code appears to assume from list (the list of senders in the thread) coming from notmuch would be e-mail addresses, but in this version it is mostly full names. Also in this version, the names are sometimes separated by pipe instead of comma. For consistency with old versions, names are still truncated at the first period. Perhaps they shouldn't be though. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2011-07-16vim: fix space key: now archives (did opposite)Jason Woofenden
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-16vim: use the full path for sendmailUwe Kleine-König
... as /usr/sbin isn't usually in user's PATH. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2011-07-16vim: skip trailing slash for g:notmuch_compose_temp_file_dirUwe Kleine-König
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-16vim: fix documentation that mailx isn't used anymoreUwe Kleine-König
Since e7899b0 (vim: use sendmail directly) notmuch-vim uses sendmail directly. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2011-06-23fix sum moar typos [error messages]Pieter Praet
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-23fix sum moar typos [comments in source code]Pieter Praet
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-23fix sum moar typos [text files]Pieter Praet
Various typo fixes in auxiliary text files included with the source, (README, TODO, etc.). Signed-off-by: Pieter Praet <pieter@praet.org> Edited-by: Carl Worth <cworth@cworth.org> Restricted to just text files.
2011-05-31vim: add delete commandsFelipe Contreras
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2011-05-31vim: add support for delete in search viewFelipe Contreras
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2011-05-31vim: add support to mark as read in search viewFelipe Contreras
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2011-05-31vim: add support to mark as read in show viewFelipe Contreras
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>