keycut

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


Keywords
keycut, command-line, keyboard-shortcuts
License
ISC
Install
pip install keycut==0.3.0

Documentation

keycut

ci documentation pypi version

logo

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.

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.12

# make it available globally
pyenv global system 3.6.12

Installation

With pip:

python3.6 -m pip install keycut

With pipx:

python3.6 -m pip install --user pipx

pipx install --python python3.6 keycut

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:

$ keycut -h
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