-
Notifications
You must be signed in to change notification settings - Fork 847
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
docs: viewport horizontal scroll, gutter, highlight examples #1304
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Carlos Alexandro Becker <[email protected]>
vp.KeyMap.Left.SetEnabled(false) | ||
vp.KeyMap.Right.SetEnabled(false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if this should be disabled by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm good question. I'd look at existing tools like less
and more
I'm playing with this a bit and it looks like not all matches are being highlighted and the highlighting jumps a bit (highlights here are in green, with the selected one a darker green. Unless I'm missing something? pager.mov |
@meowgorithm looks like you only set the selected highlight style, there's a highlight style as well |
I have these two set, but I'm seeing the same behavior in the example here as well. m.viewport.HighlightStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("238")).Background(lipgloss.Color("34"))
m.viewport.SelectedHighlightStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("238")).Background(lipgloss.Color("47")) |
Btw, this is a solid API. Nice work. |
This reverts commit 6e1be92.
example usage of charmbracelet/bubbles#697