mirror of
https://github.com/jbranchaud/til
synced 2026-07-03 16:18:24 +00:00
Add Stash The Current Prompt To Send Another First as a Claude Code TIL
This commit is contained in:
@@ -10,7 +10,7 @@ working across different projects via [VisualMode](https://www.visualmode.dev/).
|
|||||||
|
|
||||||
For a steady stream of TILs, [sign up for my newsletter](https://visualmode.kit.com/newsletter).
|
For a steady stream of TILs, [sign up for my newsletter](https://visualmode.kit.com/newsletter).
|
||||||
|
|
||||||
_1773 TILs and counting..._
|
_1774 TILs and counting..._
|
||||||
|
|
||||||
See some of the other learning resources I work on:
|
See some of the other learning resources I work on:
|
||||||
|
|
||||||
@@ -168,6 +168,7 @@ If you've learned something here, support my efforts writing daily TILs by
|
|||||||
- [Monitor Usage Limits From CLI](claude-code/monitor-usage-limits-from-cli.md)
|
- [Monitor Usage Limits From CLI](claude-code/monitor-usage-limits-from-cli.md)
|
||||||
- [Open Current Prompt In Default Editor](claude-code/open-current-prompt-in-default-editor.md)
|
- [Open Current Prompt In Default Editor](claude-code/open-current-prompt-in-default-editor.md)
|
||||||
- [Resume Specific Session](claude-code/resume-specific-session.md)
|
- [Resume Specific Session](claude-code/resume-specific-session.md)
|
||||||
|
- [Stash The Current Prompt To Send Another First](claude-code/stash-the-current-prompt-to-send-another-first.md)
|
||||||
|
|
||||||
### Clojure
|
### Clojure
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
# Stash The Current Prompt To Send Another First
|
||||||
|
|
||||||
|
I've been working my way through the current cohort of Matt Pocock's [Claude
|
||||||
|
Code for Real
|
||||||
|
Engineers](https://www.aihero.dev/cohorts/claude-code-for-real-engineers-2026-04).
|
||||||
|
The best part about going through a series of videos like this is being able to
|
||||||
|
pick up big and small tips and tricks from another person's workflow.
|
||||||
|
|
||||||
|
One of the small things I picked up in an early video is the ability to stash
|
||||||
|
the current prompt.
|
||||||
|
|
||||||
|
Let's say I've gone to the trouble of writing out a detailed prompt, `@`'ing
|
||||||
|
some files, and so forth. Then I realize I need first prompt Claude to do
|
||||||
|
something else first. Instead of copy-pasting that prompt into my notes,
|
||||||
|
deleting it, issuing a different prompt, and then pasting it back in, I can hit
|
||||||
|
`Ctrl-s`.
|
||||||
|
|
||||||
|
`Ctrl-s` will _stash_ the current prompt, clearing out the prompt input. I can
|
||||||
|
then type in something else. Once I hit enter for that new prompt, it will be
|
||||||
|
sent to Claude and the stashed prompt will be immediately populated back into
|
||||||
|
the input.
|
||||||
|
|
||||||
|
Though `Ctrl-s` is mentioned when you hit `?` from within `claude` session, I
|
||||||
|
don't see it documented anywhere in their [Interactive Mode
|
||||||
|
reference](https://code.claude.com/docs/en/interactive-mode).
|
||||||
Reference in New Issue
Block a user