not matching correctly?
-
anonymous
I noticed that command-t doesn't match some of my tests correctly. Check out these skitches:
command-t: http://img.skitch.com/20100816-fn6iqq8s85512prtruecnuek9i.png
ls output: http://img.skitch.com/20100816-18tj1s515ncf2sbs69kewrp92n.png
the second pic is only showing half of the content of test/unit.
So why is command-t missing so many files?
-
Greg Hurrell
First, you shouldn't bother typing slashes like you do in your
test/unit/example. Typingtestunitwould work just as well. (And in fact, typing fewer characters like justtestor eventuwill probably get you there faster anyway.)Secondly, Command-T looks at the entire path for possible matches, so it's not going to show you only matches from under the
test/unit/directory, but from anywhere in the project root. If you want to scope things just to thetest/unit/directory you can either launch Command-T with an explicit path argument (eg.:CommandT test/unit) or, preferably, get in the habit of using a character or two from each segment of the path. For example, to opentest/unit/audit/patriot_act_audit_testyou might typetestaudpatactor perhapspatactaudtest. Depending on the number of files in your project you may find that you can use considerably less characters too.Note that Command-T is not intended for file browsing (ie. "show me what files are in this directory") but is instead of quickly opening files in projects which you know well, and you know where the files are already and just want to specify them in the shortest manner possible.
Thirdly, which version of Command-T are you using? In version 0.8b the matching algorithm is greatly improved to give more intuitive match ranking, because instead of just assigning a match score to a path based on the first match it finds, it continues searching for possible better matches in each path and ends up using the highest possible score for each path.
Reply
This topic is now closed.