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

Allow creating files with extensions #21

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

mike-lloyd03
Copy link

@mike-lloyd03 mike-lloyd03 commented Jan 4, 2023

This adds support for creating files with predefined extensions. This allows temporary files to be created for opening in text editors that recognize filetypes (e.g. vim or neovim). See #13.

Four new public functions are added:

  • new_file_with_extension
  • new_file_with_extension_in
  • new_path_with_extension
  • new_path_with_extension_in

I've also tweaked the create_path* functions to allow for this functionality and added tests.

@samgiles samgiles self-requested a review January 23, 2023 12:10
@mike-lloyd03
Copy link
Author

@samgiles Any chance you could take a look at this?

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

Successfully merging this pull request may close these issues.

1 participant