@@ -101,7 +101,6 @@ wez.on("format-tab-title", function(tab, _, _, conf, _, _)
101101 }
102102end )
103103
104- -- Name of workspace
105104wez .on (" update-status" , function (window , pane )
106105 local present , conf = pcall (window .effective_config , window )
107106 if not present then
@@ -115,8 +114,10 @@ wez.on("update-status", function(window, pane)
115114 { Background = { Color = palette .tab_bar .background } },
116115 }
117116
117+ table.insert (left_cells , { Text = string.rep (" " , options .padding .left ) })
118+
118119 if options .modules .workspace .enabled then
119- local stat = " " .. options .modules .workspace .icon .. " " .. window :active_workspace () .. " "
120+ local stat = options .modules .workspace .icon .. utilities . _space ( window :active_workspace (), options . separator . space )
120121 local stat_fg = palette .ansi [options .modules .workspace .color ]
121122
122123 if options .modules .leader .enabled and window :leader_is_active () then
@@ -134,7 +135,10 @@ wez.on("update-status", function(window, pane)
134135 goto set_left_status
135136 end
136137 table.insert (left_cells , { Foreground = { Color = palette .ansi [options .modules .pane .color ] } })
137- table.insert (left_cells , { Text = options .modules .pane .icon .. " " .. utilities ._basename (process ) .. " " })
138+ table.insert (
139+ left_cells ,
140+ { Text = options .modules .pane .icon .. utilities ._space (utilities ._basename (process ), options .separator .space ) }
141+ )
138142 end
139143
140144 :: set_left_status::
@@ -191,12 +195,15 @@ wez.on("update-status", function(window, pane)
191195 table.insert (right_cells , { Foreground = { Color = palette .brights [1 ] } })
192196 table.insert (right_cells , {
193197 Text = utilities ._space (options .separator .right_icon , options .separator .space , nil )
194- .. options .modules [name ].icon
195- .. utilities ._space (options .separator .field_icon , options .separator .space , nil ),
198+ .. options .modules [name ].icon ,
196199 })
200+ table.insert (right_cells , { Text = utilities ._space (options .separator .field_icon , options .separator .space , nil ) })
197201 end
198202 :: continue::
199203 end
204+ -- remove trailing separator
205+ table.remove (right_cells , # right_cells )
206+ table.insert (right_cells , { Text = string.rep (" " , options .padding .right ) })
200207
201208 window :set_right_status (wez .format (right_cells ))
202209end )
0 commit comments