Skip to content

Allow creating files with extensions#21

Open
mike-lloyd03 wants to merge 5 commits intosamgiles:masterfrom
mike-lloyd03:new_with_extension
Open

Allow creating files with extensions#21
mike-lloyd03 wants to merge 5 commits intosamgiles:masterfrom
mike-lloyd03:new_with_extension

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