acheronfail / repgrep

An interactive replacer for ripgrep that makes it easy to find and replace across files on the command line.
Apache License 2.0
257 stars 4 forks source link

fix: create temp files next to original files #78

Closed acheronfail closed 1 year ago

acheronfail commented 1 year ago

Due to a quirk in the tempfile crate temporary files can't be persisted across filesystems. This change fixes the issue by creating the temporary file next to the original file.

I'm not sure if there's an easy way to create a unit test for this, which isn't the nicest. But hey, it'll do for now.

Fixes #65