FuzzyFilePath icon indicating copy to clipboard operation
FuzzyFilePath copied to clipboard

omit extension?

Open ksloan opened this issue 7 years ago • 1 comments

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

Thanks!

ksloan avatar Aug 21 '18 19:08 ksloan

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

sagold avatar Nov 02 '18 15:11 sagold