zsh-users
 help / color / mirror / code / Atom feed
* disable substring match on command name
@ 2014-03-02 17:08 Amm
  2014-03-02 20:18 ` Bart Schaefer
  0 siblings, 1 reply; 20+ messages in thread
From: Amm @ 2014-03-02 17:08 UTC (permalink / raw)
  To: zsh-users

Hello,

I have following line in .zsh (via zsh-newuser-install)
zstyle ':completion:*' matcher-list '' 'r:|[._-]=** r:|=**' 'l:|=* r:|=*'


This does substring match on command and filenames.

i.e. if there is command in system say /usr/bin/foobar and I type

$> oob<TAB>

it changes to foobar.

This
 can cause accidental running of some different command if there is 
spelling mistake. (Especially when you are in a hurry). As with spelling
 mistake there is high chance of matching a random command.


What I would like is substring match to work only on file and directory names. (i.e. arguments to command)

I do not want substring match on command.

Please
 suggest how to do it? I searched on Google but could not find anything.
 (Either I dont know right keyword to search or not many want this 
feature)

Amm.



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

end of thread, other threads:[~2014-03-09  6:15 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-02 17:08 disable substring match on command name Amm
2014-03-02 20:18 ` Bart Schaefer
2014-03-03  7:13   ` Amm
2014-03-03 16:48     ` Bart Schaefer
2014-03-04  3:45       ` Amm
2014-03-04  5:30         ` Bart Schaefer
2014-03-03 17:25   ` Oliver Kiddle
2014-03-04  8:34     ` Amm
2014-03-04 17:13       ` Bart Schaefer
2014-03-04 18:04         ` how to truncate an array Ray Andrews
2014-03-04 18:44           ` Bart Schaefer
2014-03-04 20:02             ` Ray Andrews
2014-03-05  3:05               ` Bart Schaefer
2014-03-05  5:09                 ` Ray Andrews
2014-03-05 11:02                   `  J. Darel Henman 
2014-03-05 15:34                     ` Ray Andrews
2014-03-05 16:02                   ` Bart Schaefer
2014-03-05 16:48                     ` Ray Andrews
2014-03-09  5:37     ` disable substring match on command name Bart Schaefer
2014-03-09  6:14       ` Bart Schaefer

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