|
|
|
@ -33,16 +33,22 @@ local function newDevelopmentSession(path_and_title)
|
|
|
|
|
local src_tab, src_pane, dev_window = dev_window:spawn_tab({
|
|
|
|
|
cwd = sites_dir .. path_and_title,
|
|
|
|
|
})
|
|
|
|
|
local git_tab, git_pane, dev_window = dev_window:spawn_tab({
|
|
|
|
|
cwd = sites_dir .. path_and_title,
|
|
|
|
|
})
|
|
|
|
|
dev_tab:set_title('zsh')
|
|
|
|
|
dev_pane:send_text('v package.json\n')
|
|
|
|
|
devgit_pane = dev_pane:split({
|
|
|
|
|
devcli_pane = dev_pane:split({
|
|
|
|
|
workspace = path_and_title,
|
|
|
|
|
direction = 'Right',
|
|
|
|
|
cwd = sites_dir .. path_and_title .. '/src',
|
|
|
|
|
cwd = sites_dir .. path_and_title,
|
|
|
|
|
})
|
|
|
|
|
devgit_pane:send_text('ggpl && gs\n')
|
|
|
|
|
devcli_pane:send_text('ggpl && gs\n')
|
|
|
|
|
src_tab:set_title('src')
|
|
|
|
|
src_pane:send_text('cd src && v\n:Telescope find_files\n')
|
|
|
|
|
git_tab:set_title('git')
|
|
|
|
|
git_pane:send_text('lg\n')
|
|
|
|
|
dev_tab:activate()
|
|
|
|
|
|
|
|
|
|
mux.set_active_workspace(path_and_title)
|
|
|
|
|
end
|
|
|
|
@ -181,7 +187,6 @@ wezterm.on('gui-startup', function()
|
|
|
|
|
tab:activate()
|
|
|
|
|
|
|
|
|
|
-- initialize some sessions for MRU projects and folders
|
|
|
|
|
newDevelopmentSession('dev')
|
|
|
|
|
newDevelopmentSession('ag/core')
|
|
|
|
|
newDevelopmentSession('ag/web')
|
|
|
|
|
newDevelopmentSession('ag/sp')
|
|
|
|
|