From 6ad376885bb232c66c10600b8e7e066a42c64c86 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Wed, 8 Apr 2026 13:35:11 -0500 Subject: [PATCH] Add Stash The Current Prompt To Send Another First as a Claude Code TIL --- README.md | 3 ++- ...he-current-prompt-to-send-another-first.md | 25 +++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 claude-code/stash-the-current-prompt-to-send-another-first.md diff --git a/README.md b/README.md index dba0297..76ac74e 100644 --- a/README.md +++ b/README.md @@ -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). -_1773 TILs and counting..._ +_1774 TILs and counting..._ 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) - [Open Current Prompt In Default Editor](claude-code/open-current-prompt-in-default-editor.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 diff --git a/claude-code/stash-the-current-prompt-to-send-another-first.md b/claude-code/stash-the-current-prompt-to-send-another-first.md new file mode 100644 index 0000000..3357b19 --- /dev/null +++ b/claude-code/stash-the-current-prompt-to-send-another-first.md @@ -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).