Giter VIP home page Giter VIP logo

Comments (6)

imsnif avatar imsnif commented on May 28, 2024 3

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?

from diskonaut.

imsnif avatar imsnif commented on May 28, 2024 1

@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?

from diskonaut.

zicklag avatar zicklag commented on May 28, 2024

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.

from diskonaut.

zicklag avatar zicklag commented on May 28, 2024

That sounds perfect.

from diskonaut.

jansegre avatar jansegre commented on May 28, 2024

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.

from diskonaut.

dbramucci avatar dbramucci commented on May 28, 2024

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.

from diskonaut.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.