Skip to main content
The show-keys command displays the key assignments configured in your WezTerm instance, making it easy to discover and document your keyboard shortcuts.

Synopsis

Description

Displays all key bindings configured in your WezTerm configuration. This is useful for:
  • Discovering what key bindings are available
  • Debugging key binding conflicts
  • Generating documentation for your configuration
  • Exporting key bindings in Lua format

Options

flag
Show the keys as Lua config statements.Instead of a human-readable table, outputs valid Lua code that can be used in your wezterm.lua configuration file.Example:
string
In Lua mode, show only the named key table.WezTerm supports multiple key tables for different modes (like tmux’s prefix key). Use this option to show bindings for a specific table.Requires: --lua flagExample:

Examples

Show all key bindings

Output will show a table like:

Export key bindings as Lua

Output will be valid Lua code:

Show specific key table

This shows only the key bindings for copy mode.

Save key bindings to a file

Check for specific binding

Compare key bindings between configs

Understanding Key Tables

WezTerm supports multiple key tables for modal key bindings. Common key tables include:
  • Default table: Active by default
  • copy_mode: Active when in copy/search mode
  • search_mode: Active when searching
  • Custom tables: You can define your own

Example with key tables in wezterm.lua:

Then inspect just the copy_mode table:

Common Key Binding Modifiers

  • CTRL - Control key
  • SHIFT - Shift key
  • ALT - Alt/Option key
  • SUPER - Windows/Command key
  • LEADER - Leader key (if configured)
Modifiers can be combined with |:
  • CTRL|SHIFT
  • CTRL|ALT
  • SUPER|SHIFT

Use Cases

Documentation

Generate documentation for your team:

Debugging Conflicts

If a key binding isn’t working:
This helps identify if the key is bound to something else.

Configuration Backup

Before making changes:

Learning Default Bindings

If you haven’t customized your config yet:
This shows all default WezTerm key bindings.

Sharing Configuration

Export your key bindings to share with others:

Default Key Bindings

WezTerm comes with sensible defaults. Some common ones include:
  • CTRL+SHIFT+T - New tab
  • CTRL+SHIFT+N - New window
  • CTRL+SHIFT+W - Close tab
  • CTRL+SHIFT+C - Copy (when text is selected)
  • CTRL+SHIFT+V - Paste
  • CTRL+SHIFT+F - Search
  • CTRL+SHIFT+L - Show launcher
  • CTRL+Tab - Next tab
  • CTRL+SHIFT+Tab - Previous tab
Run wezterm show-keys to see the complete list for your configuration.

Customizing Key Bindings

To customize key bindings, edit your wezterm.lua:
Then verify with:
  • wezterm ls-fonts - Display font information
  • WezTerm Key Binding Configuration Documentation