mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #629] Extending keyboard/mouse events in List and Text view components #457
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#457
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @iberflow on GitHub (Jul 27, 2021).
Original GitHub issue: https://github.com/rivo/tview/issues/629
Hi there! Thank you for this amazing package, after going through your "competition" it seems like this is the most maintained and straightforward CLI UI out there.
I'm building an open-source manpage / command-line app documentation reader which will help developers interactively "analyze" various CLI commands and their flags.
I've managed to make most of the basics work, but I really want to improve the UX of my tool before I release it. I've looked at the source code and I couldn't find a simple or any way to achieve what I want (I've only spent half the weekend digging around so maybe I missed something) and hope that maybe you could guide me in the right direction.
Sidebar (List component):
Command and option description (TextView components):
I want to be able to click on a specific region and select the sidebar's list item that matches the highlighted region.
I've tried playing around with
MouseHandler,WrapMouseHandlerbut I cannot access private properties from outside the struct so seems like it's a no-go, or I just don't understand how to use it properly.My last attempt was to copy over TextView file and attempt to modify it, but due to internal private vars I would have to copy over more stuff and I'm not entirely sure that it would make it work.
I understand that my use case might be outside of what the project offers or has in mind for the future, but if I manage to achieve this and it's something that you see beneficial to your user base, I'd be more than happy to contribute to the project.
Any guidance is truly appreciated. Thanks!
@iberflow commented on GitHub (Jul 27, 2021):
I've managed to sort out my List related issues:
https://github.com/ignasbernotas/tview/tree/feature/list-select-on-navigation
https://github.com/ignasbernotas/tview/tree/feature/list-scroll-past-selected-item
Don't want to add more PRs since you documented that you'd like to discuss first, but I'll leave comments here for reference.
@rivo commented on GitHub (Feb 15, 2022):
My apologies for getting to this so late. Are these items still relevant to you, i.e. do you need me to look into them?