We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e69657 commit d44f0acCopy full SHA for d44f0ac
README.md
@@ -86,6 +86,15 @@ Adding the path as a part of the right-status can be done with the `smart_worksp
86
}))
87
end)
88
```
89
+
90
+#### Callbacks when switching workspace
91
+Use the `smart_workspace_switcher.workspace_chosen` event which is emitted when choosing the workspace to add a callback function.
92
+ ```lua
93
+ wezterm.on("smart_workspace_switcher.workspace_chosen", function(window, path)
94
+ wezterm.log_info("THIS IS EMITTED FROM THE CALLBACK")
95
+ end)
96
+ ```
97
98
#### Workspace formatter
99
Set a custom workspace formatter, see [Wezterm formatting docs](https://wezfurlong.org/wezterm/config/lua/wezterm/format.html)
100
0 commit comments