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

main-pane-height of incorrect size #874

Open
Dmitry-N-Medvedev opened this issue May 12, 2023 · 2 comments
Open

main-pane-height of incorrect size #874

Dmitry-N-Medvedev opened this issue May 12, 2023 · 2 comments

Comments

@Dmitry-N-Medvedev
Copy link

Are you using the latest version of tmuxp? Check tmuxp -V against
https://pypi.org/project/tmuxp/. If it's not the latest, consider updating, e.g.
pip install --user tmuxp.

tmuxp 1.27.0, libtmux 0.21.0

Step 1: Provide a summary of your problem

for some reason, on version 1.27.0 I have to specify the main-pane-height in percentage for it to be of the size close to what I want. If I omit the percentage sign the size of the mane pane will be too small.

Step 2: Provide tmuxp details

  • Include output of tmuxp debug-info
  • Include any other pertinant system info not captured

Step 3: Describe the problem:

session_name: dev 
windows:
  - window_name: dev 
    focus: true
    layout: main-horizontal
    options:
      main-pane-height: 55%
    panes:
      - shell_command:
        -
      - shell_command:
        -
      - shell_command:
        -
@dodger-one
Copy link

Same problem here.
@Dmitry-N-Medvedev, your post had help me to workaround the problem because I was using "local" pane height and I got everything "broken".
I have uploaded this screenshot because since now I thought it was a problem with archlinux, as it worked fine on ubuntu.
Thanks.

@jianglibo
Copy link

jianglibo commented Jan 1, 2024

I got the main-layout only one line height.

the system information:
tmuxp 1.34.0, libtmux 0.25.0

debug-info:
$ tmuxp debug-info
-------------------------
environment:
        dist: Linux-5.15.0-1053-azure-x86_64-with-glibc2.29
        arch: x86_64
        uname: Linux; vm71427cb26; 5.15.0-1053-azure
        version: #61~20.04.1-Ubuntu SMP Tue Nov 21 17:50:57 UTC 2023
-------------------------
python version: 3.8.10 (default, Nov 22 2023, 10:22:35)  [GCC 9.4.0]
system PATH: /home/appuser00000015/.local/bin:/home/appuser00000015/.jbang/bin:/home/appuser00000015/.local/bin:/home/appuser00000015/.jbang/bin:/home/appuser00000015/.asdf/shims:/home/appuser00000015/.asdf/bin:/home/appuser00000015/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
tmux version: 3.3
libtmux version: 0.25.0
tmuxp version: 1.34.0
tmux path: /home/appuser00000015/.local/bin/tmux
tmuxp path: /home/appuser00000015/.local/lib/python3.8/site-packages/tmuxp
shell: /bin/bash
-------------------------
tmux sessions:
        rollup-dev: 3 windows (created Mon Jan  1 05:57:55 2024)



tmux windows:
        1: dev-window* (3 panes) [166x39] [layout 0fe6,166x39,0,0[166x1,0,0,1,166x37,0,2{82x37,0,2,2,83x37,83,2,3}]] @1 (active)
        2: live-server#- (1 panes) [800x600] [layout 87e1,800x600,0,0,4] @2
        3: misc# (1 panes) [800x600] [layout 87e2,800x600,0,0,5] @3



tmux panes:
        1: [166x1] [history 0/5000, 19232 bytes] %1
        2: [82x37] [history 182/5000, 88055 bytes] %2
        3: [83x37] [history 0/5000, 4726 bytes] %3 (active)



