Closed benzwt closed 6 months ago
Describe the bug While adding tabs, the render of CommandWidge is laggy.
To Reproduce Steps to reproduce the behavior:
command_hostname_command "hostname" command_hostname_format "{stdout}" command_hostname_interval "1" command_hostname_rendermode "raw"
Expected behavior CommandWidget should show no lag.
video laggy_commandWidget.webm
Desktop (please complete the following information):
Layout
layout { pane split_direction="vertical" { pane } pane size=1 borderless=true { plugin location="file:/home/benzene/.config/zellij/plugins/zjstatus.wasm" { //format_left "{mode}#[fg=black,bg=blue,bold]{session} #[fg=blue,bg=#181825]{tabs}" format_left "{mode}#[fg=blue,bg=#181825]{tabs}" //format_right "#[fg=#181825,bg=#b1bbfa] {command_test} {datetime}" format_right "{command_hostname}#[fg=#9c86bf,bg=#DCD7BA]{datetime}" format_space "#[bg=#181825]" hide_frame_for_single_pane "true" mode_normal "#[fg=#cccccc,bg=blue,bold] normal " mode_locked "#[fg=#cccccc,bg=#red,bold] locked " mode_resize "#[fg=#cccccc,bg=blue,bold] resize " mode_pane "#[fg=#cccccc,bg=blue,bold] panel " mode_tab "#[fg=#cccccc,bg=blue,bold] tab " mode_scroll "#[fg=#cccccc,bg=blue,bold] scroll " mode_enter_search "#[fg=#cccccc,bg=blue,bold] ent_s " mode_search "#[fg=#cccccc,bg=blue,bold] search " mode_rename_tab "#[fg=#cccccc,bg=blue,bold] rena_t " mode_rename_pane "#[fg=#cccccc,bg=blue,bold] rena_p " mode_session "#[fg=#cccccc,bg=blue,bold] sess " mode_move "#[fg=#cccccc,bg=blue,bold] move " mode_prompt "#[fg=#cccccc,bg=blue,bold] prompt " mode_tmux "#[fg=#cccccc,bg=#red,bold] tmux " //tab_normal "#[fg=#181825,bg=#4C4C59] #[fg=#000000,bg=#4C4C59]{index} {name} #[fg=#4C4C59,bg=#181825]" tab_normal "#[fg=#181825,bg=#4C4C59] #[fg=#000000,bg=#4C4C59]{index} {name} #[fg=#4C4C59,bg=#181825]" //tab_normal "#[fg=#181825,bg=#4C4C59] {index} #[fg=#4C4C59,bg=#181825]" tab_normal_fullscreen "#[fg=#6C7086,bg=#181825] {index} {name} [] " tab_normal_sync "#[fg=#6C7086,bg=#181825] {index} {name} <> " tab_active "#[fg=#181825,bg=#ffffff,bold,italic]{index} {name} #[fg=#ffffff,bg=#181825]" //tab_active "#[fg=#181825,bg=#ffffff,bold,italic] {index} {name} #[fg=#ffffff,bg=#181825]" tab_active_fullscreen "#[fg=#9399B2,bg=#181825,bold,italic] {index} {name} [] " tab_active_sync "#[fg=#9399B2,bg=#181825,bold,italic] {index} {name} <> " command_hostname_command "hostname" command_hostname_format "{stdout}" command_hostname_interval "1" command_hostname_rendermode "raw" datetime "#[fg=#000000,bg=#DCD7BA,nobold]{format}" //datetime_format "%A,%d/%m %H:%M" datetime_format "%d/%m %H:%M" datetime_timezone "Asia/Taipei" } } }
Additional context Add any other context about the problem here.
Hey @benzwt ,
thanks for your bug report. I fixed it in v0.11.2
Describe the bug While adding tabs, the render of CommandWidge is laggy.
To Reproduce Steps to reproduce the behavior:
Expected behavior CommandWidget should show no lag.
video laggy_commandWidget.webm![laggy_commandWidget](https://github.com/dj95/zjstatus/assets/1032178/af6e36d5-b799-4c38-85d1-0d113b1cdab7)
Desktop (please complete the following information):
Layout
Additional context Add any other context about the problem here.