-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display total size of current directory #229
Labels
enhancement
New feature or request
Comments
@kamiyaa What do you think of adding this by calulating the actual size of the directory contents instead of counting entries in We don't have to completely remove count, there could be an option to toggle between count and size. |
Is this recursive? |
No, it only calculates a single depth and updates lazily as you navigate. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would like to somehow display the total size of a directory's content (like joshuto does with files).
Out of curiousity, is there a reason this isn't implemented directly into joshuto already? The same feature exists for files. The argument against it is probably the performance overhead (I imagine it would be terribly slow for deeply nested directories). Maybe this could be added as an option that can be toggled on or off with a keybinding (I could look into it). You're in a parent directory of directories you want to know the size of, toggle the option, see the size, and toggle back off when you want performance again.
If you don't want this implemented directly into joshuto: The command
du -sh "$DIRECTORY"
would easliy let me do that for a single directory. But is there a way to manually (through a keybinding) call this command on a line in joshuto and somehow display the output somewhere in joshuto?The text was updated successfully, but these errors were encountered: