Skip to content

feat: restore focus to remaining pane when terminal-in-editor is killed#135

Merged
j4rviscmd merged 3 commits into
mainfrom
feat/terminal-kill-focus
May 22, 2026
Merged

feat: restore focus to remaining pane when terminal-in-editor is killed#135
j4rviscmd merged 3 commits into
mainfrom
feat/terminal-kill-focus

Conversation

@j4rviscmd
Copy link
Copy Markdown
Owner

Summary

When a terminal-in-editor is killed (e.g. via ctrl+d), the empty editor group is now automatically closed and focus returns to the remaining pane. This provides tmux-like pane behavior.

Changes

  • Add terminalKillFocusRestore.ts contribution in contrib/coderm/
  • Register coderm.terminal.closeEmptyPaneOnKill setting (default: true)
  • Listen for onDidCloseEditor events on TerminalEditorInput and remove empty groups

Setting

Key Default Description
coderm.terminal.closeEmptyPaneOnKill true Auto-close empty pane and restore focus when terminal is killed

This works independently of the general workbench.editor.closeEmptyGroups setting.

Closes #22

j4rviscmd added 3 commits May 22, 2026 22:46
Add coderm.terminal.closeEmptyPaneOnKill setting (default: true) that
automatically closes the empty editor group and returns focus to the
adjacent pane when a terminal-in-editor process exits (e.g. ctrl+d).
This provides tmux-like pane behavior independent of the general
closeEmptyGroups setting.

Closes #22
@j4rviscmd j4rviscmd merged commit c6fe71b into main May 22, 2026
2 checks passed
@j4rviscmd j4rviscmd deleted the feat/terminal-kill-focus branch May 22, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ctrl+dでterminal in editorをkillしたら、フォーカスを残存paneに戻す

1 participant