unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [RFC] Enhancements to address completion
@ 2011-03-14  6:29 servilio
  2011-03-14  9:26 ` Kristoffer Ström
  0 siblings, 1 reply; 6+ messages in thread
From: servilio @ 2011-03-14  6:29 UTC (permalink / raw)
  To: notmuch

I have been working in some enhancements to the emacs UI address
completion, and this weekend I was able to find a way to finish the
implementation to an acceptable (to me) state.

The gist of it is allowing the completion in Emacs to match against
any part of the addresses returned by the notmuch-addrlookup command.
I could not find a way to have completing-read behave that way, the
strategy of matching anchored to the beginning of strings is
in-grained in its design for what I've seen.

The current implementation uses Ido, included with Emacs at least in
version 23, and is available at:

git://git.latertulia.org/servilio/notmuch.git

In the branch complete-name-and-address-v2. There is a web interface
if you prefer to see the changes, just use "http" as the protocol in
your web browser.

The first few changes in the branch are fixes and small enhancements I
found while working on this, and I have sent them as separate patches
for acceptance as they are independent of this work. All of this has
been in use (in the form of the branch without "-v2") for almost a
year. I started a message in August but somehow successfully forgot
completely about it.

Regards,

Servilio

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [RFC] Enhancements to address completion
  2011-03-14  6:29 [RFC] Enhancements to address completion servilio
@ 2011-03-14  9:26 ` Kristoffer Ström
  2011-03-14 13:55   ` servilio
  2011-03-14 21:05   ` Xavier Maillard
  0 siblings, 2 replies; 6+ messages in thread
From: Kristoffer Ström @ 2011-03-14  9:26 UTC (permalink / raw)
  To: servilio, notmuch

On Mon, 14 Mar 2011 02:29:14 -0400, servilio <servilio@gmail.com> wrote:
> I have been working in some enhancements to the emacs UI address
> completion, and this weekend I was able to find a way to finish the
> implementation to an acceptable (to me) state.
> 
> The gist of it is allowing the completion in Emacs to match against
> any part of the addresses returned by the notmuch-addrlookup command.
> I could not find a way to have completing-read behave that way, the
> strategy of matching anchored to the beginning of strings is
> in-grained in its design for what I've seen.
> 
> The current implementation uses Ido, included with Emacs at least in
> version 23, and is available at:
> 
> git://git.latertulia.org/servilio/notmuch.git
> 
> In the branch complete-name-and-address-v2. There is a web interface
> if you prefer to see the changes, just use "http" as the protocol in
> your web browser.
> 
> The first few changes in the branch are fixes and small enhancements I
> found while working on this, and I have sent them as separate patches
> for acceptance as they are independent of this work. All of this has
> been in use (in the form of the branch without "-v2") for almost a
> year. I started a message in August but somehow successfully forgot
> completely about it.
> 
> Regards,
> 
> Servilio

Have you looked at 'ido-completing-read that comes with ido-mode?
I use it for completing through a modified version of eudc-select.

It allows for fuzzy matching on any part of the name.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [RFC] Enhancements to address completion
  2011-03-14  9:26 ` Kristoffer Ström
@ 2011-03-14 13:55   ` servilio
  2011-03-14 21:05   ` Xavier Maillard
  1 sibling, 0 replies; 6+ messages in thread
From: servilio @ 2011-03-14 13:55 UTC (permalink / raw)
  To: Kristoffer Ström; +Cc: notmuch

2011/3/14 Kristoffer Ström <kristoffer@rymdkoloni.se>:
> Have you looked at 'ido-completing-read that comes with ido-mode?
[...]
> It allows for fuzzy matching on any part of the name.

Yes, that's what I use, yes with flex matching.

Regards,

Servilio

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [RFC] Enhancements to address completion
  2011-03-14  9:26 ` Kristoffer Ström
  2011-03-14 13:55   ` servilio
@ 2011-03-14 21:05   ` Xavier Maillard
  2011-03-14 21:06     ` Kristoffer Ström
  1 sibling, 1 reply; 6+ messages in thread
From: Xavier Maillard @ 2011-03-14 21:05 UTC (permalink / raw)
  To: Kristoffer Ström, servilio, notmuch

Hey Kristoffer

On Mon, 14 Mar 2011 10:26:20 +0100, Kristoffer Ström <kristoffer@rymdkoloni.se> wrote:

> I use it for completing through a modified version of eudc-select.

Would you mind posting this 'modified version of eudc-select' here ?

/Xavier

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [RFC] Enhancements to address completion
  2011-03-14 21:05   ` Xavier Maillard
@ 2011-03-14 21:06     ` Kristoffer Ström
  2011-03-19 17:35       ` Xavier Maillard
  0 siblings, 1 reply; 6+ messages in thread
From: Kristoffer Ström @ 2011-03-14 21:06 UTC (permalink / raw)
  To: Xavier Maillard, servilio, notmuch

On Mon, 14 Mar 2011 22:05:00 +0100, Xavier Maillard <xavier@maillard.im> wrote:
> Hey Kristoffer
> 
> On Mon, 14 Mar 2011 10:26:20 +0100, Kristoffer Ström <kristoffer@rymdkoloni.se> wrote:
> 
> > I use it for completing through a modified version of eudc-select.
> 
> Would you mind posting this 'modified version of eudc-select' here ?
> 
> /Xavier

Not at all fancy, only this:

https://gist.github.com/869875

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [RFC] Enhancements to address completion
  2011-03-14 21:06     ` Kristoffer Ström
@ 2011-03-19 17:35       ` Xavier Maillard
  0 siblings, 0 replies; 6+ messages in thread
From: Xavier Maillard @ 2011-03-19 17:35 UTC (permalink / raw)
  To: Kristoffer Ström, servilio, notmuch


On Mon, 14 Mar 2011 22:06:53 +0100, Kristoffer Ström <kristoffer@rymdkoloni.se> wrote:
> > On Mon, 14 Mar 2011 10:26:20 +0100, Kristoffer Ström <kristoffer@rymdkoloni.se> wrote:
> > 
> > > I use it for completing through a modified version of eudc-select.
> > 
> > Would you mind posting this 'modified version of eudc-select' here ?

> Not at all fancy, only this:
> 
> https://gist.github.com/869875

Lagging a lot lately, just wanted to thank you.

/Xavier

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-03-19 17:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-14  6:29 [RFC] Enhancements to address completion servilio
2011-03-14  9:26 ` Kristoffer Ström
2011-03-14 13:55   ` servilio
2011-03-14 21:05   ` Xavier Maillard
2011-03-14 21:06     ` Kristoffer Ström
2011-03-19 17:35       ` Xavier Maillard

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