unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Ian Main <imain@redhat.com>
To: Franz Fellner <alpine.art.de@gmail.com>
Cc: notmuch@notmuchmail.org
Subject: Re: notmuch vim patches
Date: Fri, 17 Oct 2014 10:29:38 -0700	[thread overview]
Message-ID: <544152024e296_2a9f1665e947d@ovo.mains.priv.notmuch> (raw)
In-Reply-To: <20141017183538.GI20696@TP_L520.localdomain>

Franz Fellner wrote:
> 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

next unread message in thread, and if there are no more in thread, the next
unread message in the next 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?

I'm not sure how easy it would be to invoke that.. if you think you'd use
it I'd say it's fine but I don't think I would.

> 
> 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.
> 

Yes, that's a good idea too.  I notice that the github version has a
different layout. I think it is vundle compatible?  I know it makes moving
patches from the official repo to the github one challenging.

    Ian

      reply	other threads:[~2014-10-17 17:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-15 19:47 notmuch vim patches Ian Main
2014-10-16 12:41 ` Franz Fellner
2014-10-16 19:22   ` Ian Main
2014-10-16 22:30   ` Ian Main
2014-10-17 16:35     ` Franz Fellner
2014-10-17 17:29       ` Ian Main [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=544152024e296_2a9f1665e947d@ovo.mains.priv.notmuch \
    --to=imain@redhat.com \
    --cc=alpine.art.de@gmail.com \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).