Commit graph

82 commits

Author SHA1 Message Date
Lilian Jónsdóttir 97e51dd2d9 move filter test to its own package 2024-07-15 20:59:46 -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 73da0a88fe update modules 2024-07-15 18:48:13 -07:00
Lilian Jónsdóttir fe31963670 update gitignore 2024-07-15 18:42:49 -07:00
Lilian Jónsdóttir e5345426bc I dunno why I did that 2024-07-15 17:55:51 -07:00
Lilian Jónsdóttir 5769cc3a6e adjust column sizes again 2024-07-15 17:10:57 -07:00
Lilian Jónsdóttir 30b605a230 replace workdir with /
and do it right this time

I hope...
2024-07-15 17:10:38 -07:00
Lilian Jónsdóttir f193d0f5b3 adjust table column widths 2024-07-15 16:33:45 -07:00
Lilian Jónsdóttir 536fc9e925 clean dir input 2024-07-15 16:33:45 -07:00
Lilian Jónsdóttir dfed84eb74 make -H option work right 2024-07-15 16:20:46 -07:00
Lilian Jónsdóttir 689500c942 add sort by extension 2024-07-15 16:10:04 -07:00
Lilian Jónsdóttir 746bff694c restore creates directories if necessary 2024-07-15 15:59:54 -07:00
Lilian Jónsdóttir 26f5f383ce don't replace workdir anymore 2024-07-15 15:59:54 -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 de81cfbfed add by directory status sorting 2024-07-15 15:08:02 -07:00
Lilian Jónsdóttir dc0aab172d use standard library right 2024-07-15 15:07:39 -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 e0ffb8502c sort by name by default 2024-07-03 15:34:23 -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 1dd192cc91 update fish completion 2024-07-03 10:15:58 -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 f859631f4e display workdir in header if used
and truncate in table view
2024-06-30 20:01:36 -07:00
Lilian Jónsdóttir b60469887e add fish shell completion 2024-06-30 19:07: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 75370f719a make filter.Match a bit easier to read 2024-06-30 18:17:42 -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 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 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 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 92a74b0283 select all if filenames are used when trashing 2024-06-28 11:30:29 -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