badmotorfinger / z

Save time typing out directory paths in PowerShell by jumping around instead.
The Unlicense
434 stars 33 forks source link

match path by full path name & fix path seperator on windows for bett… #57

Closed clor09 closed 2 years ago

clor09 commented 2 years ago

match by full path instead of just file name & on windows fix path sep for better fit

badmotorfinger commented 2 years ago

The problem with using .FullName is that it matches on the full path. If for example you had a path such as \windows\foo\stuff\bar\foo and another path such as `\windows\stuff\bar\foo' and you wanted to match on the second example, then there's a possibility it could get confused with the first example. This is why in the data file there's a weighting added to each path so that the correct path is chosen based on the directory name.

Thanks for your effort though.