Skip to content
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

Feature: option to include free disk space #24

Open
jansegre opened this issue Jun 17, 2020 · 6 comments
Open

Feature: option to include free disk space #24

jansegre opened this issue Jun 17, 2020 · 6 comments

Comments

@jansegre
Copy link

This may only make sense when scanning whole mounts, but it would be nice to have a visual feedback no how much free space there is. It could start as something as simples as a special node/branch that accounts for what df would returnn on the given path. Like diskonaut /foo/bar would include a special colored "free space" with the size of df /foo/bar.

@jansegre jansegre changed the title Option to include free disk space Feature: option to include free disk space Jun 17, 2020
@zicklag
Copy link

zicklag commented Jun 17, 2020

This may only make sense when scanning whole mounts,

I don't think so. I was just specifically using this tool to free up space on a drive that had run out of space, but I know which folders I can afford to delete stuff from, so I'm not working on the whole drive. Knowing when I have freed enough to make me comfortable, without having to leave the tool and df -h would be nice.

It's a great idea.

@imsnif
Copy link
Owner

imsnif commented Jun 18, 2020

I like this idea. I can't imagine how we can have a visual "graphical" representation of free space in anything except scanning a whole drive. After all, the free space if in the drive, not in a particular folder. Otherwise I'd think we would have a "free space" tile in every folder, having it mostly blot out the contents of smaller folders.

How about if we include it as part of the title line? Right now the title line has a "freed" section which shows you how much space you've freed in this session. Maybe we could add something like:
Free space in /: 50G to the title? And then have diskonaut detect which drive the folder you're scanning is on and present it? So that (for example) if I'm scanning /home/aram which is on the /home partition, I'll see Free space in /home: 50GB in the title line?

What do you think?

@zicklag
Copy link

zicklag commented Jun 18, 2020

That sounds perfect.

@jansegre
Copy link
Author

jansegre commented Jun 19, 2020

That's exactly what df does. If the given path is not a drive/filesystem it tries to figure out what drive/filesystem the file is from. From the manual:

df [-b | -h | -H | -k | -m | -g | -P] [-ailn] [-t] [-T type] [file | filesystem ...]
The df utility displays statistics about the amount of free disk space on the specified filesystem or on the filesystem of which file is a part.

@dbramucci
Copy link

dbramucci commented Jun 19, 2020

What do you think of an (optional?) ui element indicating where you would be if you deleted a folder?
Something like

Free space in /: 50G  --------------------------> 39.5G
                          <CTRL-D> Desktop/ 10.4G

That way users could avoid mental math and the rounding error from the displayed numbers would matter less.

@imsnif
Copy link
Owner

imsnif commented Jun 19, 2020

@dbramucci - I really like that idea. The realestate in the title is a little scarce though. Would you like to open a separate issue to discuss the details?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants