feat(ui): add prompt stashing with Ctrl-S/Ctrl-R#530
Open
ManojINaik wants to merge 2 commits intoMoonshotAI:mainfrom
Open
feat(ui): add prompt stashing with Ctrl-S/Ctrl-R#530ManojINaik wants to merge 2 commits intoMoonshotAI:mainfrom
ManojINaik wants to merge 2 commits intoMoonshotAI:mainfrom
Conversation
Add prompt stashing feature to temporarily save typed input: - Ctrl-S: Stash current input (saves to stack, clears buffer) - Ctrl-R: Restore most recently stashed input Security measures: - Bounded deque with max 10 items to prevent memory growth - 10KB limit per stashed entry - Auto-cleared on session exit This is useful when typing a message but needing to quickly send something else first.
7ffb171 to
92192dd
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.
Related Issue
Resolves #531
Description
This PR adds a prompt stashing feature that allows users to temporarily save their typed input and restore it later. This is useful when you're typing a message but need to quickly send something else first.
New Key Bindings
Ctrl-Q- If input buffer has text: Stashes current input (clears buffer).
- If input buffer is empty: Restores stashed input.
Implementation Details
ctrl-q: stash/popadded to bottom toolbarTesting
kimi, type text, useCtrl-Qto stash, clear buffer, useCtrl-Qagain to restore.