feat(tmux): make exec pane split-window args configurable#161
Open
karto wants to merge 2 commits intoalvinunreal:mainfrom
Open
feat(tmux): make exec pane split-window args configurable#161karto wants to merge 2 commits intoalvinunreal:mainfrom
karto wants to merge 2 commits intoalvinunreal:mainfrom
Conversation
Owner
|
@greptile-app |
Greptile SummaryThis PR makes the Key changes:
Two concerns worth addressing in
Confidence Score: 3/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant U as User Config (YAML)
participant C as config.DefaultConfig()
participant M as Manager.InitExecPane()
participant T as system.TmuxCreateNewPane()
participant B as buildSplitWindowArgs()
participant TM as tmux process
U-->>C: exec_split_args (or omitted)
C->>M: Config.Tmux.ExecSplitArgs (default: ["-d","-h"])
M->>T: TmuxCreateNewPane(paneId, splitArgs)
T->>B: buildSplitWindowArgs(target, splitArgs)
B-->>B: fallback to ["-d","-h"] if len==0
B-->>T: ["split-window", ...splitArgs, "-t", target, "-P", "-F", "#{pane_id}"]
T->>TM: exec.Command("tmux", args...)
TM-->>T: new pane ID on stdout
T-->>M: paneId (or error, silently discarded)
Last reviewed commit: 806eb42 |
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Owner
|
Looks good, just small issues reported by greptile |
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.
I got tired of the chat window always being half the screen, so i extracted the exec split-window args into the config file. Here are the results. Use them if you like.