mirror of
				https://github.com/jesseduffield/lazygit.git
				synced 2025-10-25 05:37:37 +03:00 
			
		
		
		
	Add separate keybindings for confirmMenu and confirmSuggestion
It seems useful to have the flexibility to remap "enter" in confirmations to "y", but keep "enter" for menus and suggestions (even though we sometimes use menus as confirmations, but it's still good to give users the choice).
This commit is contained in:
		| @@ -38,7 +38,7 @@ func (self *MenuController) GetKeybindings(opts types.KeybindingsOpts) []*types. | ||||
| 			GetDisabledReason: self.require(self.singleItemSelected()), | ||||
| 		}, | ||||
| 		{ | ||||
| 			Key:               opts.GetKey(opts.Config.Universal.Confirm), | ||||
| 			Key:               opts.GetKey(opts.Config.Universal.ConfirmMenu), | ||||
| 			Handler:           self.withItem(self.press), | ||||
| 			GetDisabledReason: self.require(self.singleItemSelected()), | ||||
| 			Description:       self.c.Tr.Execute, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user