Skip to content

Commit ea70504

Browse files
committed
Fix <enter> keybinding for switching to a worktree
The universal.confirm keybinding is the wrong one to use for this, we want universal.goInto instead. They are both bound to "enter" by default, but when remapping confirm to "y" we don't want to use that for entering worktrees.
1 parent 6303c64 commit ea70504

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/gui/controllers/worktrees_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func (self *WorktreesController) GetKeybindings(opts types.KeybindingsOpts) []*t
5252
DisplayOnScreen: true,
5353
},
5454
{
55-
Key: opts.GetKey(opts.Config.Universal.Confirm),
55+
Key: opts.GetKey(opts.Config.Universal.GoInto),
5656
Handler: self.withItem(self.enter),
5757
GetDisabledReason: self.require(self.singleItemSelected()),
5858
},

0 commit comments

Comments
 (0)