-
Notifications
You must be signed in to change notification settings - Fork 173
Ability to see more info about folders or files in default view. #63
Comments
It would be nice to show the size of files, etc. |
There's no method of grabbing file size in pure bash (bash is aware of file size internally, however scripts can't access this information). As for file permissions, scripts can partially grab the information (file permissions can be retrieved for current user only). See this example script ( #!/usr/bin/env bash
#
# Show file perms in pure bash.
file="${1:-${HOME}/dotfiles}"
[[ -r $file ]] && r="r"
[[ -w $file ]] && w="w"
[[ -x $file ]] && x="x"
printf '%s\n' "$file: ${r:--}${w:--}${x--}" Example output: ➜ perms /
/: r-x
➜ perms ~
/home/black: rwx
➜ perms /usr/share/alsa/
/usr/share/alsa/: r-x Would this permissions output suffice? The idea is to show it in the |
Size can be obtained through |
I'm aware. I'm referring to a pure bash method of retrieving the information. Using I have this working locally and the delay both visually and latency-wise is too large to make this feature worthwhile. I've optimized the |
I have file size working in this PR: #95 Try it out and let me know how it works for you. Note: File size conversion from bytes is currently lazy. I'm sill working on full conversion. |
I've changed my mind and this won't be added. |
Right now its only one click away (x) but I am wondering if in the default view we can customize fff to show more info.. like an auto-updating info about file size like in nnn? Or seeing the rights of the file.
The text was updated successfully, but these errors were encountered: