Skip to content

Commit

Permalink
Merge pull request #16 from ShaunThayil/split-window-change-flag
Browse files Browse the repository at this point in the history
use -l to specify the split percentage
  • Loading branch information
pallavJha authored Mar 24, 2024
2 parents c3dda87 + 612712f commit aed264c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tmux_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,14 +300,14 @@ func (t *TmuxWrapper) newWindow(sessionName, windowName string) (*TmuxCmdRespons
}

func (t *TmuxWrapper) newPane(targetPaneID string, sizeInPercentage int, horizontalSplit bool) (*TmuxCmdResponse, error) {
// tmux splitw -h -p 10 -t 0 -P -F "#{pane_id}"
// tmux splitw -h -l 10% -t 0 -P -F "#{pane_id}"
// %10

var args = []string{
"splitw",
"-h",
"-p",
strconv.Itoa(sizeInPercentage),
"-l",
strconv.Itoa(sizeInPercentage) + "%",
"-t",
targetPaneID,
"-P",
Expand Down

0 comments on commit aed264c

Please sign in to comment.