tmux global options:
        @uptime_d 3
        @uptime_dy 3
        @uptime_h 22
        @uptime_m 44
        @uptime_s 49
        @uptime_y 0
        activity-action other
        assume-paste-time 1
        base-index 1
        bell-action any
        default-command ''
        default-shell /bin/bash
        default-size 80x24
        destroy-unattached off
        detach-on-destroy on
        display-panes-active-colour #00afff
        display-panes-colour #00afff
        display-panes-time 800
        display-time 1000
        history-limit 5000
        key-table root
        lock-after-time 0
        lock-command "lock -np"
        message-command-style "fg=#ffff00,bg=#080808,bold"
        message-style "fg=#080808,bg=#ffff00,bold"
        mouse off
        prefix C-b
        prefix2 C-a
        renumber-windows on
        repeat-time 600
        set-titles on
        set-titles-string "#h ❐ #S ● #I #W"
        silence-action other
        status on
        status-bg default
        status-fg default
        status-format[0] "#[align=left range=left #{E:status-left-style}]#[push-default]#{T;=/#{status-left-length}:status-left}#[pop-default]#[norange default]#[list=on align=#{status-justify}]#[list=left-marker]<#[list=right-marker]>#[list=on]#{W:#[range=window|#{window_index} #{E:window-status-style}#{?#{&&:#{window_last_flag},#{!=:#{E:window-status-last-style},default}}, #{E:window-status-last-style},}#{?#{&&:#{window_bell_flag},#{!=:#{E:window-status-bell-style},default}}, #{E:window-status-bell-style},#{?#{&&:#{||:#{window_activity_flag},#{window_silence_flag}},#{!=:#{E:window-status-activity-style},default}}, #{E:window-status-activity-style},}}]#[push-default]#{T:window-status-format}#[pop-default]#[norange default]#{?window_end_flag,,#{window-status-separator}},#[range=window|#{window_index} list=focus #{?#{!=:#{E:window-status-current-style},default},#{E:window-status-current-style},#{E:window-status-style}}#{?#{&&:#{window_last_flag},#{!=:#{E:window-status-last-style},default}}, #{E:window-status-last-style},}#{?#{&&:#{window_bell_flag},#{!=:#{E:window-status-bell-style},default}}, #{E:window-status-bell-style},#{?#{&&:#{||:#{window_activity_flag},#{window_silence_flag}},#{!=:#{E:window-status-activity-style},default}}, #{E:window-status-activity-style},}}]#[push-default]#{T:window-status-current-format}#[pop-default]#[norange list=on default]#{?window_end_flag,,#{window-status-separator}}}#[nolist align=right range=right #{E:status-right-style}]#[push-default]#{T;=/#{status-right-length}:status-right}#[pop-default]#[norange default]"
        status-format[1] "#[align=centre]#{P:#{?pane_active,#[reverse],}#{pane_index}[#{pane_width}x#{pane_height}]#[default] }"
        status-interval 10
        status-justify left
        status-keys emacs
        status-left "#[fg=#080808,bg=#ffff00,bold] ❐ #S #[fg=#ffff00,bg=#ff00af,none]#[fg=#e4e4e4,bg=#ff00af,none] ↑#{?@uptime_y, #{@uptime_y}y,}#{?@uptime_dy, #{@uptime_dy}d,}#{?@uptime_h, #{@uptime_h}h,}#{?@uptime_m, #{@uptime_m}m,} #[fg=#ff00af,bg=#080808,none] "
        status-left-length 1000
        status-left-style "fg=#8a8a8a,bg=#080808,none"
        status-position bottom
        status-right "#[fg=#080808,bg=#080808,none]#[fg=#8a8a8a,bg=#080808,none] #[fg=none]#[bg=none]#[none]#{?client_prefix,⌨ ,  }#[fg=none]#[bg=none]#[none]#{?mouse,↗ ,  }#[fg=none]#[bg=none]#[none]#{?session_many_attached,⚇ ,}#[fg=none]#[bg=none]#[none]#{?pane_synchronized,⚏ ,}#{?battery_status,#{battery_status},}#{?battery_bar, #{battery_bar},}#{?battery_percentage, #{battery_percentage},} #[fg=#8a8a8a,bg=#080808,none]| %R #[fg=#8a8a8a,bg=#080808,none]| %d %b #[fg=#d70000,bg=#080808,none]#[fg=#e4e4e4,bg=#d70000,none] #(cut -c3- '/home/appuser00000015/.config/tmux/tmux.conf' | sh -s _username '#{pane_pid}' '#{b:pane_tty}' false '#D')#[fg=none]#[bg=none]#[bold,blink]#{?#{==:#(cut -c3- '/home/appuser00000015/.config/tmux/tmux.conf' | sh -s _username '#{pane_pid}' '#{b:pane_tty}' '#D'),root},!,}#[default]#[fg=#e4e4e4,bg=#d70000,none] #[fg=#e4e4e4,bg=#d70000,none]#[fg=#080808,bg=#e4e4e4,bold] #(cut -c3- '/home/appuser00000015/.config/tmux/tmux.conf' | sh -s _hostname '#{pane_pid}' '#{b:pane_tty}' false false '#h' '#D') "
        status-right-length 1000
        status-right-style "fg=#8a8a8a,bg=#080808,none"
        status-style "fg=#8a8a8a,bg=#080808,none"
        update-environment[0] DISPLAY
        update-environment[1] KRB5CCNAME
        update-environment[2] SSH_ASKPASS
        update-environment[3] SSH_AUTH_SOCK
        update-environment[4] SSH_AGENT_PID
        update-environment[5] SSH_CONNECTION
        update-environment[6] WINDOWID
        update-environment[7] XAUTHORITY
        visual-activity off
        visual-bell off
        visual-silence off
        word-separators "!\"#$%&'()*+,-./:;<=>?@[\\]^`{|}~"



