MLFlexer / smart_workspace_switcher.wezterm

A smart wezterm workspace switcher plugin inspired by joshmedeski/t-smart-tmux-session-manager
MIT License
70 stars 5 forks source link

Workspace Switcher not showing up because of error #33

Closed michaelbrusegard closed 2 months ago

michaelbrusegard commented 2 months ago

I get this error when calling workspace_switcher.switch_workspace(). I did not get the error before. The workspace switcher does not show up

10:45:22.349 ERROR wezterm_gui::termwindow > while processing user-defined-24 event: bad argument #1: error converting Lua table to termwiz_funcs::FormatItem (Expected a valid `FormatColor` variant name as single key in object, but there are 0 keys)
stack traceback:
        [C]: in function 'wezterm.format'
        ...haelbrusegard/.config/wezterm/lua/plugins/workspaces.lua:9: in function 'httpssCssZssZsgithubsDscomsZsMLFlexersZssmart_workspace_switchersDswezterm.workspace_formatter'
        ...xersZssmart_workspace_switchersDswezterm/plugin/init.lua:51: in field 'get_workspace_elements'
        ...xersZssmart_workspace_switchersDswezterm/plugin/init.lua:89: in function 'httpssCssZssZsgithubsDscomsZsMLFlexersZssmart_workspace_switchersDswezterm.get_choices'
        ...xersZssmart_workspace_switchersDswezterm/plugin/init.lua:168: in function <...xersZssmart_workspace_switchersDswezterm/plugin/init.lua:166>
michaelbrusegard commented 2 months ago

This was just me being stupid, and forgetting to update the formatter attributes in my config. Please disregard