diff --git a/plugin-dev-workspace.kdl b/plugin-dev-workspace.kdl index 7b250c5..7f754cb 100644 --- a/plugin-dev-workspace.kdl +++ b/plugin-dev-workspace.kdl @@ -7,9 +7,9 @@ layout { plugin location="file:target/wasm32-wasi/debug/zjstatus.wasm" { format_left "{mode}#[fg=#89B4FA,bg=#181825,bold] {session} {tabs}" format_center "{command_0} {command_1} {command_git_branch} {command_3}" - format_right "{notifications}{swap_layout}{datetime}" + format_right "{tabs}{notifications}{swap_layout}{datetime}" format_space "#[bg=#181825]" - format_precedence "lcr" + format_precedence "lrc" notification_format_unread "#[fg=#89B4FA,bg=#181825,blink]  #[fg=#89B4FA,bg=#181825] {message} " notification_format_no_notifications "#[fg=#89B4FA,bg=#181825,dim]  " diff --git a/src/config.rs b/src/config.rs index 2a8ca81..9aa88eb 100644 --- a/src/config.rs +++ b/src/config.rs @@ -197,6 +197,9 @@ impl ModuleConfig { ) }); + let (output_left, output_center, output_right) = + self.trim_output(&output_left, &output_center, &output_right, state.cols); + if !output_center.is_empty() { offset += console::measure_text_width(&self.get_spacer_left( &output_left,