summaryrefslogtreecommitdiffstats
path: root/src/interactive
AgeCommit message (Collapse)Author
2020-02-22Rename 'count-links' to more descriptive 'count-hard-links'Sebastian Thiel
2020-02-22Add hardlink tracking, and an option to disable itThomas Hurst
2020-02-22Add support for real/apparent sizeThomas Hurst
2020-02-01Update tui to 0.8Sebastian Thiel
2019-11-06Update all dependencies to latest versionSebastian Thiel
2019-10-23Make sure borders are drawn more priminently on focusSebastian Thiel
While still being distinguishable on light backgrounds.
2019-07-26Don't follow symlinks when calculating size interactivelyVinzent Steinberg
This should provide more accurate results. Unfortunately, this cannot be easily fixed for the non-interactive part of the app, because it uses `jwalk` which does not expose any options to deal with symlinks.
2019-07-26Don't follow symlinks when deleting files recursivelyVinzent Steinberg
The fix in 560a76d43fa44c4ebf9bdc51087647bb800bbe68 did not work, because it checked the metadata of the file the symlink was pointing to, instead of the metadata of the symlink. Effectively, this resulted in symlinks never being detected. Also see https://doc.rust-lang.org/std/fs/struct.FileType.html#method.is_symlink. Fixes #24.
2019-07-25A single decimal slot for percentages; Fixes #26Sebastian Thiel
On top of that, I think less information can be more.
2019-07-25Run rustfmt; use debug_assert; rename functionSebastian Thiel
2019-07-24Use same colors in mark pane as in entries paneVinzent Steinberg
This required passing the information whether a path is a directory accordingly.
2019-07-24Fix color scheme for light terminalsVinzent Steinberg
This is done by making sure that we never have a background that is black or white combined with a foreground that uses the terminal's default and vice versa. Because we cannot access the default terminal colors, we have to rely on inverted colors and bold text for highlighting. Also, the mark pane was improved to be more consistent with the entries pane. Ideally, we would use the same color as in the entries pane, but this is currently not possible, because the mark pane does not know whether a path is a directory or not. Fixes #13.
2019-07-21Show broken symlinks on the first level of iterationSebastian Thiel
2019-07-21Handle broken symlinks, they can now be deletedSebastian Thiel
These are tough, as metadata on them will fail, as it tries to follow the symlink. It's odd, as we can still check if this was a symlink in case it could be followed, but we can't check that in case it could not be followed. In a way, the `metadata()` call should rather amended with a sybling method like `nmetadata()` to have a version that doesn't follow symlinks. Anyway... .
2019-07-14Allow for pageup/down to work in selector pane (interactive mode)Sebastian Thiel
Fixes #21
2019-07-14Do not follow symbolic links when iterating directories!Sebastian Thiel
Fixes #24
2019-06-16performance improvementsv2.1.2Sebastian Thiel
2019-06-16Better progress display when deleting multiple itemsSebastian Thiel
2019-06-16Auto-restore previously selected entries; quality of life!Sebastian Thiel
2019-06-16Add 'h' and 'l' as alternative keybindingsSebastian Thiel
2019-06-16Add a missing "n" to the headerKristofer Rye
Signed-off-by: Kristofer Rye <kristofer.rye@gmail.com>
2019-06-15Handle symlinks in a rather brutal way.Sebastian Thiel
2019-06-15pane is now displayed during deletion; keeps last item selectedSebastian Thiel
2019-06-15This might be the first working version of deletionSebastian Thiel
2019-06-15Update num entries and bytes totalSebastian Thiel
2019-06-15better separation of concerns when iterating marked itemsSebastian Thiel
also: fix consumption of mark-pane - it's now not always consuming it.
2019-06-15First half-baked version of deletion within traversal treeSebastian Thiel
No size handling for now
2019-06-15refactorSebastian Thiel
2019-06-15refactorSebastian Thiel
2019-06-15First rough version of the required pieces in MarkPaneSebastian Thiel
2019-06-14first sketch of the delete-draw-loopSebastian Thiel
2019-06-14Xi'an/China: first test to fully verify deletionSebastian Thiel
2019-06-08Guangzhou/China: Move parts of the tests into their own filesSebastian Thiel
2019-06-08Somewhere over China: preparation for splitting tests into modulesSebastian Thiel
2019-06-08Somewhere over China: refactor deletion - now with error handlingSebastian Thiel
2019-06-08Somewhere over China: Let's not be quite so ignorant about errors during ↵Sebastian Thiel
deletion
2019-06-08Dehli/India: recursive deletion - tests can beginSebastian Thiel
2019-06-08Dehli/India: simple recursive copy - deletion would like depth-first though ;)Sebastian Thiel
2019-06-08Dehli/India: Basic for test with writable directorySebastian Thiel
Would have loved to use a crate with basic utilities, but there is no internet here :(
2019-06-08Dehli/India: Make marker selection feel rightSebastian Thiel
2019-06-08Pune/India: Nicer colors for warn window in selectionSebastian Thiel
2019-06-08Pune/India: Warning window follows user selectionSebastian Thiel
2019-06-08Pune/India: Fix handling of deleting the first index in the mark listSebastian Thiel
2019-06-08Pune/India: more prominent selection in mark paneSebastian Thiel
2019-06-08Pune/India: Rustic way of handling the mark panes disappearanceSebastian Thiel
Interesting: before that fix, the GUI was in an invalid state, as the mark pane disappeared without setting the focus back to the main window. Thanks to everything being encoded in the typesystem and no assumptions made, the program wouldn't crash when buttons are pressed, which would otherwise be attempted to dispatch to the now gone mark pane. Instead one could press 'q' or tab, as fortunately, the pane handling is always done before any of the panes get a chance.
2019-06-08Pune/India: don't show warning if nothing is marked anymoreSebastian Thiel
this can happen if the user removes all entries. The pane stays open in this case, which is a little inconsistent, but not worth fixing as it's certainly not the common case. If it should be fixed, the 'key()' function should become consuming to possible delete the pane.
2019-06-08Pune/India: Actually hook up spacebar in mark paneSebastian Thiel
2019-06-08Pune/India: Make help window pretty againSebastian Thiel
2019-06-08Pune/India: Better handling of what is selected after removing a marked entrySebastian Thiel
2019-06-08Pune/India: Don't try to go down as marked items are removedSebastian Thiel