feat: add sesh window command for tmux window management#345
Open
fenngwd wants to merge 5 commits intojoshmedeski:mainfrom
Open
feat: add sesh window command for tmux window management#345fenngwd wants to merge 5 commits intojoshmedeski:mainfrom
fenngwd wants to merge 5 commits intojoshmedeski:mainfrom
Conversation
提交内容由AI生成 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add ListWindows(targetSession string) to the Tmux interface and RealTmux implementation. Reuse existing separator variable from list.go to avoid naming conflict. Note: implementation file named list_tmux_win.go because Go treats filenames ending in _windows.go as Windows-only build constraints. Commit content generated by AI Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Commit content generated by AI Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
提交内容由AI生成 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
提交内容由AI生成 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #282
Adds a new
sesh window(aliasw) subcommand for listing and managing tmux windows within a session, mirroring the UX ofsesh listandsesh connect.Features
sesh window— list all windows in the current tmux session (one per line)sesh window <name>— switch to an existing window by namesesh window <path>— create a new window at the given directory (name = basename)--session / -sflag to target a session other than the current one--json / -jflag reserved for JSON output in list modeImplementation
model/tmux_window.go— newTmuxWindowdata type (Name, Path, Index, Active)tmux/list_tmux_win.go+ tests —ListWindows(targetSession string)usingtmux list-windowstmux/select_win.go+ tests —SelectWindow(name string)usingtmux select-windowseshcli/window.go— cobra command wired to the aboveseshcli/root_command.go— registered in root commandTesting
Unit tests follow the same mock-based pattern as the existing
tmuxpackage tests. All 14 packages pass.