Eclipse and Resharper have a nice way of navigating files.
If I have the following folders (or files) in my current directory
MyReallyLongName
MyReallyLongAndFunName
MyReallyLongAndNotReallyFunName
In eclipse I can navigate to them by using only the capitalized letters. Correspondingly in zsh I want to be able to type:
cd MRLAFN(Tab)(Enter)
To get into MyReallyLongAndFunName
in one step
If I want to do that with zsh right now, I have to type My(Tab)Fun(Tab)(Enter)
Answer
This works for me:
zstyle ':completion:*' matcher-list 'r:[^A-Z0-9]||[A-Z0-9]=** r:|=*'
Then I can do this in a test directory:
touch MyReallyLongName MyReallyLongAndFunName MyReallyLongAndNotReallyFunName
ls MRLANRFN
ls MyReallyLongAndNotReallyFunName
I cobbled it together from tips in the Zshell User's Guide.
Comments
Post a Comment