Skip to content

vieitesss/workspacesionizer.wezterm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Workspacesionizer.wezterm

Blazingly fast workspace chooser for WezTerm.

Like tmux-sessionizer, from ThePrimeagen, but for Wezterm workspaces.

demo

Important

Sorry for the name. :)

How to use

Inside your Wezterm configs:

  1. Load the plugin
local wpr = wezterm.plugin.require 'https://github.com/vieitesss/workspacesionizer.wezterm'
  1. 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",
    }
})

Default values

{
    paths = { "~" },
    git_repos = true,
    show = "full",
    binding = {
        key = "o",
        mods = "LEADER",
    },
}

About

Like "tmux-sessionizer", but for Wezterm workspaces

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published