Repository navigation
Keep typed text on esc in the repair, follow-up, pull request and new-chat forms - #1098
Merged
Merged
Conversation
…st and new-chat forms esc inside a text field of the repair, follow-up and pull request forms now keeps what was typed and leaves the field, as the issue form's body does. esc on any of the four forms, once it holds a draft, asks "discard this draft? y/n"; an untouched form still closes at once. Closes #1053
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.
Closes #1053. Merges into
tui-audit.Inside a text field
escnow keeps what was typed and leaves the field, as the issue form's body does.ctrl+sstill does the same, and the hint line saysctrl+s or esc keeps this text and leaves the field.ctrl+sused to mean "commit the field" inside the editor and "push and create" outside it, andescused to throw the edit away. Leaving the body no longer loses it, whichever key you use.Closing a form
escon the repair, follow-up, pull request or new-chat form, once it holds a draft, asksdiscard this draft? y/n.ycloses it; any other key keeps it.dirtyflag, which until now guarded only project switches.Checks
escin the field keeps the text,escon the form asks,ycloses, and an untouched form closes at once.go test ./internal/tuipasses andmage lintallis clean.