zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: _dict_words
@ 2002-02-08  8:20 Clint Adams
  0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2002-02-08  8:20 UTC (permalink / raw)
  To: zsh-workers

Matt Zimmerman says:

 By default, dict -m uses an exact match, with some fuzz for spelling
 correction.  Using a prefix match gives much more natural and useful
 completion behaviour.

Thus,

Index: Completion/Unix/Type/_dict_words
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_dict_words,v
retrieving revision 1.1
diff -u -r1.1 _dict_words
--- Completion/Unix/Type/_dict_words	2 Apr 2001 14:36:38 -0000	1.1
+++ Completion/Unix/Type/_dict_words	8 Feb 2002 08:18:03 -0000
@@ -4,7 +4,7 @@
 
 [[ -z $words[CURRENT] ]] && return 1
 
-dictresults=(${${(f)${"$(dict -m $words[CURRENT])":gs/    
+dictresults=(${${(f)${"$(dict -m -s prefix $words[CURRENT])":gs/    
   / /}}:#[0-9]*matches found})
 
 for j in ${dictresults}


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-02-08  8:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-08  8:20 PATCH: _dict_words Clint Adams

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).