milkey-mouse / edit

Cross-platform Rust library for invoking & waiting for the system text editor
Creative Commons Zero v1.0 Universal
43 stars 8 forks source link

add support for user defined tempfiles based on tempfile::Builder #2

Closed Gottox closed 4 years ago

Gottox commented 4 years ago

addresses #1.

Still to do:

milkey-mouse commented 4 years ago

Looks good. I want to figure out a good way to test edit. I can't use cargo tests because $EDITOR normally requires user interaction. Maybe I could set $EDITOR to 'sed s/hello/hi/' and see if a string changes from hello world to hi world or something, but that seems a little fragile.

I suppose I'll merge this without tests for now.