mirror of https://github.com/xrehpicx/pee.git
fix: removed configs
some configs from tmuxinator not yet supported so will remove them for now until we can support it
This commit is contained in:
parent
5d19efea47
commit
ba3420bc91
|
@ -30,13 +30,6 @@ type Configuration struct {
|
||||||
LastOpened time.Time
|
LastOpened time.Time
|
||||||
Attach bool `yaml:"attach"`
|
Attach bool `yaml:"attach"`
|
||||||
StartupWindow string `yaml:"startup_window"`
|
StartupWindow string `yaml:"startup_window"`
|
||||||
StartupPane int `yaml:"startup_pane"`
|
|
||||||
OnProjectStart string `yaml:"on_project_start"`
|
|
||||||
OnProjectFirstStart string `yaml:"on_project_first_start"`
|
|
||||||
OnProjectRestart string `yaml:"on_project_restart"`
|
|
||||||
OnProjectExit string `yaml:"on_project_exit"`
|
|
||||||
OnProjectStop string `yaml:"on_project_stop"`
|
|
||||||
SocketName string `yaml:"socket_name"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var configDir string
|
var configDir string
|
||||||
|
|
|
@ -98,7 +98,12 @@ func CreateTmuxSession(config *projectconfig.Configuration) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Select the initial window and switch to the session
|
// Select the initial window and switch to the session
|
||||||
selectWindowCmd := exec.Command("tmux", "select-window", "-t", sessionName+":1")
|
defaultWindow := sessionName + ":1"
|
||||||
|
if config.StartupWindow != "" {
|
||||||
|
defaultWindow = config.StartupWindow
|
||||||
|
}
|
||||||
|
|
||||||
|
selectWindowCmd := exec.Command("tmux", "select-window", "-t", defaultWindow)
|
||||||
if err := selectWindowCmd.Run(); err != nil {
|
if err := selectWindowCmd.Run(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue