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 REQUEST] - Sort by Size in Current Layer Contents #341

Open
ondrovic opened this issue Mar 8, 2021 · 8 comments
Open

[FEATURE REQUEST] - Sort by Size in Current Layer Contents #341

ondrovic opened this issue Mar 8, 2021 · 8 comments

Comments

@ondrovic
Copy link

ondrovic commented Mar 8, 2021

Would be nice to sort asc / desc based on size in the current layer contents

@whyman
Copy link

whyman commented Jul 7, 2021

Yes, this would be amazing for easily finding the worst offenders!

@dragonfax
Copy link

Definitely would love this. Needed it today.

@iiian
Copy link
Contributor

iiian commented Jan 1, 2023

☝️ Implemented

Unfortunately, it's been almost a year since this codebase has had any merge activity on it, and I suspect it may be essentially "done" at this point. If anybody wants this feature, you can grab it from https://github.com/iiian/dive, until we hear otherwise. I'll add some build instructions to the readme, but it's incredibly simple, I was really excited when the thing just built, first-try, with literally zero fuss.

git clone [email protected]:iiian/dive.git
cd dive
make all
# your output will be in ./dist/dive_<your-target-triple>/dive
# for example, ./dist/dive_linux_amd64/dive

Then just grab it and toss it in your usr/bin or wherever.

Happy new year! 🥂🐳🤿

@evandrocoan
Copy link

evandrocoan commented Apr 11, 2023

Thanks @iiian , I was having trouble cloning it with ssh, but it worked with git clone https://github.com/iiian/dive

I also had to install go with: https://www.digitalocean.com/community/tutorials/how-to-install-go-on-ubuntu-20-04

  1. curl -OL https://golang.org/dl/go1.16.7.linux-amd64.tar.gz
  2. sudo tar -C /usr/local -xvf go1.16.7.linux-amd64.tar.gz
  3. export PATH=$PATH:/usr/local/go/bin

Adds a default hotkey of ctrl+o to flip between A-Z sort order and numerical sort-by-size-desc on the right-side pane.

I just need to focus with tab key and it works awesome:
image

@jumarko
Copy link

jumarko commented Nov 27, 2023

@wagoodman is there any interest in incorporating this feature into the main repo?

@iiian
Copy link
Contributor

iiian commented Nov 27, 2023

@jumarko , I am pretty sure this has been merged into the main repo -- I have version 0.11.0 installed via homebrew & ^O toggles sort.

We might be able to close this PR

@jumarko
Copy link

jumarko commented Nov 27, 2023

^O toggles sort.

@iiian that's nice, I didn't know that.
It seems it's not documented, though - it would be nice to add that to the README.

@sanmai-NL
Copy link

#89

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

No branches or pull requests

7 participants