-
-
Notifications
You must be signed in to change notification settings - Fork 321
Label completions #720
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
Label completions #720
Conversation
dlvhdr
left a comment
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.
Hey! So this is pretty awesome and definitely super useful. Thanks for working on it.
I think in terms of usability it's very nice. I think the code needs some cleanup, mainly for readability, nothing major.
I've also left some design comments etc.
Otherwise, great work!
dlvhdr
left a comment
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.
Looks and behaves really great! Thx for putting so much effort into it!
|
|
||
| func (m *Model) UpdateProgramContext(ctx *context.ProgramContext) { | ||
| m.ctx = ctx | ||
| m.inputHelp.Styles = ctx.Styles.Help.BubbleStyles |
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.
I think you also need to update the styles for the autocomplete here? not sure why, but the help text isn't using the faint style
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.
Great catch! I added it to issueview.go since that is where m.ac is. I originally did a check for m.ac != nil before updating the context, but I think since it is in issueview.go, m.ac will always be defined. Am I thinking about that right?
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.
yeah that works great!
dlvhdr
left a comment
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.
Looks and behaves really great! Thx for putting so much effort into it!
a28d7eb to
5a4ff71
Compare
Use runes to extract and replace labels to avoid problems with multi-byte characters
Replaced "Labels" with "Suggestions" in `FetchLabelsRequestedMsg` and `FetchLabelsKey` to make them both more generic.
- Send ClearFetchStatusMsg after 2s to reset success/error states - Make SetFetchSuccess and SetFetchError return a tea.Cmd so callers (issueview) can schedule the clear - Forward messages to autocomplete - Update so spinner/status remain synchronized
5a4ff71 to
17ff5cb
Compare
|
Looks great @mchisolm0! I'm good with merging this. We can do another pass once bubbletea v2 is released and convert it to a cleaner popup. |
Summary
Add a suggestion/completion system for labels. Built on top of #719 to close #716.
How did you test this change?
I built the extension locally and started it in the terminal. I opened an issue, began typing a label,
ctrl + nandctrl + pfor next/previous, and clicked enter or tab to accept.Images/Videos
CleanShot.2025-12-27.at.03.02.15.mp4