badmotorfinger / z

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

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

Closed clor09 closed 1 year ago

clor09 commented 1 year ago

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

badmotorfinger commented 1 year 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.