feat(tui): paste support in wizard inputs (F8)#46
Merged
Conversation
37cea8d to
a31253f
Compare
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.
Summary
Tier 3 (final) of the
tui-personalitySDD change: bracketed-paste support in wizard text inputs (F8).The wizard profile-name step now accepts
tea.PasteMsg(v2 bracketed paste) and appendsmsg.Contentto the active input buffer, so users can paste multi-character names/paths instead of typing rune-by-rune. Plain keystrokes continue to work alongside paste.Changes
internal/tui/screens/wizard.go: addcase tea.PasteMsg:inUpdate, appendingmsg.Contenttom.NameInputon the free-textStepNamestep (no-op on other steps so selection state is not corrupted).internal/tui/screens/wizard_test.go: table-driven paste tests (empty/non-empty input, spaces, path separators), paste-then-backspace, and no-op-on-non-name-step invariant.Stacked chain note
This is the Tier 3 slice of a stacked-to-main chain:
Branched from
feat/tui-personality-tier2; the diff shrinks to the ~30-line Tier 3 slice once #44 and #45 merge tomain. Tier 3 is functionally independent — paste only toucheswizard.goUpdate, non-overlapping with Tier 1 window-title (View) work.Verification
go test ./internal/tui/screens/...✅go test -cover ./internal/tui/screens/...→ 85.1% (≥80%) ✅go vet ./...clean ✅golangci-lint run0 issues ✅Spec:
openspec/changes/tui-personality/specs/wizard-flow/spec.md(F8 paste). SDD tasks Phase 5 marked complete.