-
-
Notifications
You must be signed in to change notification settings - Fork 589
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
View arbitrarily long multi-line annotations for git tags #1138
Comments
Are there obvious blockers to using |
I don't think so |
yeah i think this should be pretty simple to do using the machinery for scrollbars we use in a lot of places already |
Hi, I started working on this, i'm adding a new popup with a scrollbar for the tag annotation instead of using MsgPopup. should have a PR up soon :) |
Why not the exiting one and add the scrollbar? |
Because currently the annotation is shown using:
Which calls
I didn't want to add a scrollbar to msg_popup as that is used in other places as well so decided to add a separate popup. I'm happy to just add a scroll bar to the info popup if that's preferable |
I want to choose the solution that's best for the project and keeps things consistent. Would you recommend adding a scrollbar to the MsgPopup, creating a new popup for tag annotations, or is there another approach you'd prefer? Thanks for your input! |
you raised a good point. i had to take a look again. my first hunch was: lets use the new multiline textinput but that one does not support readonly right now and is already a rather complex beast. So in order to keep things simple you can just add vertical scrolling to Ideally we put that functionality into a separate |
@MichaelAug for more instant exchange amongst contributors feel free to join our discord: https://discord.gg/d2p2NS7m |
Making a reusable component that is used in |
Thanks i'm already in the Discord 👍 |
I made a PR for the first part. After this is approved I'll make another PR to refactor |
Is your feature request related to a problem? Please describe.
Happily, we can view git tag annotations, including annotations with multiple lines. Sadly, if the annotation is long and goes on for many lines, we can't see the whole thing. In my current terminal emulator, gitui only displays the first 23 lines.
This issue will increase in importance if we support creating multiple-line annotations for git tags.
Describe the solution you'd like
Adding a scrollbar seems like a good solution to me.
If adding scrollbars to a "popup window" is not desirable, perhaps refactoring the UI so that annotations can be viewed in a multi-panel interface, like the files list, might work better.
Additional context
The text was updated successfully, but these errors were encountered: