Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Gaurav-Gosain/tuios/llms.txt

Use this file to discover all available pages before exploring further.

Complete keyboard shortcut reference for TUIOS. All keybindings are customizable through the configuration file.
The leader key (default: Ctrl+B) is configurable via the leader_key option in your config file.

Modes

TUIOS has two main modes:
  • Window Management Mode - Navigate and manage windows (default on startup)
  • Terminal Mode - Input goes directly to the focused terminal
KeyAction
i or EnterEnter Terminal Mode
Ctrl+B then d or EscReturn to Window Management Mode (from Terminal Mode)
? (Window Mode) or Ctrl+B ? (universal)Toggle help overlay
q (Window Mode) or Ctrl+B q (universal)Quit TUIOS

Window Management

KeyAction
nCreate new window
w or xClose focused window
rRename focused window
mMinimize focused window
Shift+MRestore all minimized windows
TabFocus next window
Shift+TabFocus previous window
1-9Select window by number
Shift+1-9 or !@#$%^&*(Restore minimized window by number

Workspaces

TUIOS supports 9 workspaces for organizing windows.

macOS

KeyAction
Option+1 through Option+9Switch to workspace 1-9
Option+Shift+1 through Option+Shift+9Move window to workspace and follow
In your terminal, you can still type Option key unicode characters (¡™£¢∞§¶•ª) in Terminal Mode.

Linux

KeyAction
Alt+1 through Alt+9Switch to workspace 1-9
Alt+Shift+1 through Alt+Shift+9Move window to workspace and follow

Window Layout

Manual Snapping (Non-Tiling Mode)

Keyboard Snapping

KeyAction
hSnap window to left half
lSnap window to right half
fFullscreen window
uUnsnap/restore window
1Snap to top-left corner
2Snap to top-right corner
3Snap to bottom-left corner
4Snap to bottom-right corner

Mouse Edge Snapping

In floating mode (non-tiling), drag a window to the screen edges to snap it:
EdgeAction
Top centerFullscreen
Left edgeSnap to left half
Right edgeSnap to right half
Top-left cornerSnap to top-left quarter
Top-right cornerSnap to top-right quarter
Bottom-left cornerSnap to bottom-left quarter
Bottom-right cornerSnap to bottom-right quarter
The edge detection zone is 5 pixels from the screen edge. Simply drag a window by its title bar and release when the cursor reaches the desired edge.

Tiling Mode

TUIOS uses Binary Space Partitioning (BSP) for automatic tiling. Windows are arranged in an alternating vertical/horizontal split pattern (spiral layout).
KeyAction
tToggle automatic tiling mode
Shift+H or Ctrl+LeftSwap with window to the left
Shift+L or Ctrl+RightSwap with window to the right
Shift+K or Ctrl+UpSwap with window above
Shift+J or Ctrl+DownSwap with window below
< or Shift+,Decrease master window width (from right edge)
> or Shift+.Increase master window width (from right edge)
{ or Shift+[Decrease focused window height (from bottom edge)
} or Shift+]Increase focused window height (from bottom edge)
,Decrease master window width (from left edge)
.Increase master window width (from left edge)
[Decrease focused window height (from top edge)
]Increase focused window height (from top edge)

BSP Split Controls

These commands are available in tiling mode via the prefix key:
Key SequenceAction
Ctrl+B -Split focused window horizontally (top/bottom)
Ctrl+B | or \Split focused window vertically (left/right)
Ctrl+B RRotate split direction at focused window
Ctrl+B =Equalize all splits (reset to 50/50 ratios)
The dock shows the next split direction (V for vertical, H for horizontal) when tiling mode is active.

BSP Preselection

Control where the next window spawns relative to the focused window:
Key SequenceAction
Alt+hNext window appears left of focused
Alt+lNext window appears right of focused
Alt+kNext window appears above focused
Alt+jNext window appears below focused
On macOS, use Option+h/l/k/j instead of Alt+h/l/k/j.
After preselecting a direction, create a new window with n or Ctrl+B c. The preselection is consumed after one window creation. Note: Preselection only works when tiling mode is enabled (press t to enable). Use Case: Creating asymmetric layouts (sidebars, specific window placement).

Copy Mode

