Commit graph

24 commits

Author SHA1 Message Date
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 34eef6a228 replace os.Stat with os.Lstat 2024-08-14 15:08:50 -07:00
Lilian Jónsdóttir 50f4dbda8a some clean up 2024-08-14 15:08:50 -07:00
Lilian Jónsdóttir d8ec25b36d use percent encoding on filenames 2024-08-05 23:09:52 -07:00
Lilian Jónsdóttir d6f066095b unexport and rearrange some functions 2024-08-05 23:06:37 -07:00
Lilian Jónsdóttir 4a10d7794f add support for $topdir Trash directories 2024-08-05 22:40:11 -07:00
Lilian Jónsdóttir cc973694e5 search only "info" folder for trashinfo files
swap filepath.WalkDir for os.ReadDir
I don't really know why I used WalkDir in the first place
2024-08-05 22:02:56 -07:00
Lilian Jónsdóttir 98a5044662 make linter happier 2024-07-31 00:13:48 -07:00
Lilian Jónsdóttir 7c0f78f4d6 more consistent errors 2024-07-30 14:19:42 -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 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 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 b3f19bef73 show size of selected files in header 2024-07-28 18:04:12 -07:00
Lilian Jónsdóttir 8a4b195a72 be less scared of broken symlinks 2024-07-15 22:41:34 -07:00
Lilian Jónsdóttir e7e7b79e99 improve trashed message 2024-07-15 21:46:28 -07:00
Lilian Jónsdóttir 3fb12e3c44 avoid null pointer if a broken symlink is trashed 2024-07-15 21:31:22 -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 77e4f01a49 move some logging around 2024-07-15 20:56:29 -07:00
Lilian Jónsdóttir 15bd040deb make filter Match on info instead of 9001 args 2024-07-15 20:15:20 -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 746bff694c restore creates directories if necessary 2024-07-15 15:59:54 -07:00
Lilian Jónsdóttir 0e147e283b sorting preserves selection state 2024-07-15 15:32:33 -07:00
Lilian Jónsdóttir af2af0c587 filesize of -1 for directories for proper sorting
maybe actually count directory size someday
but then a new column would have to be added
2024-07-15 15:06:53 -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
Renamed from internal/trash/trash.go (Browse further)