mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
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.
This commit is contained in:
parent
6303c64232
commit
ea7050437d
|
|
@ -52,7 +52,7 @@ func (self *WorktreesController) GetKeybindings(opts types.KeybindingsOpts) []*t
|
|||
DisplayOnScreen: true,
|
||||
},
|
||||
{
|
||||
Key: opts.GetKey(opts.Config.Universal.Confirm),
|
||||
Key: opts.GetKey(opts.Config.Universal.GoInto),
|
||||
Handler: self.withItem(self.enter),
|
||||
GetDisabledReason: self.require(self.singleItemSelected()),
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue