Skip to content

Commit

Permalink
Allow entering a worktree by pressing enter
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseduffield committed Jul 30, 2023
1 parent ae66f72 commit bc4ce26
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/gui/controllers/worktrees_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ func (self *WorktreesController) GetKeybindings(opts types.KeybindingsOpts) []*t
Handler: self.checkSelected(self.enter),
Description: self.c.Tr.SwitchToWorktree,
},
{
Key: opts.GetKey(opts.Config.Universal.Confirm),
Handler: self.checkSelected(self.enter),
Description: self.c.Tr.SwitchToWorktree,
},
{
Key: opts.GetKey(opts.Config.Universal.OpenFile),
Handler: self.checkSelected(self.open),
Expand Down

0 comments on commit bc4ce26

Please sign in to comment.