Skip to main content

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
??space?? Space Space

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.4.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

toro_shortcuts-1.4-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file toro-shortcuts-1.4.tar.gz.

File metadata

  • Download URL: toro-shortcuts-1.4.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for toro-shortcuts-1.4.tar.gz
Algorithm Hash digest
SHA256 d2d348f6e18311465b8ae8d582d8fae2d7e03a7801c634d93716f312d8dabdff
MD5 2d581a0f4c91a6ca22f38d7ed33b2233
BLAKE2b-256 244c571feb518c3af253a6f0a8edce6dc5d1df57c76d9556f451e44c9bd8143c

See more details on using hashes here.

File details

Details for the file toro_shortcuts-1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for toro_shortcuts-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dbc4c4d6184c38e8d331d5e2f4a7fd8edfd9905faed6af1634db1684e4f3d2ef
MD5 67a2ca0c5939ff2f2ce2f5e630ebaa45
BLAKE2b-256 9e7db16f7fa3fef1b418fedd3b74f1fc2af7afb96ce52db949f3a492c67bf8a9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page