mirror of
https://github.com/d99kris/nmail.git
synced 2026-04-26 17:56:00 +03:00
[GH-ISSUE #43] [Bug] Wrong keybinding label in the help bar for KEY_LEFT and KEY_RIGHT #40
Labels
No labels
bug
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nmail#40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Kabouik on GitHub (May 25, 2020).
Original GitHub issue: https://github.com/d99kris/nmail/issues/43
Originally assigned to: @d99kris on GitHub.
When changing the keys for
key_openandkey_backtoKEY_RIGHTandKEY_LEFT, the bottom help bar shows^Eand^Drespectively instead of the actual new keybindings.@d99kris commented on GitHub (May 25, 2020):
Yes, nmail is currently missing mapping of some non-printable keyboard shortcuts to proper names.
For keypad arrows we can perhaps use: ← → ↑ ↓
Function keys can be: F1-F9 (+ 10-19?)
Need to think about suitable names / symbols for others, like:
tab, space, enter, delete, home, end, page up/down, clear, escape.
@Kabouik commented on GitHub (May 26, 2020):
How many characters would you allow in keybinding labels at maximum?
I think the following names/abbreviations are standard, or at least straightforward enough to be understood, but some may be a tad long for a help bar:
Tab,Space,Enter,Del,Home,End,PgUp,PgDn,Esc@d99kris commented on GitHub (May 30, 2020):
TLDR: I'll fix the bug for KEY_LEFT and KEY_RIGHT first, and remaining issues under #9.
I forgot to mention, but this is an interesting issue. Originally I wanted to follow the
pine/alpineUI, which allows both</>and←/→to navigate between the screens (the helpbar only shows</>though). But when #9 was reported I realized I had missed it out, and was hesitant to add the mapping unless it could be configured. And my current design only allows one key user-configured per function, so it got put on hold for a while. Anyway, that's a side-note. And I am planning to address this as part of #9 eventually.To not get stuck on this issue for too long I am planning to just implement a fix for the problem (key left/right). I will address other keys as part of #9 - unless there's some request coming in before that.
Regarding your question:
I would prefer 1-2 characters - the UI looks more balanced when the keybinding labels are of similar length. But.. As long as the default UI looks fine, it's not the end of the world to allow longer labels for "uncommon" configs.
Thanks for the suggestions, they look pretty good to me!
One thing to note though - for several of these keys, they are already assigned an implicit non-configurable function (at this point... after #9 this will probably change), like
Space,Enter,Del,Home,End,PgUp,PgDn. And these keys are currently not shown in the helpbar (as they follow fairly common UI behavior).@Kabouik commented on GitHub (May 30, 2020):
Interesting, thanks for the clarification.