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

Current (highlighted) line in Layer Contents pane disappears when toggling views #543

Open
erhhung opened this issue Aug 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@erhhung
Copy link

erhhung commented Aug 6, 2024

What happened:

When toggling views (e.g. ^U Unmodified) in the Current Layer Contents pane, if the current (highlighted) line was below the last visible line in the updated file tree, the line highlight would disappear, and the current line position would stay the same such that you would now need to press up-arrow n times to arrive at the last visible line.

What you expected to happen:

While it would be nice if the same node (path) in the file tree would remain highlighted when switching between modified and unmodified files views, at the very least, the current line position should never be below the last visible line of the current view.

It's common to be moving deep down into the full file system tree and then, when toggling back to see the few layer changes, to have to navigate around the top couple of lines in the pane.

Environment:

  • dive 0.12.0
  • macOS 14.5 on Intel
  • Docker Desktop 4.33
@erhhung erhhung added the bug Something isn't working label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant