From 07f3f61d18447728344fb8f2960dc532dc7f062a Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 1 Feb 2026 20:36:16 +0200 Subject: Update content for gemtext --- .../2026-02-02-tmux-popup-editor-for-cursor-agent-prompts.gmi | 6 ++++-- gemfeed/atom.xml | 10 +++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) (limited to 'gemfeed') 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 235fb656..e3f3a75c 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 @@ -256,7 +256,7 @@ The problems were mostly small but annoying: * Getting the right target pane was the first hurdle. I ended up storing the pane id in a file because of tmux format expansion quirks. * The Cursor UI draws a nice box around the prompt, so the prompt line contains a `│` and other markers. I had to filter those out and strip the box-drawing characters. -* When I prefilled text and then sent it back, I sometimes duplicated the prompt. Stripping the prefilled prompt text from the first line fixed that. +* When I prefilled text and then sent it back, I sometimes duplicated the prompt. Stripping the prefilled prompt text from the submitted text fixed that. ## Test cases (for a future rewrite) @@ -274,7 +274,9 @@ Although I use Helix, this is just `$EDITOR`. If you prefer Vim, Neovim, or some One caveat: different agents draw different prompt UIs, so the capture logic depends on the prompt shape. A future version of this script should be more modular in that respect; for now this is just a PoC tailored to Cursor Agent. -If I get a chance, I'll clean it up and rewrite it in Go (and release it properly). For now, I am happy with this little hack. It already feels like a native editing workflow for Cursor Agent prompts. +Another thing is, what if Cursor decides to change the design of its TUI? I would need to change my script as well. + +If I get a chance, I'll clean it up and rewrite it in Go (and release it properly or include it into Hexai, another AI related tool of mine, of which I haven't blogged about yet). For now, I am happy with this little hack. It already feels like a native editing workflow for Cursor Agent prompts. E-Mail your comments to `paul@nospam.buetow.org` :-) diff --git a/gemfeed/atom.xml b/gemfeed/atom.xml index c9a51a98..73511e48 100644 --- a/gemfeed/atom.xml +++ b/gemfeed/atom.xml @@ -1,6 +1,6 @@ - 2026-02-01T20:24:16+02:00 + 2026-02-01T20:35:25+02:00 foo.zone feed To be in the .zone! @@ -20,6 +20,8 @@

A tmux popup editor for Cursor Agent prompts



+Published at 2026-02-01T20:24:16+02:00
+
...and any other TUI based application

Table of Contents


@@ -280,7 +282,7 @@ main "$@"
  • Getting the right target pane was the first hurdle. I ended up storing the pane id in a file because of tmux format expansion quirks.
  • The Cursor UI draws a nice box around the prompt, so the prompt line contains a and other markers. I had to filter those out and strip the box-drawing characters.
  • -
  • When I prefilled text and then sent it back, I sometimes duplicated the prompt. Stripping the prefilled prompt text from the first line fixed that.
  • +
  • When I prefilled text and then sent it back, I sometimes duplicated the prompt. Stripping the prefilled prompt text from the submitted text fixed that.

Test cases (for a future rewrite)



@@ -299,7 +301,9 @@ main "$@"
One caveat: different agents draw different prompt UIs, so the capture logic depends on the prompt shape. A future version of this script should be more modular in that respect; for now this is just a PoC tailored to Cursor Agent.

-If I get a chance, I'll clean it up and rewrite it in Go (and release it properly). For now, I am happy with this little hack. It already feels like a native editing workflow for Cursor Agent prompts.
+Another thing is, what if Cursor decides to change the design of its TUI? I would need to change my script as well.
+
+If I get a chance, I'll clean it up and rewrite it in Go (and release it properly or include it into Hexai, another AI related tool of mine, of which I haven't blogged about yet). For now, I am happy with this little hack. It already feels like a native editing workflow for Cursor Agent prompts.

E-Mail your comments to paul@nospam.buetow.org :-)

-- cgit v1.2.3