liamcain / AutoFileName

Sublime Text plugin that autocompletes filenames
514 stars 78 forks source link

Autocomplete not working correctly for relative paths #52

Open MattDMo opened 10 years ago

MattDMo commented 10 years ago

I'm using ST3 (various builds) and have seen this behavior on both WinXP and OS X. If I want to enter a full path (with a / at the beginning) each directory is autocompleted properly, just as intended (click for full-size version): full path Note how only one directory appears in the popup box at a time.

However, if I try to enter a relative path, and hit Tab after picking the first directory, the full path (with the choices for the next subdirectory) are listed, including the first directory: relative path

If I then hit Tab again, the first directory is duplicated, resulting in an incorrect path.

Since it's already working correctly in one context, hopefully this won't be too difficult to fix.

Thanks!

liamcain commented 10 years ago

Thanks for the report, I'll look into this.

mask2012 commented 10 years ago

HI, BoundInCode, I‘m really like autofilename you made, I no longer search for files and this saved me a lot of time, and now I have an idea, when we writing class names in css files, is it possible to make class name pop like autofilename? since we'v typied it in html structure, want to hear your answer very much!