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-shortcut
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><kdb linux="Ctrl+A" macos="⌘A" winodws="Ctrl+A"></kdb></p>
Conversion
Markdown | Windows/Linux | macOS |
---|---|---|
??mod?? | Ctrl | ⌘ |
??alt?? | Alt | ⌥ |
??enter?? | Enter | ↩ |
??shift?? | Shift | ⇧ |
??ctrl?? | Ctrl | ⌃ |
??left arrow?? | Left arrow | ← |
??right arrow?? | Right arrow | → |
??up arrow?? | Up arrow | ↑ |
??down arrow?? | Down arrow | ↓ |
??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.0.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for toro_shortcuts-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4446c88610d736d9d013d78d1c255c18d84dd743e4c78ce976fbef8ca2a26d67 |
|
MD5 | c52851421e6b5e33fac7697b6ee7245d |
|
BLAKE2b-256 | 4dedd83bb751759a250bd9e133edc9595cf5dd042a956c48ebf0b46b2e74bdb2 |