removed schema

This commit is contained in:
Jeremie Fraeys 2025-08-08 11:46:12 -04:00
parent c2d4d186fe
commit 60d1b38018
2 changed files with 1 additions and 80 deletions

View file

@ -21,7 +21,7 @@ end
function M.build_cmd(base)
local path, depth = base.path, base.max_depth
local fd_d, find_d = utils.depth_flags(depth)
local excl = utils.get_exclude_flags()
local excl = utils.get_exclude_flags() or {}
if State.is_windows then
return { "Get-ChildItem", "-Path", path, "-Directory", table.unpack(excl) }

View file

@ -1,79 +0,0 @@
local plugin = require("wezterm.plugin")
return plugin.with_schema({
name = "sessionizer",
description = "Project-based sessionizer plugin for WezTerm",
parameters = {
projects = {
description = "List of project base directories and their max depth.",
type = "array",
default = {},
example = {
{ path = "~/projects", max_depth = 3 },
{ path = "~/work", max_depth = 2 },
},
items = {
oneOf = {
{ type = "string" },
{
type = "object",
properties = {
path = {
description = "Path to the base directory.",
type = "string",
},
max_depth = {
description = "Maximum recursive search depth.",
type = "integer",
default = 3,
},
},
required = { "path" },
},
},
},
},
exclude_dirs = {
description = "Directory names to exclude from scanning.",
type = "array",
items = { type = "string" },
default = {
".git",
"node_modules",
".vscode",
".svn",
".hg",
".idea",
".DS_Store",
"__pycache__",
"target",
"build",
},
},
default_depth = {
description = "Default maximum depth for directory scanning.",
type = "integer",
default = 3,
},
key = {
description = "Key to trigger the session switcher (default: 'f')",
type = "string",
default = "f",
},
mods = {
description = "Modifier keys to trigger the switcher (default: 'LEADER')",
type = "string",
default = "LEADER",
},
add_to_launch_menu = {
description = "Whether to append scanned workspaces to the launch menu.",
type = "boolean",
default = false,
},
},
})