Lilian Jónsdóttir
07424ecd36
add support for reading/writing $trashDir/directorysizes
...
- show total trash size in header
2024-08-14 18:53:25 -07:00
Lilian Jónsdóttir
6c3abd8d98
listing prints plainly if in non-interative terminal
2024-08-14 15:48:06 -07:00
Lilian Jónsdóttir
98a5044662
make linter happier
2024-07-31 00:13:48 -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
73a63db198
sort filenames by number
...
but only if filename is just a number
^[0-9]+\.({extension})$
2024-07-28 23:30:20 -07:00
Lilian Jónsdóttir
b16a8101d5
reverse size sorting
...
I don't know why I did that in the first place
2024-07-28 18:04:12 -07:00
Lilian Jónsdóttir
95970274d8
oops I forgot to ignore case in reverse name sort
2024-07-28 18:04:12 -07:00
Lilian Jónsdóttir
0fb1cfa22a
ignore case when sorting by extension
2024-07-28 18:04:12 -07:00
Lilian Jónsdóttir
b3f19bef73
show size of selected files in header
2024-07-28 18:04:12 -07:00
Lilian Jónsdóttir
ead10096d7
actually use the standard library
...
it has the nice side effect of working better too, imagine that
2024-07-21 20:54:11 -07:00
Lilian Jónsdóttir
2515756d1d
case insensitive name sorting
2024-07-16 11:11:12 -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
20f6dc92bc
large performance improvement
...
sorting 400k - 800k files is much faster, and no longer unbearable
2024-07-15 18:48:13 -07:00
Lilian Jónsdóttir
689500c942
add sort by extension
2024-07-15 16:10:04 -07:00
Lilian Jónsdóttir
0e147e283b
sorting preserves selection state
2024-07-15 15:32:33 -07:00
Lilian Jónsdóttir
dc0aab172d
use standard library right
2024-07-15 15:07:39 -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
fbd6bfb507
fix walkdir not respecting reversed hidden flag
2024-06-30 18:57:11 -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
b26ac28b7d
reverse hidden flag; ignore hidden files by default
2024-06-30 15:59: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
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
f78bec0a27
add filters for file/dir only and ignoring hidden
2024-06-19 20:23:05 -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
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
cc1523034b
initial commit, it does the thing
2024-06-19 19:19:06 -07:00