diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-01 20:36:16 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-01 20:36:16 +0200 |
| commit | 07f3f61d18447728344fb8f2960dc532dc7f062a (patch) | |
| tree | 4aadeaeee206bc1b8aefae98d80edfae7c76bc78 /gemfeed | |
| parent | bad70918c7019707f316034aaba0a54efa170f60 (diff) | |
Update content for gemtext
Diffstat (limited to 'gemfeed')
| -rw-r--r-- | gemfeed/2026-02-02-tmux-popup-editor-for-cursor-agent-prompts.gmi | 6 | ||||
| -rw-r--r-- | gemfeed/atom.xml | 10 |
2 files changed, 11 insertions, 5 deletions
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 @@ <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> - <updated>2026-02-01T20:24:16+02:00</updated> + <updated>2026-02-01T20:35:25+02:00</updated> <title>foo.zone feed</title> <subtitle>To be in the .zone!</subtitle> <link href="gemini://foo.zone/gemfeed/atom.xml" rel="self" /> @@ -20,6 +20,8 @@ <div xmlns="http://www.w3.org/1999/xhtml"> <h1 style='display: inline' id='a-tmux-popup-editor-for-cursor-agent-prompts'>A tmux popup editor for Cursor Agent prompts</h1><br /> <br /> +<span class='quote'>Published at 2026-02-01T20:24:16+02:00</span><br /> +<br /> <span>...and any other TUI based application</span><br /> <br /> <h2 style='display: inline' id='table-of-contents'>Table of Contents</h2><br /> @@ -280,7 +282,7 @@ main <font color="#808080">"$@"</font> <ul> <li>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.</li> <li>The Cursor UI draws a nice box around the prompt, so the prompt line contains a <span class='inlinecode'>│</span> and other markers. I had to filter those out and strip the box-drawing characters.</li> -<li>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.</li> +<li>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.</li> </ul><br /> <h2 style='display: inline' id='test-cases-for-a-future-rewrite'>Test cases (for a future rewrite)</h2><br /> <br /> @@ -299,7 +301,9 @@ main <font color="#808080">"$@"</font> <br /> <span>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.</span><br /> <br /> -<span>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.</span><br /> +<span>Another thing is, what if Cursor decides to change the design of its TUI? I would need to change my script as well.</span><br /> +<br /> +<span>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.</span><br /> <br /> <span>E-Mail your comments to <span class='inlinecode'>paul@nospam.buetow.org</span> :-)</span><br /> <br /> |
