diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-01 21:30:14 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-01 21:30:14 +0200 |
| commit | d57f207b76a2189a94095c5a549d88325e62b3a4 (patch) | |
| tree | 0bced1a9d1922c5132e62c404cb26e6a29d2938e /gemfeed | |
| parent | f3fb8a6f7fd8673242571c2c20b65346f7c56181 (diff) | |
Update content for md
Diffstat (limited to 'gemfeed')
| -rw-r--r-- | gemfeed/2026-02-02-tmux-popup-editor-for-cursor-agent-prompts.md | 18 |
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: [](./tmux-popup-editor-for-cursor-agent-prompts/demo2.png) |
