Skip to main content

zkeys

Display Zsh key bindings in more human-readable formats.

For example, print a table of key bindings, sorted by widget (i.e. function):

% zkeys
...
^B        backward-char
^[[D      backward-char
^[OD      backward-char
^?        backward-delete-char
^H        backward-delete-char
^[^?      backward-kill-word
^[^H      backward-kill-word
^[B       backward-word
^[b       backward-word
^A        beginning-of-line
^[OH      beginning-of-line
^[C       capitalize-word
^[c       capitalize-word
^L        clear-screen
^[^L      clear-screen
...

Instead of:

% bindkey
"^@" set-mark-command
"^A" beginning-of-line
"^B" backward-char
"^D" delete-char-or-list
"^E" end-of-line
"^F" forward-char
"^G" send-break
"^H" backward-delete-char
...
"^[B" backward-word
"^[C" capitalize-word
"^[D" kill-word
"^[F" forward-word
...

Run zkeys -h to see more sorting and grouping options.

By default, zkeys runs bindkey -L in a Zsh subprocess. It can also read from standard input, which is faster, and enables displaying the current shell configuration:

bindkey -L | zkeys

To learn about Zsh key bindings, see:

Installing

Requires Python 3.8 or newer.

Install the latest release from PyPI using pipx (recommended) or pip:

pipx install zkeys

python3 -m pip install -U zkeys

To install the latest version from GitHub, replace zkeys with git+https://github.com/bhrutledge/zkeys.git.

Metadata

Release files for zkeys 0.2.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 zkeys 0.2.0
File Size Uploaded
zkeys-0.2.0.tar.gz 8.7 kB Details

Built distribution (wheel)

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

Total release size: 13.5 kB

Release files / zkeys-0.2.0.tar.gz

Download URL zkeys-0.2.0.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7950237edb70bd141898a6955859ed5182d1de9b71451aa6bc7dddbac034ee1d
BLAKE2b-256 checksum
How to use checksums
cf765921d0ea4d39ce156319db04c50c16408050a12c0d28d271f86768a2b7bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

Release files / zkeys-0.2.0-py3-none-any.whl

Download URL zkeys-0.2.0-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4fd9f9e5e1373b634f3d6eee9db9665578ac4c73e63baae8ddd43ed2534e316
BLAKE2b-256 checksum
How to use checksums
dba020f8d80d4f170a4c1f9c7bf0d4795b7d7fd6ad610560d906490e0fd811cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

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