summaryrefslogtreecommitdiff
path: root/internal/tmuxedit/capture.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-07-02 09:38:04 +0300
committerPaul Buetow <paul@buetow.org>2026-07-02 09:38:04 +0300
commita68228bfa12f4d8a51fe53e244fcd2e66c1ef692 (patch)
tree94e257b21b93419fef655c9813f68190204c3d0d /internal/tmuxedit/capture.go
parent9f0e96ce62339ddefa8771891e0864ede9af5064 (diff)
Remove hexai-tmux-edit popup editor featurev0.42.0
The tmux popup editor and its per-agent detection (Cursor/Amp/Aider) added maintenance surface without enough use to justify it; Codex and Claude Code already support external-editor mode natively via Ctrl+G. Drops internal/tmuxedit, cmd/hexai-tmux-edit, the [tmux_edit] config schema, the Mage build target, and all related docs/README mentions. Bump version to 0.42.0. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Diffstat (limited to 'internal/tmuxedit/capture.go')
-rw-r--r--internal/tmuxedit/capture.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/internal/tmuxedit/capture.go b/internal/tmuxedit/capture.go
deleted file mode 100644
index f4e3a67..0000000
--- a/internal/tmuxedit/capture.go
+++ /dev/null
@@ -1,23 +0,0 @@
-package tmuxedit
-
-import (
- "fmt"
- "strings"
-)
-
-func capturePane(paneID string) (string, error) {
- return tmuxEditDeps{}.capture(paneID)
-}
-
-// capture retrieves the visible content of a tmux pane via `tmux capture-pane
-// -p -t <paneID>`. The -p flag prints to stdout instead of to a paste buffer.
-func (d tmuxEditDeps) capture(paneID string) (string, error) {
- if d.capturePane != nil {
- return d.capturePane(paneID)
- }
- out, err := d.command("tmux", "capture-pane", "-p", "-t", paneID)
- if err != nil {
- return "", fmt.Errorf("capture-pane failed for %s: %w", paneID, err)
- }
- return strings.TrimRight(string(out), "\n"), nil
-}