Skip to content

Commit 14c1fcd

Browse files
JohnVicenteAAclaude
andcommitted
Disable automatic-rename to preserve window title
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1ede263 commit 14c1fcd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

cmd/ide.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ func runIDE(sessionName, windowTitle string) error {
88

99
runner.Run("new-session", "-d", "-s", sessionName)
1010
runner.Run("rename-window", "-t", sessionName+":0", windowTitle)
11+
runner.Run("set-window-option", "-t", sessionName+":0", "automatic-rename", "off")
1112
runner.Run("split-window", "-h", "-t", sessionName+":0")
1213
runner.Run("split-window", "-v", "-t", sessionName+":0.1")
1314
runner.Run("send-keys", "-t", sessionName+":0.0", "nvim", "Enter")

cmd/wtree.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ func runWtree(sessionName string, n int, windowTitle string) error {
1717

1818
runner.Run("new-session", "-d", "-s", sessionName)
1919
runner.Run("rename-window", "-t", sessionName+":0", windowTitle)
20+
runner.Run("set-window-option", "-t", sessionName+":0", "automatic-rename", "off")
2021

2122
// Get the initial pane ID
2223
topID, _ := runner.Run("display-message", "-t", sessionName+":0.0", "-p", "#{pane_id}")

0 commit comments

Comments
 (0)