Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attempt at fixing #309 layout issues with tmux 2.6 #312

Merged
merged 2 commits into from Nov 10, 2017

Commits on Nov 9, 2017

  1. attempt at fixing #309 layout issues with tmux 2.6

    even after setting -x and -y with new-session, select-layout won't take
    effect. However, it is necessary in 2.6 to get pane creation in detached
    mode to work.
    
    the only way found for tmux select-layout to take effect and prior
    behavior to have viewed the window you are running "select-layout"
    for in the client.
    
    a solution has been devised to connect the client to the session, then
    run select-layout on each window in the session. However, it's still not
    enough to load the session, it seems the window must be selected by the client
    at least once for the select-layout to take effect.
    
    so a hook against the session is created for the session that selects each
    window, runs select layout at the -t target for the window id. and after
    that, the hook is neatly unset when that's finished.
    tony committed Nov 9, 2017
    Copy the full SHA
    1624abe View commit details
    Browse the repository at this point in the history
  2. Remove -t from selectl in hook

    Per the feedback from:
    
    - #309 (comment)
    - #312 (comment)
    
    and verified by me with:
    
    - #309 (comment)
    
    main-pane-width/height wasn't being respected when using targets with
    selectl.
    tony committed Nov 9, 2017
    Copy the full SHA
    6e08e03 View commit details
    Browse the repository at this point in the history