summaryrefslogtreecommitdiffstats
path: root/Cargo.lock
diff options
context:
space:
mode:
authorDLFW <daniel@llin.info>2021-06-20 01:14:10 +0200
committerGitHub <noreply@github.com>2021-06-19 19:14:10 -0400
commite6359a599e804031189eb9bc067c4eff9b01a1a8 (patch)
treef94102b28145f91db5b0bded5e38869157c1946f /Cargo.lock
parent362a507ad60ee479fb68a48fc7daf4a49652f1bf (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.lock1
1 files changed, 1 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 39b3a2a..347830f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -536,6 +536,7 @@ dependencies = [
"toml",
"trash",
"tui",
+ "unicode-segmentation",
"unicode-width",
"users",
"whoami",