TOML Keybinding Format
Keybindings are defined in the[keybindings] section of config.toml:
config.toml
Key Format
Single keys:Supported Modifiers
ctrl/control- Control keyalt- Alt key (Linux/Windows)opt/option- Option key (macOS)shift- Shift keysuper/cmd- Command/Super/Windows keymeta- Meta key
Special Keys
Leader Key Configuration
The leader key (prefix key) activates command mode, similar to tmux:config.toml
Common Leader Key Choices
Keybinding Sections
Window Management
Window lifecycle and navigation:config.toml
Workspaces
Multi-workspace keybindings (platform-specific defaults):config.toml
Layout & Tiling
Window positioning and tiling controls:config.toml
Mode Control
Switch between modes:config.toml
Navigation
Cursor movement in window management mode:config.toml
Prefix Mode Keybindings
Actions triggered after pressing the leader key:config.toml
Submenu Prefixes
Workspace, minimize, window, debug, and tape submenus:config.toml
Terminal Mode
Direct keybindings that work without prefix in terminal mode:config.toml
Action Registry
All available actions are defined in the keybind registry. Use the CLI to list them:- Action name
- Bound keys
- Description
- Context (mode/prefix)
List Only Custom Keybindings
Show keybindings that differ from defaults:Customization Examples
Vim-Style Navigation
config.toml
Alternative Leader Key
config.toml
Quick Window Access
config.toml
macOS-Friendly Bindings
config.toml
Kitty Keyboard Protocol
TUIOS supports the Kitty keyboard protocol for enhanced key handling:- Disambiguates keys that look identical in legacy terminal protocols
- Allows binding
Ctrl+Iseparately fromTab - Supports
Ctrl+Shift+lettercombinations - Handles Unicode key events
Kitty Protocol Benefits
Without Kitty Protocol:Ctrl+IandTabare indistinguishableCtrl+MandEnterare the sameCtrl+Shift+Cdoesn’t work reliably
- All key combinations are unique
- Full modifier support
- Better international keyboard support
Terminal Support
Kitty protocol is supported by:- Kitty
- WezTerm
- foot
- Contour
- Alacritty (experimental)
Key Normalization
TUIOS normalizes keys across platforms:opt+N→alt+N(macOS Option key)- Case-insensitive for modifiers:
Ctrl+B=ctrl+b - Unicode variants: macOS
opt+1→¡automatically mapped
Platform Differences
macOS
config.toml
Linux/Windows
config.toml
Debugging Keybindings
Enable the showkeys overlay to see key events:- Raw key events
- Parsed key names
- Modifier states
- Whether Kitty protocol is active
Next Steps
Themes
Configure color themes
Settings
Explore other settings