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

Editor prompt type enhancement - Allow specifying temp file extension to get syntax highlighting #914

Closed
akaleeroy opened this issue Apr 26, 2020 · 1 comment

Comments

@akaleeroy
Copy link

akaleeroy commented Apr 26, 2020

If the temp files had an extension editors could immediately provide syntax highlighting, linting etc.

node-external-editor config provides

postfix (string) Optional A postfix for the file name. Useful if you want to provide an extension.

passed on from the tmp package.

Maybe typenamemessage [, extension, defaultfiltervalidate].
Or fully typenamemessage [, tmpConfig, defaultfiltervalidate] ?

@SBoudrias
Copy link
Owner

Good idea! If you're willing to send a PR, I'll help to review, merge and release.

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