splits out configuration into central modules
This commit is contained in:
parent
58ffb417dd
commit
b44654b9a2
63 changed files with 20 additions and 20 deletions
|
|
@ -1,33 +0,0 @@
|
|||
local wezterm = require("wezterm")
|
||||
local helpers = require("helpers")
|
||||
|
||||
local M = {}
|
||||
|
||||
function M.choose()
|
||||
local choices = {}
|
||||
|
||||
for _, value in ipairs(helpers.project_dirs()) do
|
||||
table.insert(choices, { label = value })
|
||||
end
|
||||
|
||||
return wezterm.action.InputSelector({
|
||||
title = "Projects",
|
||||
choices = choices,
|
||||
fuzzy = true,
|
||||
action = wezterm.action_callback(function(child_window, child_pane, _, label)
|
||||
if not label then
|
||||
return
|
||||
end
|
||||
|
||||
child_window:perform_action(
|
||||
wezterm.action.SwitchToWorkspace({
|
||||
name = label:match("([^/]+)$"),
|
||||
spawn = { cwd = label },
|
||||
}),
|
||||
child_pane
|
||||
)
|
||||
end),
|
||||
})
|
||||
end
|
||||
|
||||
return M
|
||||
Loading…
Add table
Add a link
Reference in a new issue