tmux window options:
        cursor-colour none
        cursor-style default
        aggressive-resize off
        allow-passthrough off
        allow-rename off
        alternate-screen on
        automatic-rename on
        automatic-rename-format "#{?pane_in_mode,[tmux],#{pane_current_command}}#{?pane_dead,[dead],}"
        clock-mode-colour #00afff
        clock-mode-style 24
        copy-mode-match-style bg=cyan,fg=black
        copy-mode-current-match-style bg=magenta,fg=black
        copy-mode-mark-style bg=red,fg=black
        fill-character ''
        main-pane-height 24
        main-pane-width 80
        mode-keys emacs
        mode-style "fg=#080808,bg=#ffff00,bold"
        monitor-activity on
        monitor-bell on
        monitor-silence 0
        other-pane-height 0
        other-pane-width 0
        pane-active-border-style "fg=#{?pane_in_mode,#ffff00,#{?synchronize-panes,#d70000,#00afff}},bg=default"
        pane-base-index 1
        pane-border-format "#{?pane_active,#[reverse],}#{pane_index}#[default] \"#{pane_title}\""
        pane-border-indicators colour
        pane-border-lines single
        pane-border-status off
        pane-border-style "fg=#303030,bg=default"
        pane-colours
        popup-style default
        popup-border-style default
        popup-border-lines single
        remain-on-exit off
        remain-on-exit-format "Pane is dead (#{?#{!=:#{pane_dead_status},},status #{pane_dead_status},}#{?#{!=:#{pane_dead_signal},},signal #{pane_dead_signal},}, #{t:pane_dead_time})"
        scroll-on-clear on
        synchronize-panes off
        window-active-style default
        window-size latest
        window-style fg=default,bg=default
        window-status-activity-style fg=default,bg=default,underscore
        window-status-bell-style "fg=#ffff00,bg=default,blink,bold"
        window-status-current-format "#[fg=#080808,bg=#00afff,none]#[fg=#080808,bg=#00afff,bold] #I #W#{?#{||:#{window_bell_flag},#{window_zoomed_flag}}, ,}#{?window_bell_flag,!,}#{?window_zoomed_flag,Z,} #[fg=#00afff,bg=#080808]"
        window-status-current-style "fg=#080808,bg=#00afff,bold"
        window-status-format "#[fg=#080808,bg=#080808,none]#{?window_last_flag,#[bg=#303030],}#{?window_activity_flag,,}#{?window_bell_flag,,}#[fg=#8a8a8a,bg=#080808,none]#{?window_last_flag,#[fg=#00afff],}#{?window_last_flag,#[bg=#303030],}#{?window_activity_flag,,}#{?window_activity_flag,,}#{?window_bell_flag,#[fg=#ffff00],}#{?window_bell_flag,,}#{?window_last_flag,#{?window_activity_flag,#{?window_bell_flag, , },#{?window_bell_flag, , }},#{?window_activity_flag,#{?window_bell_flag,,},#{?window_bell_flag,,}}}#{?window_last_flag,#[none],}#{?window_last_flag,#[none],}#{?window_activity_flag,#[none],}#{?window_activity_flag,#[underscore],}#{?window_bell_flag,#[blink],}#{?window_bell_flag,#[bold],}#I #W#{?#{||:#{window_bell_flag},#{window_zoomed_flag}}, ,}#{?window_bell_flag,!,}#{?window_zoomed_flag,Z,}#[none]#{?window_last_flag,#{?window_activity_flag,#{?window_bell_flag, , },#{?window_bell_flag, , }},#{?window_activity_flag,#{?window_bell_flag,,},#{?window_bell_flag,,}}}#[fg=#080808,bg=#080808]#{?window_last_flag,#[fg=#303030],}#{?window_activity_flag,,}#{?window_bell_flag,,}"
        window-status-last-style "fg=#00afff,bg=#303030,none"
        window-status-separator " "
        window-status-style "fg=#8a8a8a,bg=#080808,none"
        wrap-search on
        xterm-keys on

live demo(xterm in browser).

the sesson.yaml

session_name: rollup-dev
windows:
  - window_name: dev-window
    # start_directory: ./test-rollup
    layout: main-horizontal
    shell_command_before:
      - cd ./test-rollup # run as a first command in all panes
    options:
      main-pane-height: 30
    panes:
      - shell_command:
        - nvim
      - shell_command:
        - yarn install
        - yarn run dev
      - shell_command:
        - ./__run_test.sh
  - window_name: live-server
    # start_directory: ./test-rollup
    panes:
      - shell_command:
        - cd ./test-rollup
        - ./__live-server.sh
  - window_name: misc
    panes:
      - pane

image

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

No branches or pull requests

3 participants