tldr
tldr copied to clipboard
question: inconsistencies in keyboard shortcut formatting
Hello, writing a new TLDR client I noticed inconsistencies in the way keyboard shortcuts are formatted.
I am willing to go through the tedious task of preparing a pull request unifying them but want to ask for your agreement on a common style first:
Using a Ctrl shortcut as example, different formats include the following and more:
CTRL + Kvs.Ctrl + K("CTRL" in caps or not?)CTRL + Kvs.CTRL-K(minus sign, no space)CTRL + Kvs.CTRL + k(lower case "k")CTRL + Kvs. CTRL + K (format as code or not?)- Exotics like
<CTRL-K>
The same goes for many other keyboard buttons such as Alt, Tab, Enter and so on.
Some examples of different styles in descriptions:
- common/batch (most used style)
- Execute commands from standard input (press
Ctrl + Dwhen finished):
- Execute commands from standard input (press
- osx/caffeinate (no code formatting, no space, minus sign):
- Prevent from sleeping until you type Ctrl-C:
- common/sl (no code formatting)
- Let the user exit (CTRL + C):
Some examples of different styles in commands:
- common/micro (most used style)
Ctrl + K
- common/most (angular brackets, minus sign, no space)
<CTRL-x> o
- common/vimdiff (notice the lower case "w")
Ctrl + w {{h|l|k|j}}
Proposal (aligned with currently most used styles):
- Use "Ctrl" instead of "CTRL"
- Use
Ctrlinstead of no code formatting (use code formatting) - Use
Ctrl + Kinstead of other formats (use plus sign, use spaces) - Use
Ctrl + X, Oinstead of<CTRL-x> o - Use
Ctrl + Xinstead ofCtrl + x(use upper case) - Use
Ctrl + A / Ctrl + Binstead ofCtrl + A/Ctrl + B(spaces around "/" look nicer - this is my personal opinion and currently NOT the most used form)
- Would you agree to some or all of these proposals?
- Would you be willing to accept a pull request unifying the styles?
Thank you, kind regards
Ben