You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
@kamiyaa What do you think of adding this by calulating the actual size of the directory contents instead of counting entries in JoshutoMetadata::_directory_size?
We don't have to completely remove count, there could be an option to toggle between count and size.
Here is a preview of what I was able to put together.
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: