9
1
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)
add it to your ~/.zshrc – Cody – 2017-07-07T16:55:17.727
This doesn't quite work as expected, with
AbcAde AdFg HlAkAd
,ls AA<TAB>
completes toAd
, while I'd expect AbcAde. – arekolek – 2017-10-11T08:57:59.617@arekolek "Ad" is a partial completion. If you hit TAB again (depending on your zsh configuration) you will see all the files that match. It should include all three files. Then you can choose one with the menu selection or by typing some more of the filename to guide the completer. – phord – 2017-10-11T23:55:41.120
@arekolek Sorry - I read that wrong. I'm not sure how you got to Ad from there. I thought it was a partial-ambiguous match, but it's hard to tell from your example. Does a 2nd TAB produce any more results? – phord – 2017-10-12T00:05:38.750
Can you please describe where I have to place this extension (file, folder)? You might also be interested in adding it to the zsh-completions project.
– JJD – 2014-06-12T15:46:34.957