diff options
author | Canop <cano.petrole@gmail.com> | 2020-01-15 20:38:39 +0100 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2020-01-15 20:38:39 +0100 |
commit | 7a94d47a175294845affb229d8b3878c309b2408 (patch) | |
tree | 7befd86dc941c391021154e113bf8af75f113add /website | |
parent | 834ab7cfa2d5e80d9049e317be66e8ed6f2a7e2a (diff) |
display the "real" size (space on disk) for sparse files (linux
When the size computed as `<number of blocks>*<block size>` is
smaller than the nominal size, the file is considered sparse and
a small 's' is displayed next to the size.
Fix #102
Diffstat (limited to 'website')
-rw-r--r-- | website/docs/documentation/configuration.md | 1 | ||||
-rw-r--r-- | website/docs/documentation/usage.md | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/website/docs/documentation/configuration.md b/website/docs/documentation/configuration.md index 7cd3afc..cff1378 100644 --- a/website/docs/documentation/configuration.md +++ b/website/docs/documentation/configuration.md @@ -241,6 +241,7 @@ For example: exe = "rgb(17, 164, 181) none" link = "Magenta none" pruning = "rgb(89, 73, 101) none Italic" + sparse = "ansi(214) None" perm__ = "gray(5) None" perm_r = "ansi(92) None" perm_w = "ansi(192) None" diff --git a/website/docs/documentation/usage.md b/website/docs/documentation/usage.md index 95ebd9c..ff0ef64 100644 --- a/website/docs/documentation/usage.md +++ b/website/docs/documentation/usage.md @@ -110,6 +110,9 @@ You may notice a scrollbar on this screenshot. The first level of the tree is al Not trimming the root is also possible in normal mode by using the `toggle_trim_root` toggle. +!!! Note + The displayed size on unix is the space the file takes on disk, that is the number of blocks multiplied by the size of a block. If a file is sparse, a little 's' is displayed next to the size. + ## gitignore The gitignore "toggle" has 3 modes: |