wagoodman / dive

A tool for exploring each layer in a docker image
MIT License
44.55k stars 1.69k forks source link

Hotkeys: Jump to last/next folder #485

Open reneleonhardt opened 7 months ago

reneleonhardt commented 7 months ago

What would you like to be added:

Hotkeys to jump to the next or previous folder (like a smart page up/down).

Why is this needed:

In order to get an overview of an image's content more quickly it would be helpful to jump between folders instead of pages. Example: python:3.12-alpine When you navigate inside /usr/local/lib/python3.12 it would be much easier to jump from one (parallel) folder to the next instead of using page down where you can end up on any other level. There even is no indication where inside the file tree you're now (aka what the parent folder / path is now). Jumping on the same level is much more intuitive for a user.

Additional context:

The previous folder is sometimes reachable by pressing left arrow, but only if the previous folder is the same as the parent folder. Please note that the right arrow does not jump to the next folder on the same level, and only to the next child element when coincidentally standing on a parent folder. A breadcrump / PWD line would be very helpful to recognize if the last navigation action changed the current directory.