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

fix: remove mouse wheel support from show sdk & show scroll options in help view #161

Merged

Conversation

k3llymariee
Copy link
Contributor

@k3llymariee k3llymariee commented Apr 10, 2024

Removes mouse wheel support from the viewport, because with this enabled we're unable to highlight the text within to copy/paste (which is kinda the whole point of it).

image

Comment on lines +54 to +55
h := help.New()
h.ShowAll = true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did we define help ourselves somewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is just the bubbletea Help model

Copy link
Contributor

@dbolson dbolson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The full version of the help with fewer elements looks kind of weird. It could be good enough without redoing the entire help, but do you think defaulting to short help and showing "more" would hide the fact that you can scroll too much?

@k3llymariee
Copy link
Contributor Author

@dbolson yeah I worry about hiding those keys/making it less obvious that it's scrollable. I don't hate it as-is 😅 but maybe we can wait for more feedback

@k3llymariee k3llymariee merged commit 99015b1 into main Apr 10, 2024
3 checks passed
@k3llymariee k3llymariee deleted the kelly/sc-239828/remove-mouse-wheel-support-from-show-sdk branch April 10, 2024 18:04
@sunnyguduru sunnyguduru mentioned this pull request Apr 15, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants