summaryrefslogtreecommitdiff
path: root/gemfeed
diff options
context:
space:
mode:
Diffstat (limited to 'gemfeed')
-rw-r--r--gemfeed/2026-02-02-tmux-popup-editor-for-cursor-agent-prompts.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/gemfeed/2026-02-02-tmux-popup-editor-for-cursor-agent-prompts.md b/gemfeed/2026-02-02-tmux-popup-editor-for-cursor-agent-prompts.md
index d269e37b..82628ac8 100644
--- a/gemfeed/2026-02-02-tmux-popup-editor-for-cursor-agent-prompts.md
+++ b/gemfeed/2026-02-02-tmux-popup-editor-for-cursor-agent-prompts.md
@@ -10,6 +10,7 @@
* [⇢ ⇢ Why I built this](#why-i-built-this)
* [⇢ ⇢ What it is](#what-it-is)
* [⇢ ⇢ How it works (overview)](#how-it-works-overview)
+* [⇢ ⇢ ⇢ Workflow diagram](#workflow-diagram)
* [⇢ ⇢ Challenges and small discoveries](#challenges-and-small-discoveries)
* [⇢ ⇢ Test cases (for a future rewrite)](#test-cases-for-a-future-rewrite)
* [⇢ ⇢ (Almost) works with any editor (or any TUI)](#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:
[![Prefilled prompt text](./tmux-popup-editor-for-cursor-agent-prompts/demo2.png "Prefilled prompt text")](./tmux-popup-editor-for-cursor-agent-prompts/demo2.png)