From 60d1b380189a4097ec43c26f64e07e1c229b63f0 Mon Sep 17 00:00:00 2001 From: Jeremie Fraeys Date: Fri, 8 Aug 2025 11:46:12 -0400 Subject: [PATCH] removed schema --- command_builder.lua | 2 +- schema_builder.lua | 79 --------------------------------------------- 2 files changed, 1 insertion(+), 80 deletions(-) delete mode 100644 schema_builder.lua diff --git a/command_builder.lua b/command_builder.lua index 6208721..5423142 100644 --- a/command_builder.lua +++ b/command_builder.lua @@ -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) } diff --git a/schema_builder.lua b/schema_builder.lua deleted file mode 100644 index 763a58f..0000000 --- a/schema_builder.lua +++ /dev/null @@ -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, - }, - }, -})