Commit graph

53 commits

Author SHA1 Message Date
Lilian Jónsdóttir 03c09e1da6 version bump
- respond to terminal resize events
- update packaging script
2024-07-31 09:51:05 -07:00
Lilian Jónsdóttir 40521eb646 handle terminal resize event 2024-07-31 00:53:02 -07:00
Lilian Jónsdóttir 98a5044662 make linter happier 2024-07-31 00:13:48 -07:00
Lilian Jónsdóttir 0d952302d6 add selectall back
because I'm dumb
2024-07-30 19:42:59 -07:00
Lilian Jónsdóttir 8d7db7cfa7 improve command help text 2024-07-30 14:31:45 -07:00
Lilian Jónsdóttir 437101b947 don't die on error trashing one file
try trashing all the rest instead
2024-07-30 13:53:50 -07:00
Lilian Jónsdóttir c33afe615c add description to cli help 2024-07-30 13:50:21 -07:00
Lilian Jónsdóttir 11b22887f4 remove preselection of items
just hit 'a' if you want to select all
2024-07-30 13:12:00 -07:00
Lilian Jónsdóttir 0fd14c1949 oops I used the wrong print 2024-07-30 13:03:58 -07:00
Lilian Jónsdóttir 9b87c02744 make linters happy
fix typos, less short and more idomatic variable names, package comments, etc.
2024-07-30 11:43:54 -07:00
Lilian Jónsdóttir 1ac1f1c01f give variables names that are less bad 2024-07-28 19:02:11 -07:00
Lilian Jónsdóttir d2abc90638 don't add files in cwd if workdir is specified
this might be a bad and ugly way of doing it but w/e
2024-07-28 19:00:19 -07:00
Lilian Jónsdóttir ea12273da7 log error if unknown log level is passed 2024-07-28 18:29:55 -07:00
Lilian Jónsdóttir c80cf605a8 rename package tables to interactive 2024-07-28 18:06:41 -07:00
Lilian Jónsdóttir 7fade0ce4c move some functions out of main into packages
- confirm functions into files package
- newpath prompter into promt package
2024-07-28 18:04:12 -07:00
Lilian Jónsdóttir 095f59babb move filemode parsing to its own package
why doesn't the std lib have this???
2024-07-28 18:04:12 -07:00
Lilian Jónsdóttir 4b4604d76e oops I forgot this 2024-07-16 11:20:49 -07:00
Lilian Jónsdóttir 2d0d5bad1e add flag to clean/restore all with confirmation
also swap case on date filter flags
2024-07-16 11:15:40 -07:00
Lilian Jónsdóttir 5c02d96dc2 cleanup 2024-07-16 11:12:03 -07:00
Lilian Jónsdóttir e7e7b79e99 improve trashed message 2024-07-15 21:46:28 -07:00
Lilian Jónsdóttir 940a2fc14f add flag to filter by file mode 2024-07-15 21:05:21 -07:00
Lilian Jónsdóttir 1a9e64d473 add flag to list and quit
maybe someday it'll do it automatically when the window is bigger than the table
2024-07-15 15:41:49 -07:00
Lilian Jónsdóttir 0e147e283b sorting preserves selection state 2024-07-15 15:32:33 -07:00
Lilian Jónsdóttir 6af87e4d9d add keybind to sort table
lots of refactoring to do so
files on disk, and files in trash interface'd so table is agnostic
model keeps track of the files now, to facilitate sorting, and updates its own rows accordingly
2024-07-03 15:09:05 -07:00
Lilian Jónsdóttir dff6c62e56 revert filter.showhidden to filter.ignorehidden
because blank filter should show all files
2024-07-03 10:17:08 -07:00
Lilian Jónsdóttir d3707df3d0 interactive mode always shows hidden too 2024-06-30 20:03:14 -07:00
Lilian Jónsdóttir a5654af0ff add min and max size filters
parsed by humanize
2024-06-30 18:39:23 -07:00
Lilian Jónsdóttir 0113c56a5e move hidden flag to trash command only
list, clean, and restore all always show hidden files
2024-06-30 17:48:12 -07:00
Lilian Jónsdóttir 50a7d5aa56 fix list message when ogdir isn't empty 2024-06-30 16:56:13 -07:00
Lilian Jónsdóttir b26ac28b7d reverse hidden flag; ignore hidden files by default 2024-06-30 15:59:14 -07:00
Lilian Jónsdóttir 120af1476c capitalise folder/directory only short flags
may want --force or something in the future
2024-06-30 15:50:27 -07:00
Lilian Jónsdóttir 99a3bed240 interactive mode shows same message as list 2024-06-30 15:43:21 -07:00
Lilian Jónsdóttir 37a63a5a85 trash files without showing table when run with no command
trash command still shows table
2024-06-30 15:04:28 -07:00
Lilian Jónsdóttir 92a74b0283 select all if filenames are used when trashing 2024-06-28 11:30:29 -07:00
Lilian Jónsdóttir a6d0ab5c69 move promts to new package 2024-06-28 11:26:30 -07:00
Lilian Jónsdóttir f9232a095b some consistency would be nice 2024-06-24 21:54:46 -07:00
Lilian Jónsdóttir 379428509c trash command: if args are existing files, don't find files based on filter, just trash args 2024-06-21 21:52:59 -07:00
Lilian Jónsdóttir 6949c8ab4e make sure trash directories exist 2024-06-20 11:38:00 -07:00
Lilian Jónsdóttir 7b4751c1ae always confirm once when permanently removing from trash
otherwise, askconfirm is respected
when askconfirm is true, trash cleaning requires two confirms
2024-06-20 11:37:48 -07:00
Lilian Jónsdóttir 285969a269 enable cli's bash completion
still haven't gotten it to work but I guess I'll try again
2024-06-20 09:30:15 -07:00
Lilian Jónsdóttir 4c133f0d0f enable short option merging 2024-06-19 22:44:07 -07:00
Lilian Jónsdóttir 966643fd2e replace workdir with . in tables 2024-06-19 22:21:35 -07:00
Lilian Jónsdóttir f7605f6eab actually only for flags 2024-06-19 21:59:04 -07:00
Lilian Jónsdóttir d671daa2f1 sentence case for usage 2024-06-19 21:54:50 -07:00
Lilian Jónsdóttir 647a16dacb add flag for confirmation
only confirm if flag is passed
2024-06-19 21:51:56 -07:00
Lilian Jónsdóttir f78bec0a27 add filters for file/dir only and ignoring hidden 2024-06-19 20:23:05 -07:00
Lilian Jónsdóttir 2f56ecf40b add interactive mode
when run with no args, interactive mode is launched
files in trash are listed, select files, and use r/c to restore/clean them
2024-06-19 19:19:07 -07:00
Lilian Jónsdóttir 00cee25075 add interactive tables for all commands 2024-06-19 19:19:07 -07:00
Lilian Jónsdóttir c72b82f542 whoops 2024-06-19 19:19:07 -07:00
Lilian Jónsdóttir 4d929160d1 add original-path flag for list/restore/clean files in trash 2024-06-19 19:19:07 -07:00