summary refs log tree commit diff stats
path: root/src/ed.rs
Commit message (Collapse)AuthorAgeFilesLines
* removed panics and refactored error handlingBen Morrison2020-05-261-12/+9
| | | | | | | | Using a helper function to handle fatal errors error::helper() Displays the simplified message if an error condition occurs. Displays both the simplified and the raw error message if -v verbose logging is enabled.
* hiding some log messages behind -v flagBen Morrison2020-05-261-1/+5
|
* moved check for val of $EDITOR into ed::call()Ben Morrison2020-05-261-19/+19
| | | | | Also removed some allocations from call() in the form of unnecessary string clones.
* logging changes:Ben Morrison2020-05-261-1/+0
| | | | | | | | | | Rather than using a new logfile for each invocation, a single logfile called `/tmp/clinte_$USER.log` will be used, with later invocations appending to the previous messages. Also removed some unnecessary `use` statements relating to the `log` crate and its macros. Leaving the macro calls namespaced to `log::` makes it clearer what the behavior is.
* using rfc3339 for temp file nameBen Morrison2019-09-041-1/+1
|
* removing temp fileBen Morrison2019-09-041-1/+3
|
* now opens $EDITOR to write post bodyBen Morrison2019-09-041-0/+51