sagold / FuzzyFilePath

Autocomplete relative or absolute file paths in Sublime Text project folder
Do What The F*ck You Want To Public License
154 stars 14 forks source link

omit extension? #53

Open ksloan opened 6 years ago

ksloan commented 6 years ago

Is there a way to customize this plugin to omit the file extension?

Thanks!

sagold commented 5 years ago

If you want to emit file-extensions on insert, you can follow this tutorial https://github.com/sagold/FuzzyFilePath/wiki/Tutorial:-Add-support-for-python-packages.

With the option replace_on_insert you can add a list for regex replacements, after your filepath has been selected. For javascript extensions, this looks like

"replace_on_insert": [
    ["\\.js$", ""]
]

The complete array is found within the settings: https://github.com/sagold/FuzzyFilePath/blob/master/FuzzyFilePath.sublime-settings#L58