diff options
Diffstat (limited to 'gemfeed')
| -rw-r--r-- | gemfeed/.tmux-edit-send.HGCGOt.md | 1 | ||||
| -rw-r--r-- | gemfeed/2026-02-02-tmux-popup-editor-for-cursor-agent-prompts.gmi | 18 | ||||
| -rw-r--r-- | gemfeed/atom.xml | 20 |
3 files changed, 38 insertions, 1 deletions
diff --git a/gemfeed/.tmux-edit-send.HGCGOt.md b/gemfeed/.tmux-edit-send.HGCGOt.md new file mode 100644 index 00000000..c056abcc --- /dev/null +++ b/gemfeed/.tmux-edit-send.HGCGOt.md @@ -0,0 +1 @@ +to the blog post ./2026-02-02-tmux-popup.....tpl can you also add an ascii diagram of the workflow of the tool diff --git a/gemfeed/2026-02-02-tmux-popup-editor-for-cursor-agent-prompts.gmi b/gemfeed/2026-02-02-tmux-popup-editor-for-cursor-agent-prompts.gmi index 95f4e4c1..e7b99c3f 100644 --- a/gemfeed/2026-02-02-tmux-popup-editor-for-cursor-agent-prompts.gmi +++ b/gemfeed/2026-02-02-tmux-popup-editor-for-cursor-agent-prompts.gmi @@ -10,6 +10,7 @@ * ⇢ ⇢ Why I built this * ⇢ ⇢ What it is * ⇢ ⇢ How it works (overview) +* ⇢ ⇢ ⇢ Workflow diagram * ⇢ ⇢ Challenges and small discoveries * ⇢ ⇢ Test cases (for a future rewrite) * ⇢ ⇢ (Almost) works with any editor (or any TUI) @@ -55,6 +56,23 @@ bind-key e run-shell -b "tmux display-message -p '#{pane_id}' \"~/scripts/tmux-edit-send /tmp/tmux-edit-target-#{client_pid}\"" ``` +### Workflow diagram + +This is the whole workflow: + +``` +┌────────────────────┐ ┌───────────────┐ ┌─────────────────────┐ ┌─────────────────────┐ +│ Cursor input box │-->| tmux keybind │-->| popup runs script │-->| capture + prefill │ +│ (prompt pane) │ │ prefix + e │ │ tmux-edit-send │ │ temp file │ +└────────────────────┘ └───────────────┘ └─────────────────────┘ └─────────────────────┘ + | + v +┌────────────────────┐ ┌────────────────────┐ ┌────────────────────┐ ┌────────────────────┐ +│ Cursor input box │<--| send-keys back |<--| close editor+popup |<--| edit temp file | +│ (prompt pane) │ │ to original pane │ │ (exit $EDITOR) │ │ in $EDITOR │ +└────────────────────┘ └────────────────────┘ └────────────────────┘ └────────────────────┘ +``` + And this is how it looks like after sending back the text to the Cursor Agent's input: => ./tmux-popup-editor-for-cursor-agent-prompts/demo2.png Prefilled prompt text diff --git a/gemfeed/atom.xml b/gemfeed/atom.xml index 284af613..1b78b084 100644 --- a/gemfeed/atom.xml +++ b/gemfeed/atom.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> - <updated>2026-02-01T21:02:02+02:00</updated> + <updated>2026-02-01T21:29:22+02:00</updated> <title>foo.zone feed</title> <subtitle>To be in the .zone!</subtitle> <link href="gemini://foo.zone/gemfeed/atom.xml" rel="self" /> @@ -31,6 +31,7 @@ <li>⇢ <a href='#why-i-built-this'>Why I built this</a></li> <li>⇢ <a href='#what-it-is'>What it is</a></li> <li>⇢ <a href='#how-it-works-overview'>How it works (overview)</a></li> +<li>⇢ ⇢ <a href='#workflow-diagram'>Workflow diagram</a></li> <li>⇢ <a href='#challenges-and-small-discoveries'>Challenges and small discoveries</a></li> <li>⇢ <a href='#test-cases-for-a-future-rewrite'>Test cases (for a future rewrite)</a></li> <li>⇢ <a href='#almost-works-with-any-editor-or-any-tui'>(Almost) works with any editor (or any TUI)</a></li> @@ -77,6 +78,23 @@ bind-key e run-shell -b "tmux display-message -p '#{pane_id}' \"~/scripts/tmux-edit-send /tmp/tmux-edit-target-#{client_pid}\"" </pre> <br /> +<h3 style='display: inline' id='workflow-diagram'>Workflow diagram</h3><br /> +<br /> +<span>This is the whole workflow:</span><br /> +<br /> +<pre> +┌────────────────────┐ ┌───────────────┐ ┌─────────────────────┐ ┌─────────────────────┐ +│ Cursor input box │-->| tmux keybind │-->| popup runs script │-->| capture + prefill │ +│ (prompt pane) │ │ prefix + e │ │ tmux-edit-send │ │ temp file │ +└────────────────────┘ └───────────────┘ └─────────────────────┘ └─────────────────────┘ + | + v +┌────────────────────┐ ┌────────────────────┐ ┌────────────────────┐ ┌────────────────────┐ +│ Cursor input box │<--| send-keys back |<--| close editor+popup |<--| edit temp file | +│ (prompt pane) │ │ to original pane │ │ (exit $EDITOR) │ │ in $EDITOR │ +└────────────────────┘ └────────────────────┘ └────────────────────┘ └────────────────────┘ +</pre> +<br /> <span>And this is how it looks like after sending back the text to the Cursor Agent's input:</span><br /> <br /> <a href='./tmux-popup-editor-for-cursor-agent-prompts/demo2.png'><img alt='Prefilled prompt text' title='Prefilled prompt text' src='./tmux-popup-editor-for-cursor-agent-prompts/demo2.png' /></a><br /> |