Enter copy mode with Ctrl+B [ to navigate scrollback and select text using vim-style commands.

Basic Navigation

KeyAction
Ctrl+B [Enter copy mode
h j k lMove cursor left/down/up/right
w b eWord forward / word backward / word end
0 ^ $Start of line / first non-blank / end of line
ggJump to top of scrollback
GJump to bottom (live output)
{number}GJump to line number (e.g., 10G)
{ }Jump to previous/next paragraph
Ctrl+U Ctrl+DHalf page up/down
Ctrl+B Ctrl+FFull page up/down
iReturn to terminal mode
q or EscExit copy mode

Count Prefix

Prefix any motion with a number to repeat it:
  • 10j - Move down 10 lines
  • 5w - Move forward 5 words
  • 3{ - Jump up 3 paragraphs
KeyAction
f{char}Find next occurrence of char on line
F{char}Find previous occurrence of char on line
t{char}Move cursor before next char
T{char}Move cursor after previous char
;Repeat last character search
,Repeat last search (opposite direction)
KeyAction
/Search forward
?Search backward
nNext match
NPrevious match
Ctrl+LClear search highlights

Visual Selection

KeyAction
vEnter visual character mode
VEnter visual line mode
y or cYank (copy) selection to clipboard
Esc or qExit visual mode

Other Commands

KeyAction
%Jump to matching bracket

Prefix Commands

Press Ctrl+B, release, then press the command key (tmux-style).
The leader key (Ctrl+B by default) is configurable via the leader_key option in your config file.

Main Prefix (Ctrl+B)

Key SequenceAction
Ctrl+B cCreate new window
Ctrl+B xClose current window
Ctrl+B , or rRename window
Ctrl+B n or TabNext window
Ctrl+B p or Shift+TabPrevious window
Ctrl+B 0-9Jump to window
Ctrl+B SpaceToggle tiling mode
Ctrl+B zFullscreen current window
Ctrl+B wEnter workspace prefix menu
Ctrl+B mEnter minimize prefix menu
Ctrl+B tEnter window prefix menu
Ctrl+B DEnter debug prefix menu
Ctrl+B TEnter tape manager prefix menu
Ctrl+B [Enter copy mode
Ctrl+B sEnter scrollback browser
Ctrl+B d or EscDetach (exit terminal mode)
Ctrl+B qQuit TUIOS
Ctrl+B ?Toggle help
Ctrl+B Ctrl+BSend literal Ctrl+B to terminal

Workspace Prefix (Ctrl+B w)

Key SequenceAction
Ctrl+B w 1-9Switch to workspace
Ctrl+B w Shift+1-9Move window to workspace and follow
Ctrl+B w EscCancel

Minimize Prefix (Ctrl+B m)

Key SequenceAction
Ctrl+B m mMinimize focused window
Ctrl+B m 1-9Restore minimized window by number
Ctrl+B m Shift+MRestore all minimized windows
Ctrl+B m EscCancel

Window Prefix (Ctrl+B t)

Alternative prefix-based access to window commands:
Key SequenceAction
Ctrl+B t nCreate new window
Ctrl+B t xClose window
Ctrl+B t rRename window
Ctrl+B t TabNext window
Ctrl+B t Shift+TabPrevious window
Ctrl+B t tToggle tiling mode
Ctrl+B t EscCancel

Tape Prefix (Ctrl+B T)

Record and manage tape sessions:
Key SequenceAction
Ctrl+B T mOpen tape manager
Ctrl+B T rStart recording (prompts for name)
Ctrl+B T sStop recording and save
Ctrl+B T EscCancel tape menu

Debug Prefix (Ctrl+B D)

Access debug and development tools:
Key SequenceAction
Ctrl+B D lToggle log viewer
Ctrl+B D cToggle cache statistics
Ctrl+B D kToggle showkeys overlay
Ctrl+B D aToggle animations
Ctrl+B D EscCancel
Log Viewer Keys:
  • q, Esc - Exit log viewer
  • j, k, , - Scroll up/down one line
  • Ctrl+U, Ctrl+D, PgUp, PgDn - Scroll half page
  • g, Home - Go to top
  • G, End - Go to bottom
Cache Statistics Keys:
  • q, Esc, c - Exit cache stats viewer
  • r - Reset cache statistics

Mouse Controls

  • Left Click - Focus window
  • Left Drag - Move window (non-tiling) or swap windows (tiling)
  • Right Drag - Resize window (non-tiling only)
  • Title Bar Buttons - Minimize, maximize, or close window
  • Click Dock Item - Restore minimized window
  • Copy Mode Click - Move cursor to position
  • Copy Mode Drag - Select text (enters visual mode)
  • Mouse Wheel ↑ - Enter scrollback mode

Customization

All keybindings can be customized in the configuration file.

Quick Customization

# Edit your keybindings
tuios config edit

# View current configuration
tuios keybinds list

# View only your customizations
tuios keybinds list-custom

Configuration Example

[keybindings]
leader_key = "ctrl+b"  # Change leader key

[keybindings.window_management]
new_window = ["n", "ctrl+n"]  # Multiple bindings
close_window = ["x"]
rename_window = ["r"]

[keybindings.workspaces]
switch_workspace_1 = ["alt+1"]
switch_workspace_2 = ["alt+2"]
# ... and so on
See the Configuration Guide for complete customization options.

Platform-Specific Notes

macOS

Default workspace switching uses Option key:
  • Option+1 through Option+9 - Switch workspace
  • Option+Shift+1 through Option+Shift+9 - Move window to workspace
In your terminal, you can still type Option key unicode characters (¡™£¢∞§¶•ª) in Terminal Mode.

Linux

Uses standard Alt key for workspace switching:
  • Alt+1 through Alt+9
  • Alt+Shift+1 through Alt+Shift+9

See Also

Build docs developers (and LLMs) love