Compare commits

..

4 Commits
v0.0.7 ... main

Author SHA1 Message Date
Raj 11794e59a2
Update README.md 2024-01-17 22:44:55 +05:30
/raj 0a8342592c
Update README.md 2024-01-17 22:42:12 +05:30
Raj Sharma c2bf3fb9cb fix: setup working dir properly 2024-01-17 21:23:03 +05:30
raj b3bf15bc29 updated colors 2023-10-26 19:50:15 +05:30
4 changed files with 8 additions and 3 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

View File

@ -11,7 +11,7 @@ Creating tmux sessions with preconfigured panes layouts and commands. inspired f
#### Installation #### Installation
```bash ```bash
go install github.com/xrehpicx/pee@latest go install github.com/xrehpicx/pee.git@latest
``` ```
#### Initialize a project #### Initialize a project

View File

@ -26,7 +26,8 @@ func CreateTmuxSession(config *projectconfig.Configuration) error {
log.Debug("Ran command", "command", switchSessionCmd.String()) log.Debug("Ran command", "command", switchSessionCmd.String())
} else { } else {
// If it doesn't exist, create the session // If it doesn't exist, create the session
createSessionCmd := exec.Command("tmux", "new-session", "-d", "-s", sessionName) createSessionCmd := exec.Command("tmux", "new-session", "-d", "-s", sessionName, "-c", config.WorkingDir)
// createSessionCmd := exec.Command("tmux", "new-session", "-d", "-s", sessionName)
if err := createSessionCmd.Run(); err != nil { if err := createSessionCmd.Run(); err != nil {
return err return err
} }

View File

@ -92,15 +92,19 @@ func Table(columns []table.Column, rows []table.Row) (table.Row, string) {
) )
s := table.DefaultStyles() s := table.DefaultStyles()
// rounded borders
s.Header = s.Header. s.Header = s.Header.
BorderStyle(lipgloss.NormalBorder()). BorderStyle(lipgloss.NormalBorder()).
BorderForeground(lipgloss.Color("240")). BorderForeground(lipgloss.Color("240")).
BorderBottom(true). BorderBottom(true).
Bold(false) Bold(false)
s.Selected = s.Selected. s.Selected = s.Selected.
Foreground(lipgloss.Color("229")). Foreground(lipgloss.Color("229")).
Background(lipgloss.Color("57")). Background(lipgloss.Color("240")).
Bold(false) Bold(false)
t.SetStyles(s) t.SetStyles(s)
m := model{t, "", help.New(), keys} m := model{t, "", help.New(), keys}