Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

omit extension? #53

Open
ksloan opened this issue Aug 21, 2018 · 1 comment
Open

omit extension? #53

ksloan opened this issue Aug 21, 2018 · 1 comment
Labels

Comments

@ksloan
Copy link

ksloan commented Aug 21, 2018

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

Thanks!

@sagold sagold added the Question label Nov 2, 2018
@sagold
Copy link
Owner

sagold commented Nov 2, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants