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

Add a graphical representation with the -g option #46

Open
Angelmmiguel opened this issue Feb 3, 2023 · 0 comments
Open

Add a graphical representation with the -g option #46

Angelmmiguel opened this issue Feb 3, 2023 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@Angelmmiguel
Copy link
Owner

The --graph or -g option will enable a graph on the right of the different files. It provides a visual hint about the percentage of the file size in the total amount.

To represent this information in the terminal, I will use the full block character: . This allow me to show a full block to represent the different percentages:

$ fu --top 2 ./
DISK    BYTES   PATH
258M    238M    target  ████████████████████
492K    71K     .git    █

The total will be represented by 20 blocks, so we can properly calculate the number of blocks to show. These blocks will use the proper color too.

In addition to that, this can be enabled by default using the FU_GRAPH_MODE environment variable.

@Angelmmiguel Angelmmiguel added the updates Dependency updates and refactors label Feb 3, 2023
@Angelmmiguel Angelmmiguel self-assigned this Feb 3, 2023
@Angelmmiguel Angelmmiguel added feature New feature or request and removed updates Dependency updates and refactors labels Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant