-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Add easter egg #2338
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
Add easter egg #2338
Conversation
528c034 to
cd824d2
Compare
| } | ||
|
|
||
| return (binding.Description != "" || binding.Alternative != "") | ||
| return (binding.Description != "" || binding.Alternative != "") && binding.Key != nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if a keybinding has no key assigned, we don't want to include it in the cheatsheet
| { | ||
| ViewName: "files", | ||
| Description: "stage file", | ||
| Key: 'a', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the existing tests didn't specify a key so they all broke. Because I'm lazy I'm just using key 'a' everywhere to get the passing again
|
|
||
| // moves given context's view to the top of the window and returns | ||
| // true if the view was not already on top. | ||
| func (gui *Gui) moveToTopOfWindow(context types.Context) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
appeasing the linter because the returned boolean is never used
Adding a fun little easter egg.
I'm precommitting to not improving this easter egg at all; this was just a little holiday stint as a break from integration test migrations.
go run scripts/cheatsheet/main.go generate)docs/Config.md) have been updated if necessary