Skip to content

feat(tui): add Alt+S to stash input text, show stash hint when input is present - #372

Closed
alecuba16 wants to merge 3 commits into
Kuberwastaken:mainfrom
alecuba16:feat/stash-input
Closed

feat(tui): add Alt+S to stash input text, show stash hint when input is present#372
alecuba16 wants to merge 3 commits into
Kuberwastaken:mainfrom
alecuba16:feat/stash-input

Conversation

@alecuba16

@alecuba16 alecuba16 commented Aug 2, 2026

Copy link
Copy Markdown

Summary

Adds Alt+S to stash input text. Stash hint (alt+s stash / alt+s restore stashed input) now shows when input text is present, not just when empty alongside ? shortcuts.

Changes

  • render.rs: Rewrote right_hint logic in render_input():
    • Empty input + has stash → alt+s restore stashed input (magenta)
    • Empty input + no stash → ? shortcuts · alt+s stash (dim)
    • Non-empty input + has stash → alt+s restore stashed input (magenta) — NEW
    • Non-empty input + no stash → alt+s stash (dim) — NEW
  • Removed old paste ref hint that incorrectly occupied the non-empty input path
  • prompt_input.rs: stashed_text: Option<String> field, stash() / restore_stash() methods

Testing

  • cargo check --workspace clean
  • cargo fmt --all clean
  • 119 render tests pass

@alecuba16 alecuba16 changed the title feat(tui): add Alt+S to stash and restore input text feat(tui): add Alt+S to stash input text, show stash hint when input is present Aug 2, 2026
alecuba16 and others added 2 commits August 7, 2026 09:02
@alecuba16

Copy link
Copy Markdown
Author

Closing in favor of consolidated group branches. The changes from this PR have been merged into a functional group branch.

@alecuba16 alecuba16 closed this Aug 10, 2026
@alecuba16
alecuba16 deleted the feat/stash-input branch August 10, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant