Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow null in keybindings #2222

Merged
merged 3 commits into from
Oct 25, 2022

Conversation

Ryooooooga
Copy link
Contributor

@Ryooooooga Ryooooooga commented Oct 15, 2022

  • PR Description

solves: #2159

ref: #2161

requires: jesseduffield/gocui#23

  • Please check if the PR fulfills these requirements
  • Cheatsheets are up-to-date (run go run scripts/cheatsheet/main.go generate)
  • Code has been formatted (see here)
  • Tests have been added/updated (see here for the integration test guide)
  • Text is internationalised (see here)
  • Docs (specifically docs/Config.md) have been updated if necessary
  • You've read through your own file changes for silly mistakes etc

@jesseduffield
Copy link
Owner

I've added a comment on your gocui PR @Ryooooooga .

@Ryooooooga Ryooooooga marked this pull request as ready for review October 16, 2022 07:19
Copy link
Owner

@jesseduffield jesseduffield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one thing :)

@@ -435,6 +435,8 @@ gui:

For all possible keybinding options, check [Custom_Keybindings.md](https://github.com/jesseduffield/lazygit/blob/master/docs/keybindings/Custom_Keybindings.md)

You can disable certain key bindings by specifying `null`.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add an example here to be more obvious i.e.:

keybinding:
  universal:
    edit: null

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also should this be the null keyword or the string 'null'?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added.

also should this be the null keyword or the string 'null'?

I don't think it is necessary to accept the string 'null' since null keyword is clear enough in intent.

@jesseduffield jesseduffield merged commit b0f7cf0 into jesseduffield:master Oct 25, 2022
@jesseduffield
Copy link
Owner

Nice work @Ryooooooga !

@Ryooooooga Ryooooooga deleted the disable-keybindings branch October 25, 2022 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants