-
Notifications
You must be signed in to change notification settings - Fork 1
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
allow matching by file path #11
Comments
Hmm. My first question would be: what about anonymous buffers? They don't have paths ( |
Anonymous buffer could match only if given formatter didn’t have a path based condition, or if the condition matched an empty string |
Might be useful to get more details about your use case, such as directory structure, files involved, formatters used. We might come up with other solutions too. |
I'm using dprint and prettier for js\ts files and other formatters for other languages. I started using https://numtide.github.io/treefmt to dispatch do different formatters, however it needs a file path to be able to select the formatter to use. So I would need sublime-fmt to provide full path of formatted file when running on save. If formatting a buffer without a path, a dummy file name (with extension) could be provided to let treefmt pick the formatter to use. |
I am working in a monorepo in which different sub-projects use different formatters for the same file types
I would like to enable formatting on save but don't see how I could make formatting conditional on the files path using sublime selectors
could a new setting be added to enable this? Thanks!
The text was updated successfully, but these errors were encountered: