-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Show [0] keybinding in main view title #4754
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
base: master
Are you sure you want to change the base?
Conversation
This is not a behavior change, we already include these in the menu, but that's because of a bug that we will fix in the next commit. I find it useful to see these commands, especially for rarely-used custom commands that you don't want to waste a keybinding on.
It previously returned "\x00", which is probably not intended, but happened to work.
I left this out originally because it's not needed for the status "dashboard" view (except on really tiny screens); however, it *is* useful after pressing `a` to show the all branches log, and even more so for people who use the "statusPanelView: allBranchesLog" config. And it doesn't really hurt for the dashboard view either, so just enable it always rather than making a distinction which view we are showing.
…n view title prefix We show it only if the "showPanelJumps" config is on, although the focus-main-view command is not technically part of the panel jump keys; but it looks similar.
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesFootnotes
|
keyToTitlePrefix := func(key string) string { | ||
if key == "<disabled>" { | ||
return "" | ||
} | ||
return fmt.Sprintf("[%s]", key) | ||
} |
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.
Fix display of panel jump keys for disabled bindings
- commit subject
hi!
this handles the corresponding in this section from config docs, right?
Lines 963 to 969 in 143d476
You can disable certain key bindings by specifying `<disabled>`. | |
```yaml | |
keybinding: | |
universal: | |
edit: <disabled> # disable 'edit file' | |
``` |
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.
Yes.
tab (or tabular space / tabulation) character is:
same goes for sentence-breaks in prose:
|
Show the
[0]
keybinding in the title of the main view, to make it more discoverable.Also, move it to the "global" section of the keybindings menu.
And several minor fixes and cleanups, see individual commits for details.
Fixes #4738.