Re: notmuch vim patches

Subject: Re: notmuch vim patches

Date: Fri, 17 Oct 2014 18:35:38 +0200

To: Ian Main

Cc: notmuch@notmuchmail.org

From: Franz Fellner


On Thu, 16 Oct 2014 15:30:11 -0700, Ian Main <imain@redhat.com> wrote:
> Franz Fellner wrote:
> > 
> >  
> > > I'm starting to realize that I could default to using 'enter' to both
> > > open URI's and view attachments.  Any other ideas welcome.
> > 
> > - make some of the functions public so users can bind them to keys they
> >   want
> > - introduce show_[prev,next]_unread_msg, probably factor out
> >   "show_scroll_to_msg()" and implement prev/next msg with that?
> 
> You know I was just reading a thread and hit 'a' to archive a message
> within the thread and for some reason it hung for a few seconds.. but it
> made me think we should be able to press 'a' (or whatever archive key)
> and have it archive and move to next unread.  That seems to me to be a
> good behavior with a natural flow.

Yes, sounds good.
Today I thought of a more generic approach:
pass a query that a message should match.
:notmuch-show-next-message tag:unread		# go to the next unread
message in thread
:notmuch-show-next-message from:"Ian Main" 	# got to the next
message in thread sent by "Ian Main"
...
The user then can map keys to custom commands.

Good or too generic?

Furthermore I thought of rearranging the sources:
- Put files in Vundle/*-compatible dirs, would simplify development.
  (Currently I have several files symlinked from notmuch-src into .vim)
- Put the "heavy" ruby code into its own file. Today I got an error I
  could not deal with because line numbers did not match. Also I read
  about the possibility that the ruby interpreter might optimize only
  seperate files. This could lead to better performance.

Franz

Thread: