Commit graph

122 commits

Author SHA1 Message Date
Kevin Liu
f987ff53cc Fix not rewinding file before re-reading it 2016-11-08 10:52:12 -08:00
Kevin Liu
34f4348806 Store human-readable deletion time in the record 2016-11-04 13:21:25 -07:00
Kevin Liu
43711e6fa1 Use a different graveyard per user by default
This also obviates the need for umask/permissions juju.
2016-11-04 13:19:07 -07:00
Kevin Liu
208ca3db68 Fix erroneous change to bury 2016-11-04 10:38:30 -07:00
Kevin Liu
98f5008728 Refactor to get rid of all unwraps 2016-11-04 10:23:01 -07:00
Kevin Liu
33299946aa Make prompt_yes more generic 2016-11-04 08:42:22 -07:00
Kevin Liu
132eebd4d9 Fix panic with -u on missing record 2016-11-04 08:42:11 -07:00
Kevin Liu
f949d8d91d Factor out seance to use impl traits 2016-10-31 05:28:25 -07:00
Kevin Liu
81b787b1df Indicate "n" is default when prompted 2016-10-30 11:12:37 -07:00
Kevin Liu
ad2b4ea8aa Clean up redundant muts and references 2016-10-30 11:03:47 -07:00
Kevin Liu
8349842d8a Fix filter logic (!= to ==) 2016-10-30 10:40:03 -07:00
Kevin Liu
e2c005b586 Fix and improve -u behavior with many missing files 2016-10-30 10:33:21 -07:00
Kevin Liu
952d25f794 Note that graveyard is only a default in usage 2016-10-30 10:33:21 -07:00
Kevin Liu
6f6ac66965 Factor out redundant file opens 2016-10-30 10:33:21 -07:00
Kevin Liu
ccdd3d0c00 Return instead of panic on writeln 2016-10-30 10:33:21 -07:00
Kevin Liu
f012693d5e Rename --resurrect to --unbury (and -r to -u) 2016-10-25 16:59:41 -07:00
Kevin Liu
936adf95ee Humanize bytes and show path in big file warning 2016-10-25 03:32:47 -07:00
Kevin Liu
b5cd8615c7 Fix panic on inspecting small files 2016-10-23 19:15:58 -07:00
Kevin Liu
e0d48f5aca Humanize filesize output 2016-10-23 17:42:16 -07:00
Kevin Liu
08e5d9b899 Print a few top-level files when inspecting a dir 2016-10-23 07:27:09 -07:00
Kevin Liu
b6d3c7980d Renamed graves use ~ instead of . as separator 2016-10-23 05:17:13 -07:00
Kevin Liu
037923b177 Use String::from instead of to_string in closures 2016-10-22 19:34:44 -07:00
Kevin Liu
78b26fbeb0 Simplify resurrect a bit 2016-10-22 19:25:12 -07:00
Kevin Liu
52163d50ae Make changes recommended by clippy 2016-10-22 19:17:06 -07:00
Kevin Liu
7c395c3b1e General code quality improvements 2016-10-22 07:08:45 -07:00
Kevin Liu
fafe1905d2 Add warning when copying a big file 2016-10-22 06:58:35 -07:00
Kevin Liu
0fdf35a70a Inspect now shows size for dir and better errors 2016-10-22 06:34:44 -07:00
Kevin Liu
4be1b8685f Fix inspect message 2016-10-22 06:21:09 -07:00
Kevin Liu
af21d1c4ca Don't panic if nothing to clean up 2016-10-22 05:37:22 -07:00
Kevin Liu
6292d01c8e Make -s only print the grave paths 2016-10-22 05:26:23 -07:00
Kevin Liu
7f7daf6479 Fix possible source of critical errors 2016-10-22 00:18:40 -07:00
Kevin Liu
8fa3ba51fe Update usage 2016-10-21 23:58:59 -07:00
Kevin Liu
29bc3c5e43 Big improvements to resurrect, refactoring, code quality 2016-10-21 20:17:22 -07:00
Kevin Liu
def845368b Fix logic in delete_lines_from_record 2016-10-21 02:25:20 -07:00
Kevin Liu
0e373be6de Clean up any partial buries due to permission error 2016-10-21 01:33:16 -07:00
Kevin Liu
4a228e0e59 Factor out fn to delete line from record 2016-10-21 01:27:17 -07:00
Kevin Liu
cfc4ac81ba Resurrect now deletes the respective line 2016-10-21 01:06:07 -07:00
Kevin Liu
8d7782b49d Use RecordItem struct to hold line info 2016-10-21 01:05:48 -07:00
Kevin Liu
24cf57f7dc Prompt to unlink files already in graveyard 2016-10-20 22:22:49 -07:00
Kevin Liu
206ae91c0d Use writeln! macro 2016-10-20 20:58:27 -07:00
Kevin Liu
c2a46c768a Factor out function for parsing a line in record 2016-10-20 19:31:24 -07:00
Kevin Liu
0fe7196323 Print error if --decompose fails 2016-10-20 03:58:31 -07:00
Kevin Liu
b23f228421 Factor out some functions into another file 2016-10-20 03:55:06 -07:00
Kevin Liu
c0012b27cb Add option for -r to take a filename
The intention is to be able to chain with -s like -rs in the future to
-r all files that would be printed by -s.
2016-10-20 03:54:29 -07:00
Kevin Liu
5f809fce78 Simpler way to read from record 2016-10-20 01:42:01 -07:00
Kevin Liu
0cfcb5958d Minor changes 2016-10-20 01:41:42 -07:00
Kevin Liu
77d3d1a707 Assign const to number of lines printed by inspect 2016-10-19 02:33:28 -07:00
Kevin Liu
f3aaa4acde Use ? operator now that it's stable 2016-10-18 22:53:09 -07:00
Kevin Liu
18bd15e493 Fix unwrap on err in seance 2016-10-17 20:23:33 -07:00
Kevin Liu
953c6e0d97 Rename histfile to record 2016-10-17 18:05:03 -07:00