-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
* Added support for listing configs and connecting via tmuxinator with -T flag * feat: improve tmuxinator features - Simplify module names - Change connection strategy to use mapping based of connect Src - Add icon support to tmuxinator entries - Changed the priority to list and connect to tmuxinator before zoxide * chore: update mockery * fix: tests and remove log --------- Co-authored-by: kadriandev <[email protected]>
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package connector | ||
|
||
import ( | ||
"github.com/joshmedeski/sesh/model" | ||
) | ||
|
||
func tmuxinatorStrategy(c *RealConnector, name string) (model.Connection, error) { | ||
session, exists := c.lister.FindTmuxinatorConfig(name) | ||
if !exists { | ||
return model.Connection{Found: false}, nil | ||
} | ||
|
||
return model.Connection{ | ||
Found: true, | ||
Session: session, | ||
New: true, | ||
AddToZoxide: false, | ||
}, nil | ||
} | ||
|
||
func connectToTmuxinator(c *RealConnector, connection model.Connection, opts model.ConnectOpts) (string, error) { | ||
return c.tmuxinator.Start(connection.Session.Name) | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.