Blazingly fast workspace chooser for WezTerm.
Like tmux-sessionizer, from ThePrimeagen, but for Wezterm workspaces.
Important
Sorry for the name. :)
Inside your Wezterm configs:
- Load the plugin
local wpr = wezterm.plugin.require 'https://github.com/vieitesss/workspacesionizer.wezterm'
- Apply the changes to your config using the
apply_to_config
function.
First argument is your own config, created with wezterm.config_builder()
Second argument is the plugin configuration with the following specification:
---@class W_options
---@field paths string[] The paths that contains the directories you want to switch into.
---@field git_repos boolean false if you do not want to include the git repositories from your HOME dir in the directories to switch into.
---@field show "base" | "full" Wether to show directories base or full name.
---@field binding W_options_binding
---@class W_options_binding
---@field key string The key to press.
---@field mods string The modifiers to use.
A full example:
wpr.apply_to_config(config, {
paths = { "~/personal", "~/.config", "~/dev" },
git_repos = false,
show = "base",
binding = {
key = "p",
mods = "CTRL",
}
})
{
paths = { "~" },
git_repos = true,
show = "full",
binding = {
key = "o",
mods = "LEADER",
},
}