diff options
author | DLFW <daniel@llin.info> | 2021-06-20 01:14:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-19 19:14:10 -0400 |
commit | e6359a599e804031189eb9bc067c4eff9b01a1a8 (patch) | |
tree | f94102b28145f91db5b0bded5e38869157c1946f /Cargo.lock | |
parent | 362a507ad60ee479fb68a48fc7daf4a49652f1bf (diff) |
Show symlinked files and dirs correctly (#72)
* Treat symlinks as normal files and dirs
* Dirs are recognized as dirs no matter is they are a symlink
(correct devicon)
* Permission flags shown in the footer are the permissions of the target
in case a symlink is selected
* Size of a symlinked file is the size of the target
* File display to be fixed: symlink arrow now just overrides the file
size, but both need to be shown one after the other
* Correctly show symlink arrow and file size next
This commit includes quite some refactoring. The shortening of the
left and right part of an entry in a dir list and the shortening of the
file name are separated into functions which don't directly write to the
buffer but just return strings. That way, they get testable and further
enhancements like different line modes should be easier to implement.
* fix review findings
* better file name truncation
File names are only truncated at grapheme border, while the width is
calculated on the actual nuber of terminal cells.
* more adequate test organization
* more code structure
Diffstat (limited to 'Cargo.lock')
-rw-r--r-- | Cargo.lock | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -536,6 +536,7 @@ dependencies = [ "toml", "trash", "tui", + "unicode-segmentation", "unicode-width", "users", "whoami", |