aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim
Commit message (Collapse)AuthorAge
* vim: improve the way messages are sentGravatar Felipe Contreras2014-05-03
| | | | | | | | | | | 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>
* vim: make the html handler configurableGravatar Paul Roberts2014-05-03
| | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: fix count_threads variable checkGravatar Felipe Contreras2014-05-03
| | | | | | | | | | | 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>
* vim: add help fileGravatar Felipe Contreras2013-11-20
| | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: check compose is done on deleteGravatar Felipe Contreras2013-11-20
| | | | | | Not on unload, which happens when we switch buffers. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: remove unnecessary buffer queueGravatar Felipe Contreras2013-11-20
| | | | | | | 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>
* vim: add wrapper for old variable namesGravatar Felipe Contreras2013-11-20
| | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: move default sets to set_defaults()Gravatar Felipe Contreras2013-11-20
| | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: rename public notmuch_rb variablesGravatar Felipe Contreras2013-11-20
| | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: rename internal notmuch_rb variablesGravatar Felipe Contreras2013-11-20
| | | | | | Now we are the official one. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: add option to compose new messagesGravatar Felipe Contreras2013-11-20
| | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: refactor open_reply()Gravatar Felipe Contreras2013-11-20
| | | | | | In preparation for composing new messages. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: trivial cleanupGravatar Felipe Contreras2013-11-20
| | | | | | Using $email_address is more straight forward. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: don't execute search if it's cancelledGravatar Felipe Contreras2013-11-20
| | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: generate custom message-idGravatar Felipe Contreras2013-11-20
| | | | | | Using Mail as a reference. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: split $email_addressGravatar Felipe Contreras2013-11-20
| | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: allow calling with argumentsGravatar Felipe Contreras2013-11-20
| | | | | | | | For example: :NotMuch date:today Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: add option to save the patches of a patch seriesGravatar Felipe Contreras2013-11-20
| | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: use much clearer sort constantGravatar Felipe Contreras2013-11-20
| | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: show first message of the threadGravatar Felipe Contreras2013-11-20
| | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: refactor database handlingGravatar Felipe Contreras2013-11-20
| | | | | | | | | | | | | 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>
* vim: use notmuch fieldsGravatar Felipe Contreras2013-11-20
| | | | | | They are better encoded than Ruby's Mail. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: don't automatically refresh after taggingGravatar Felipe Contreras2013-11-20
| | | | | | | 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>
* vim: run mutt in default termGravatar Charlie Allom2013-11-20
| | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* debian: build notmuch-vim againGravatar David Bremner2013-07-28
| | | | | | | | | | 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.
* vim: use the old vim plugin function nameGravatar Felipe Contreras2013-06-02
| | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* Add new notmuch vim pluginGravatar Felipe Contreras2013-06-02
| | | | | | | 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>
* notmuch-vim: deprecate, move to contribGravatar David Bremner2013-02-16
| | | | | | 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.
* vim: simplify buildGravatar Felipe Contreras2012-04-21
| | | | | | | 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>
* vim: fix regex after "notmuch show" output changeGravatar Jakob2012-04-21
| | | | | | The new field "excluded" was added to the output and made this regex fail. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: fix citation/signature fold lengthsGravatar Jason Woofenden2011-07-16
| | | | | | Before they'd often miss the last line Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: fix (hack) cig/cit parsing within multipart/*Gravatar Jason Woofenden2011-07-16
| | | | | | | | | | | | | | | 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>
* vim: fix on-screen instructions for show-signatureGravatar Jason Woofenden2011-07-16
| | | | | | | 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>
* vim: fix from list reformatting in search viewGravatar Jason Woofenden2011-07-16
| | | | | | | | | | | | | | | | 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>
* vim: fix space key: now archives (did opposite)Gravatar Jason Woofenden2011-07-16
| | | | | | | | | 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>
* vim: use the full path for sendmailGravatar Uwe Kleine-König2011-07-16
| | | | | | ... as /usr/sbin isn't usually in user's PATH. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: skip trailing slash for g:notmuch_compose_temp_file_dirGravatar Uwe Kleine-König2011-07-16
| | | | | | | | | | | | | | | | | | | | | 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>
* vim: fix documentation that mailx isn't used anymoreGravatar Uwe Kleine-König2011-07-16
| | | | | | | | Since e7899b0 (vim: use sendmail directly) notmuch-vim uses sendmail directly. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* fix sum moar typos [error messages]Gravatar Pieter Praet2011-06-23
| | | | | | | | 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.
* fix sum moar typos [comments in source code]Gravatar Pieter Praet2011-06-23
| | | | | | | | | | 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").
* fix sum moar typos [text files]Gravatar Pieter Praet2011-06-23
| | | | | | | | | 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.
* vim: add delete commandsGravatar Felipe Contreras2011-05-31
| | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: add support for delete in search viewGravatar Felipe Contreras2011-05-31
| | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: add support to mark as read in search viewGravatar Felipe Contreras2011-05-31
| | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: add support to mark as read in show viewGravatar Felipe Contreras2011-05-31
| | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: parse 'from' addressGravatar Felipe Contreras2011-05-04
| | | | | | In order to pass it to sendmail. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: use sendmail directlyGravatar Felipe Contreras2011-05-04
| | | | | | | | 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>
* vim: add myself (Felipe Contreras) as contributorGravatar Felipe Contreras2011-05-04
| | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: implement archive in show viewGravatar Felipe Contreras2011-05-04
| | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
* vim: refactor tagging stuffGravatar Felipe Contreras2011-05-04
| | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>