[PATCH] VIM: Add URI handling

2014-10-20 Thread Tomi Ollila
On Fri, Oct 17 2014, Franz Fellner wrote: > On Wed, 15 Oct 2014 12:33:55 -0700, Ian Main wrote: >> Franz Fellner wrote: >> > Here is a working implementation. >> > Please review carefully as I only can simulate ruby and vimscript >> > knowledge from what I see in notmuch.vim sourcefile and

[PATCH] VIM: Add URI handling

2014-10-20 Thread Tomi Ollila
On Thu, Oct 02 2014, Ian Main wrote: > This patch adds URI handling to the vim client. You can now press > 'u' by default and the client will parse the current line and find > any URIs available. If there are more than one it opens the one > under the cursor or else it opens the only one

[PATCH] VIM: Add URI handling

2014-10-20 Thread Franz Fellner
Tomi Ollila wrote: > On Fri, Oct 17 2014, Franz Fellner wrote: > > > On Wed, 15 Oct 2014 12:33:55 -0700, Ian Main > > wrote: > >> Franz Fellner wrote: > >> > Here is a working implementation. > >> > Please review carefully as I only can simulate ruby and vimscript > >> > knowledge from what I

[PATCH] VIM: Respect exclude_tags specified in .notmuch-config

2014-10-20 Thread Franz Fellner
Exclude mails tagged with any tag specified in notmuch config get search.exclude_tags in folders list and search list. diff --git a/vim/notmuch.vim b/vim/notmuch.vim index 5c86fcd..522a366 100644 --- a/vim/notmuch.vim +++ b/vim/notmuch.vim @@ -647,6 +647,7 @@ ruby << EOF $db_name = nil

[PATCH] VIM: Respect exclude_tags specified in .notmuch-config

2014-10-20 Thread Franz Fellner
Ian Main wrote: > > Thanks Franz! > > So this works well in the main searches by not showing anything I have marked > as 'spam'. However if I force a search for tag:spam and then try to view any > of the messages presented they will not show up because of the way we display > the email.. :-/

[PATCH] test: use LDFLAGS in test/Makefile.local

2014-10-20 Thread Jani Nikula
Apparently the test binaries are built with minimal LDFLAGS, only adding dependency specific LDFLAGS as needed. However because some of the test binaries incorporate notmuch object files, it is necessary to use the same link flags as notmuch. For example user provided CFLAGS/CXXFLAGS/LDFLAGS with

[PATCH] VIM: Respect exclude_tags specified in .notmuch-config

2014-10-20 Thread Ian Main
Franz Fellner wrote: > Ian Main wrote: > > > > Thanks Franz! > > > > So this works well in the main searches by not showing anything I have > > marked > > as 'spam'. However if I force a search for tag:spam and then try to view > > any > > of the messages presented they will not show up

[PATCH v2] VIM: Make patch saving in vim a little better.

2014-10-20 Thread Ian Main
It seems like there was some bitrot on the previous version of this which made it not work correctly. This fixes the bitrot and also updates how it works. - Sometimes [PATCH.*] isn't at the beginning of the message (often on lists I'm on). - It now goes through all the messages in the thread.

[PATCH] VIM: Respect exclude_tags specified in .notmuch-config

2014-10-20 Thread Ian Main
Thanks Franz! So this works well in the main searches by not showing anything I have marked as 'spam'. However if I force a search for tag:spam and then try to view any of the messages presented they will not show up because of the way we display the email.. :-/ I'm not sure what is the best

[PATCH v3] VIM: Improve moving between messages in a thread

2014-10-20 Thread Ian Main
Add a few changes to moving between threads: - It supports 'scrolloff' so that if you have this set it will move the buffer and cursor so the next/prev email starts at the top of the screen. - It adds the ability to use shift-tab to go to the previous msg in the thread. Ian --- Remove

[PATCH v2] VIM: Make an option to save sent mail locally

2014-10-20 Thread Ian Main
Add an option to use 'notmuch insert' to save your sent mail. --- This update changes the 'system' line and adds a sent mailbox option. vim/notmuch.vim | 22 ++ 1 file changed, 22 insertions(+) diff --git a/vim/notmuch.vim b/vim/notmuch.vim index 331e930..b0c6ebd 100644 ---

[PATCH v2] VIM: Use notmuch CLI for config

2014-10-20 Thread Ian Main
David Bremner wrote: > Ian Main writes: > > > 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 > > We're starting to get a few notmuch-vim patches

[PATCH] VIM: Add URI handling

2014-10-20 Thread Ian Main
Franz Fellner wrote: > On Wed, 15 Oct 2014 12:33:55 -0700, Ian Main wrote: > > Franz Fellner wrote: > > > Here is a working implementation. > > > Please review carefully as I only can simulate ruby and vimscript > > > knowledge from what I see in notmuch.vim sourcefile and quick > > > googling. >

