* buffer completion methods in iswitchb and similar packages
@ 2004-09-06 18:07 Mathias Dahl
2004-09-06 19:46 ` Johan Bockgård
0 siblings, 1 reply; 2+ messages in thread
From: Mathias Dahl @ 2004-09-06 18:07 UTC (permalink / raw)
Today I have been implementing a iswitchb-like completion method in a
project of mine (non-emacs related) and after implementing
"prefix-completion" and "substring-completion" I came up with another
version, which looks like this (in some kind of pseudo-code):
match("vx", "view external") => match
match("xv", "view external") => no match
match("xt", "view external") => match
match("xt", "view external") => match
Currently I call this "character-matching" in search for a better
name. Each character in the search is tested against each available
string to search in, and for each hit the user-entered string gets,
the test position is moved forward to where the hit was found (this is
the reason "xv" above does not match).
I found this behavior quite useful in the case where two (or more)
strings that are very similar (for example "view document internally"
and "view document externally") matches the string I enter and when
the piece of the string that differs matches other strings (print
document externally), thus ruling out substring matching (well, maybe
not ruling out, but the match will not be unique).
Now to my question: does this exist in iswitchb or any of the other
completion-enhancements in Emacs? And yes, I know that it is possible
to cycle the matched buffer names in emacs if there were to be more
than one.
/Mathias
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: buffer completion methods in iswitchb and similar packages
2004-09-06 18:07 buffer completion methods in iswitchb and similar packages Mathias Dahl
@ 2004-09-06 19:46 ` Johan Bockgård
0 siblings, 0 replies; 2+ messages in thread
From: Johan Bockgård @ 2004-09-06 19:46 UTC (permalink / raw)
Mathias Dahl <brakjoller@hotmail.com> writes:
> match("vx", "view external") => match
> match("xv", "view external") => no match
> match("xt", "view external") => match
[...]
> Now to my question: does this exist in iswitchb or any of the other
> completion-enhancements in Emacs?
"Flexible matching" in `ido' (the version in Emacs CVS).
--
Johan Bockgård
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-09-06 19:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-06 18:07 buffer completion methods in iswitchb and similar packages Mathias Dahl
2004-09-06 19:46 ` Johan Bockgård
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.