Loading video...
Video Failed to Load
Did you know you can stash your prompt in Claude Code? Ctrl+S saves your draft. Allows you to send a different prompt. Your saved draft is then auto-restored. No more copying to Notes. It's like git stash, but for your prompts.
171,570 views • 9 months ago •via X (Twitter)
35 Comments

i guess this is sufficient motivation to figure out what part of the shell ate my Ctrl key

til

Control-S is already a POSIX signal. You’re now just breaking terminal flow control.

Yes it's really handy feature, this and many more for claude code you can find here, now it's self updating

this is actually very useful, tyvm. I’m always scrambling with notes or obsidian

🙌 It’s awesome! But it doesn’t save to file just to memory so when you /exit and continue the session it’s lost, right? Is it possible to make it persist past /exit and resume? I made a workaround I discussed briefly here but would love to not have to go to such lengths. Would also be awesome if up arrow or some other shortcut would restore it without having to submit something. Maybe like a stack that ctrl+s would add to would be great!

@marcelpociot Omg

I use this all the time when I've typed up a prompt and then realize it would be better if I provided the output of a bash command. 1. <stash> 2. !<command> 3. Submit prompt I actually only found out about this from your Christmas list

Are you out of your goddamned mind?

@adocomplete, that's a clever way to manage prompts, and here's a guide to further improve your workflow.

can you have clearing context not clear stashed text too please

If you need to stash a prompt to run it again later, you can probably build a skill out of it and reuse it

Ctrl+S stash is a game changer. No more losing half your prompt when you need to pivot real quick.

that's cool, I didn't know this

The team knows exactly what to cook. Small or big. But never fail

git stash for thoughts? This is the feature I didn't know I needed. 🤯 Stopping a thought to run a quick ls used to mean losing your flow. Small UX details like this are what make a dev tool stick.

TIL

TY for pointing this out

This is a feature that I would have never even thought to add Very useful shortcut

Get started with Claude Code here. Simple set up guide!

interesting

this is going to save me so much time, thanks for sharing Ado

TIL

This is why everyone wants the AI bubble to pop

Mind blown. Wanted this forever.

This feature is criminally underrated. Switching contexts without losing your work is such a quality of life improvement. Git-like workflow for prompts is genuinely clever.

This work on Windows too or is it just a Mac command?

you can also just clear it out and then hit up to find it again…

I might finally be able to close the Notes app window I keep open purely for prompt storage.

A handy one, thanks!

Doing this paired with can organize your projects so much better. I think I want to add a feature that stores prompts.

Nice. Good pro tip

you are a life saver, thanks man.

Claude编程之后的内容需要谨慎进行实验和多方验证,并且注意其是否真的实现了某些特定需求功能,其可能为了完成最终结果而产生作弊行为导致最终编程指向目标没能有真正产出结果,这种情况一般在复杂多系统相关问题中出现。

What in sorcery. Appreciate it 🤝

