1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

Support opening worktree in editor

This commit is contained in:
Jesse Duffield
2023-07-17 15:45:10 +10:00
parent 7b05dacb98
commit 3a7468ecac
6 changed files with 39 additions and 1 deletions

View File

@ -116,7 +116,7 @@ func (self *WorktreesController) enter(worktree *models.Worktree) error {
}
func (self *WorktreesController) open(worktree *models.Worktree) error {
return self.c.Helpers().Files.OpenFile(worktree.Path)
return self.c.Helpers().Files.OpenDirInEditor(worktree.Path)
}
func (self *WorktreesController) checkSelected(callback func(worktree *models.Worktree) error) func() error {