lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

Could not change default lowercase p "pull" to null

Open MichaelC001 opened this issue 2 years ago • 2 comments

M1 mac os Enter lazygit status pane, and press "o" to open config.yaml

Paste default keybindings into this file (https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md#default)) Then I could change "universal:Pushfiles"(default is P) to any key I want.

But I can not change the lowercase "p" key in lazygit Commits pane, either setting "universal:pullFiles" to null or changing it to another key, will not change the "p" behavior in the lazygit Commits pane

MichaelC001 avatar Jun 23 '23 02:06 MichaelC001

That was explicitly done so (code):

	// at this point we aren't actually rebasing so we will interpret this as an
	// attempt to pull. We might revoke this later after enabling configurable keybindings
	return self.pullFiles()

But I have no idea which keybindings were that meant to be, hopefully @jesseduffield can shed some light upon it.

mark2185 avatar Jun 23 '23 05:06 mark2185

Setting the following config:

keybinding:
  universal:
    pushFiles: 'p'
    pullFiles: 'P'

Causes both P and p to pull when in the commits pane.

erichlf avatar Sep 12 '24 13:09 erichlf