mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
style-guide: remove angle brackets so that it's clear that the instruction is talking about what happens inside angle brackets (#16041)
This commit is contained in:
parent
9e776ac836
commit
33c51618e1
1 changed files with 1 additions and 1 deletions
|
@ -495,7 +495,7 @@ To mark keypresses for TUI or GUI programs, use angle brackets `<` and `>`.
|
|||
- Special keys can be translated if they have culturally relevant translations.
|
||||
- When a program takes in uppercase character literals mark them as `<A>` instead of marking it with shift. Otherwise always mark characters in lowercase.
|
||||
- Mark simultaneous keypresses inside the same angle brackets separated by a single space: `<Ctrl c>`, `<Alt F4>`, `<Ctrl Shift k>`, `<Super Shift PrtSc>`.
|
||||
- When writing simultaneous keypresses, keep the following order: `<Ctrl>` -> `<Super>` / `<Windows>` -> `<Alt>` -> `<AltGr>` -> `<Shift>` -> everything else.
|
||||
- When writing simultaneous keypresses, keep the following order: `<Ctrl Super Windows Alt AltGr Shift everything_else>`.
|
||||
- Consecutive keypresses need to be contained in their own angle brackets with no space in between: `<Esc><u>`, `<Ctrl k><Ctrl s>`, `<Enter><~><.>`, `<d><o>`.
|
||||
- Keys that are typed into a prompt do not need to be marked as keypresses: `<:>help<Enter>`. Note that the context switching keypress is marked in angle brackets despite printing on the prompt.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue