Commit graph

88 commits

Author SHA1 Message Date
Lilian Jónsdóttir 75370f719a make filter.Match a bit easier to read 2024-06-30 18:17:42 -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 94864ff344 don't trash files on different filesystems, and say it when it happens 2024-06-30 15:43:21 -07:00
Lilian Jónsdóttir a8978790eb these realistically shouldn't error anyway? and if they do, bye 2024-06-30 15:03:43 -07:00
Lilian Jónsdóttir ba20b23767 show only selected rows when confirming 2024-06-29 19:58:20 -07:00
Lilian Jónsdóttir d4d061b31e what even is consistency 2024-06-29 19:54:15 -07:00
Lilian Jónsdóttir 281c32c2a0 prompt for new filename on restore if existing 2024-06-28 11:27:08 -07:00
Lilian Jónsdóttir a6d0ab5c69 move promts to new package 2024-06-28 11:26:30 -07:00
Lilian Jónsdóttir a3ff94ec8e play nice with other implementations that replace " " with "%20" 2024-06-28 10:45:44 -07:00
Lilian Jónsdóttir f9232a095b some consistency would be nice 2024-06-24 21:54:46 -07:00
Lilian Jónsdóttir 88117de11a c/r keys only work in interactive mode 2024-06-24 21:54:14 -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 7fdb8052c4 generate random names until one fits 2024-06-20 23:06:30 -07:00
Lilian Jónsdóttir 5c4ce9a732 shorten up table help a bit 2024-06-20 23:06:30 -07:00
Lilian Jónsdóttir 36548bfdb3 small step to ensure filename collision doesn't happen 2024-06-20 11:40:28 -07:00
Lilian Jónsdóttir c9a2f3b3d7 add newline to end of trashinfo 2024-06-20 09:18:30 -07:00
Lilian Jónsdóttir bc8eadc65a weird spacing 2024-06-19 22:43:35 -07:00
Lilian Jónsdóttir 966643fd2e replace workdir with . in tables 2024-06-19 22:21:35 -07:00
Lilian Jónsdóttir 6caf3a8bc7 improve table help display 2024-06-19 21:36:13 -07:00
Lilian Jónsdóttir c509d8fa1f dramatically speed up inverting selection on huge amounts of files
was okay on 10k-40k files, but 800k took 3 minutes
now 800k files is barely perceptibly longer than instantly
2024-06-19 21:17:55 -07:00
Lilian Jónsdóttir d79f0109fc make walk_dir ignore all hidden subdirectories if ignorehidden is true 2024-06-19 20:25:16 -07:00
Lilian Jónsdóttir 0b038f8663 make walk_dir not return self 2024-06-19 20:25:16 -07:00
Lilian Jónsdóttir 85d7d944b4 add total files to table header 2024-06-19 20:23:23 -07:00
Lilian Jónsdóttir 7b61227158 dramatically speed up selecting large amount of files 2024-06-19 20:23:05 -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 5467d7a549 make filter clean input filenames 2024-06-19 19:19:07 -07:00
Lilian Jónsdóttir 75b6c1152a make unexpand not replace $PWD if $PWD == $HOME 2024-06-19 19:19:07 -07:00
Lilian Jónsdóttir 00b5808b1a add keybinds for selection: all, none, invert 2024-06-19 19:19:07 -07:00
Lilian Jónsdóttir 5942eee85d replace $PWD in unexpand 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 09161611d0 don't show size if is folder 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
Lilian Jónsdóttir dddc6f6d33 some cleanup and better logging 2024-06-19 19:19:07 -07:00
Lilian Jónsdóttir 2e82cd2388 trash files instead of containing dir
oops
2024-06-19 19:19:07 -07:00
Lilian Jónsdóttir 3e3b97b2c1 clean trashed directories correctly 2024-06-19 19:19:06 -07:00
Lilian Jónsdóttir 6794b3a9b2 add reverse glob and regex filters 2024-06-19 19:19:06 -07:00
Lilian Jónsdóttir cc1523034b initial commit, it does the thing 2024-06-19 19:19:06 -07:00