feat(ui): inline floating input for Other option - #455
Merged
Conversation
Owner
Author
|
This can help with #451 |
Collaborator
|
It looks great! I'll give it a try in about an hour or two. |
Collaborator
I really like it! But I'm not sure if this is related to this PR, but is our original interaction logic for multi-selection similar to the TUI? It seems that directly confirms the selection? and WinLeave drops typed input on any focus loss, my agent said that root cause is using WinLeave as cancel trigger when WinClosed/Esc already covers cleanup. @sudo-tee |
Owner
Author
|
Not sure I follow here. WinLeave is only on the inline input element. I don;t think we support multi-selection yet in our imnplementation |
Collaborator
Owner
Author
|
Oh I see. I will have a look. Thanks |
Save input buffer text on BufLeave and restore on next open, so partial input survives accidental focus changes.
Owner
Author
|
I pushed a fix for the accidental dismiss. |
disrupted
pushed a commit
to disrupted/opencode-native.nvim
that referenced
this pull request
Jul 23, 2026
* feat(ui): inline floating input for Other option * feat(inline-input): preserve text across focus loss Save input buffer text on BufLeave and restore on next open, so partial input survives accidental focus changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


This PR introduce an inline input for answering the Other question inline.
@jensenojs
If you have a minute. I'd like your
input(pun intended 😅) on this.Does it work for you, do you think it's a proper implementation that we can use for the Permission
Deny