(config: FormatConfig)
| 188 | } |
| 189 | |
| 190 | function formatOptions(config: FormatConfig) { |
| 191 | return { |
| 192 | tokenDisplay: { |
| 193 | [LEADER_TOKEN]: leaderDisplay(config), |
| 194 | }, |
| 195 | keyNameAliases: { |
| 196 | pageup: "pgup", |
| 197 | pagedown: "pgdn", |
| 198 | delete: "del", |
| 199 | }, |
| 200 | modifierAliases: { |
| 201 | meta: "alt", |
| 202 | }, |
| 203 | } as const |
| 204 | } |
| 205 | |
| 206 | export function formatKeySequence(parts: Parameters<typeof formatKeySequenceExtra>[0], config: FormatConfig) { |
| 207 | return formatKeySequenceExtra(parts, formatOptions(config)) |
no test coverage detected