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 the ability to show content of a selected file #525

Open
loresuso opened this issue May 31, 2024 · 2 comments
Open

Add the ability to show content of a selected file #525

loresuso opened this issue May 31, 2024 · 2 comments
Labels
enhancement Add a new feature ui dealing with the TUI

Comments

@loresuso
Copy link

What would you like to be added:
I would like to inspect also the content of the files being added. Probably the option is already there?

Why is this needed:
Might be useful for debugging purposes.

Additional context:

@loresuso loresuso added the enhancement Add a new feature label May 31, 2024
@wagoodman wagoodman added the ui dealing with the TUI label Mar 14, 2025
@wagoodman
Copy link
Owner

wagoodman commented Mar 14, 2025

Once #569 is implemented this will be more easily implemented (it has a content API without needing to create a container from an image reference). Seems related to #107 (but not a duplicate), another thing that is needed here is to settle on the final direction for how the interaction would be shown (i.e. hit enter on a selected file and add another right-sided pane to the UI? replace the existing UI? etc).

@wagoodman wagoodman changed the title [Question] Can dive show the content of an added file? Add the ability to show content of a selected file Mar 14, 2025
@loresuso
Copy link
Author

loresuso commented Mar 15, 2025

Nice! Why don't use less as a child process as a pager? We can make use of it (including search functionalities) and on exit, resume the initial UI.
Of course, depending on the platform, we can have a number of decent pagers, and maybe the user can also express which one to use using an environment variable if he does not like the default one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Add a new feature ui dealing with the TUI
Projects
None yet
Development

No branches or pull requests

2 participants