A Python Markdown extension for keyboard shortcuts
Project description
Introduction
The toro-shortcut converts your keyboard shortcut into a customized tag. The tag will contain three attributes; linux, macos, and windows. The values in the attributes will be the keyboard shortcut using the symbols of the corresponding OS.
Installation
pip install toro-shortcuts
Usage
The markdown syntax will be the keyboard shortcut between two questions marks. A plus sign will be used to separate the keys. MOD will be used as a generic symbol for both the ctrl and command key.
??MOD+A??
The produced HTML of the markdown syntax will be:
<p><kbd linux="Ctrl + A" macos="⌘A" winodws="Ctrl + A"></kbd></p>
Conversion
Markdown | Windows/Linux | macOS |
---|---|---|
??mod?? | Ctrl | ⌘ |
??alt?? | Alt | ⌥ |
??enter?? | Enter | ↩ |
??shift?? | Shift | ⇧ |
??ctrl?? | Ctrl | ⌃ |
??left?? | Left | ← |
??right?? | Right | → |
??up?? | Up | ↑ |
??down?? | Down | ↓ |
??tab?? | Tab | ⇥ |
??esc?? | Esc | ⎋ |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
toro-shortcuts-1.3.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for toro_shortcuts-1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e312719b1824d457c5b6630be0d9727a47d3b3b3aaba499b62baba5ad933ac34 |
|
MD5 | a974f44620603294afdbca4ffab984f4 |
|
BLAKE2b-256 | 96f61aa71fadd5b4bcda65d555594900f12a41378ef1c4896351f284ac8beaab |