[PATCH] test: use LDFLAGS in test/Makefile.local

2014-10-20 Thread Jani Nikula
Apparently the test binaries are built with minimal LDFLAGS, only adding dependency specific LDFLAGS as needed. However because some of the test binaries incorporate notmuch object files, it is necessary to use the same link flags as notmuch. For example user provided CFLAGS/CXXFLAGS/LDFLAGS with

Re: [PATCH] VIM: Add URI handling

2014-10-20 Thread Ian Main
Franz Fellner wrote: On Wed, 15 Oct 2014 12:33:55 -0700, Ian Main im...@stemwinder.org wrote: Franz Fellner wrote: Here is a working implementation. Please review carefully as I only can simulate ruby and vimscript knowledge from what I see in notmuch.vim sourcefile and quick

Re: [PATCH v2] VIM: Use notmuch CLI for config

2014-10-20 Thread Ian Main
David Bremner wrote: Ian Main im...@stemwinder.org writes: 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 We're starting to get a few notmuch-vim

[PATCH v2] VIM: Make an option to save sent mail locally

2014-10-20 Thread Ian Main
Add an option to use 'notmuch insert' to save your sent mail. --- This update changes the 'system' line and adds a sent mailbox option. vim/notmuch.vim | 22 ++ 1 file changed, 22 insertions(+) diff --git a/vim/notmuch.vim b/vim/notmuch.vim index 331e930..b0c6ebd 100644 ---

[PATCH v3] VIM: Improve moving between messages in a thread

2014-10-20 Thread Ian Main
Add a few changes to moving between threads: - It supports 'scrolloff' so that if you have this set it will move the buffer and cursor so the next/prev email starts at the top of the screen. - It adds the ability to use shift-tab to go to the previous msg in the thread. Ian --- Remove

RE: [PATCH] VIM: Respect exclude_tags specified in .notmuch-config

2014-10-20 Thread Ian Main
Thanks Franz! So this works well in the main searches by not showing anything I have marked as 'spam'. However if I force a search for tag:spam and then try to view any of the messages presented they will not show up because of the way we display the email.. :-/ I'm not sure what is the best

Re: [PATCH] VIM: Add URI handling

2014-10-20 Thread Tomi Ollila
On Thu, Oct 02 2014, Ian Main im...@stemwinder.org wrote: This patch adds URI handling to the vim client. You can now press 'u' by default and the client will parse the current line and find any URIs available. If there are more than one it opens the one under the cursor or else it opens

Re: [PATCH] VIM: Add URI handling

2014-10-20 Thread Tomi Ollila
On Fri, Oct 17 2014, Franz Fellner alpine.art...@gmail.com wrote: On Wed, 15 Oct 2014 12:33:55 -0700, Ian Main im...@stemwinder.org wrote: Franz Fellner wrote: Here is a working implementation. Please review carefully as I only can simulate ruby and vimscript knowledge from what I see in

RE: [PATCH] VIM: Respect exclude_tags specified in .notmuch-config

2014-10-20 Thread Franz Fellner
Ian Main wrote: Thanks Franz! So this works well in the main searches by not showing anything I have marked as 'spam'. However if I force a search for tag:spam and then try to view any of the messages presented they will not show up because of the way we display the email.. :-/ Yes,

RE: [PATCH] VIM: Respect exclude_tags specified in .notmuch-config

2014-10-20 Thread Franz Fellner
Exclude mails tagged with any tag specified in notmuch config get search.exclude_tags in folders list and search list. diff --git a/vim/notmuch.vim b/vim/notmuch.vim index 5c86fcd..522a366 100644 --- a/vim/notmuch.vim +++ b/vim/notmuch.vim @@ -647,6 +647,7 @@ ruby EOF $db_name = nil

Re: [PATCH] VIM: Add URI handling

2014-10-20 Thread Franz Fellner
Tomi Ollila wrote: On Fri, Oct 17 2014, Franz Fellner alpine.art...@gmail.com wrote: On Wed, 15 Oct 2014 12:33:55 -0700, Ian Main im...@stemwinder.org wrote: Franz Fellner wrote: Here is a working implementation. Please review carefully as I only can simulate ruby and vimscript

[PATCH v2] VIM: Make patch saving in vim a little better.

2014-10-20 Thread Ian Main
It seems like there was some bitrot on the previous version of this which made it not work correctly. This fixes the bitrot and also updates how it works. - Sometimes [PATCH.*] isn't at the beginning of the message (often on lists I'm on). - It now goes through all the messages in the thread.

RE: [PATCH] VIM: Respect exclude_tags specified in .notmuch-config

2014-10-20 Thread Ian Main
Franz Fellner wrote: Ian Main wrote: Thanks Franz! So this works well in the main searches by not showing anything I have marked as 'spam'. However if I force a search for tag:spam and then try to view any of the messages presented they will not show up because of the way we