From d57f207b76a2189a94095c5a549d88325e62b3a4 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 1 Feb 2026 21:30:14 +0200 Subject: Update content for md --- ...02-02-tmux-popup-editor-for-cursor-agent-prompts.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'gemfeed') 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) -- cgit v1.2.3