From ef61abe66da377c298265d06d61ee3f91b16242f Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 1 Feb 2026 21:29:16 +0200 Subject: Update --- ...2-tmux-popup-editor-for-cursor-agent-prompts.gmi.tpl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/gemfeed/2026-02-02-tmux-popup-editor-for-cursor-agent-prompts.gmi.tpl b/gemfeed/2026-02-02-tmux-popup-editor-for-cursor-agent-prompts.gmi.tpl index 93a011e8..be18b66d 100644 --- a/gemfeed/2026-02-02-tmux-popup-editor-for-cursor-agent-prompts.gmi.tpl +++ b/gemfeed/2026-02-02-tmux-popup-editor-for-cursor-agent-prompts.gmi.tpl @@ -47,6 +47,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 -- cgit v1.2.3