Skip to main content

keycut

logo

pipeline status coverage report documentation pypi version

A command line tool that helps you remembering ALL the numerous keyboard shortcuts of ALL your favorite programs.

KeyCut (for keyboard shortcut) is a command line tool that helps you remembering the numerous keyboard shortcuts of your favorite programs, both graphical and command line ones, by allowing you to print them quickly in a console and search through them.

Shortcut data are provided by the [keycut-data][1].

This repository contains the sources for a Python implementation of KeyCut.

How it looks

The yellow parts are the one that matched a pattern using a regular expression.

screenshot

Requirements

keycut requires Python 3.6 or above.

To install Python 3.6, I recommend using pyenv.
# install pyenv
git clone https://github.com/pyenv/pyenv ~/.pyenv

# setup pyenv (you should also put these three lines in .bashrc or similar)
export PATH="${HOME}/.pyenv/bin:${PATH}"
export PYENV_ROOT="${HOME}/.pyenv"
eval "$(pyenv init -)"

# install Python 3.6
pyenv install 3.6.8

# make it available globally
pyenv global system 3.6.8

Installation

With pip:

python3.6 -m pip install keycut

With pipx:

# install pipx with the recommended method
curl https://raw.githubusercontent.com/cs01/pipx/master/get-pipx.py | python3

pipx install --python python3.6 keycut

You will also need to download the data by cloning the repository somewhere:

git clone https://github.com/pawamoy/keycut-data ~/.keycut-data

Usage

The program needs to know where the data are. By default, it will search in the (relative) keycut-data/default directory.

export KEYCUT_DATA=~/.keycut-data/default

Show all bash shortcuts:

keycut bash

Show all bash shortcuts matching proc (in Category, Action, or Keys):

keycut bash proc

Command-line help:

usage: keycut [-h] APP [PATTERN]

Command description.

positional arguments:
  APP         The app to print shortcuts of.
  PATTERN     A regex pattern to search for.

optional arguments:
  -h, --help  show this help message and exit

Release files for keycut 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for keycut 0.3.0
File Size Uploaded
keycut-0.3.0.tar.gz 8.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for keycut 0.3.0
File Interpreter ABI Platform
keycut-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 30.6 kB

Release files / keycut-0.3.0.tar.gz

Download URL keycut-0.3.0.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
dbc6887ec28ddefb04df46734889e1f62b54e2b7aa01ce3b742f5c55bb1a7f1e
BLAKE2b-256 checksum
How to use checksums
b0f522e34df8f56efe96fa19402a6e27257c8a82a135301cc8f55dd2f7949514
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.11 CPython/3.6.8 Linux/4.9.0-8-amd64

Release files / keycut-0.3.0-py3-none-any.whl

Download URL keycut-0.3.0-py3-none-any.whl
Size 22.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7a7dbe2f300f6d717fbfd537baf77d46dc3f1e74b8c2bcdeb2f24b61c4a575d1
BLAKE2b-256 checksum
How to use checksums
41b87392ecf5040e68454a4f3a5dc727bdbdf27aa41738112b00f4e3be26432a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.11 CPython/3.6.8 Linux/4.9.0-8-amd64

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page