⌨️ First Things First - How to Scroll This Page:
Use these keys to navigate through this tutorial: j = scroll down
k = scroll up
t = scroll up faster
g = scroll down faster
Welcome to peak! This tutorial will teach you how to use this terminal-based web browser with Vim-style modal controls. If you've used Vim, you'll feel right at home. If not, don't worry – we'll guide you through everything step by step.
peak uses modes to separate different types of interactions, making keyboard navigation efficient and powerful.
peak has four distinct modes, each designed for different tasks:
[S]STANDARD - Single-key commands for navigation and browser controls (default)
[I]INSERT - All keys pass through to web forms and input fields
[M]MOUSE - Keyboard-based mouse emulation for clicking links and elements
[V]VISUAL - Select and copy text from web pages
💡 Tip: The current mode is always shown in the status bar at the bottom of the screen. Press ESC in any mode to return to STANDARD mode.
🎯 Check Your Status Bar
Look at the bottom of your screen right now. You should see [S] indicating you're in STANDARD mode.
2. STANDARD Mode - Navigation & Commands
This is your home base. From STANDARD mode, you can navigate pages, manage bookmarks, and access all browser features with single-key commands.
Page Navigation
hjklMove left, down, up, right (like Vim arrow keys)
tScroll up (think "top")
gScroll down (think "go down")
Try scrolling this page using j (down) and k (up). Get a feel for the rhythm!
URL & Page Management
uNavigate to URL (opens URL input dialog)
pPrevious page in history (back)
nNext page in history (forward)
rReload current page
F5Clear cache and reload current page
dAdd current page to bookmarks
bOpen bookmarks menu
aFill a login form with a saved password
Press u to open the URL dialog. Type a URL and press Enter to navigate. Try example.com!
Advanced Navigation
fCoordinate click mode - type x,y to click anywhere
eEnter MOUSE mode for precise clicking
vEnter VISUAL mode for text selection
Developer & Advanced
cToggle JavaScript console
sUser scripts menu
yToggle auto-inject user scripts
zToggle tiled rendering (sixel only)
ZForce full screen redraw
Mode Switching
iEnter INSERT mode (for forms)
xExit browser
3. MOUSE Mode - Keyboard Mouse Control
MOUSE mode lets you control a virtual mouse cursor using your keyboard. This is perfect for clicking buttons, interacting with complex web apps, or when hint mode doesn't capture all clickable elements.
💡 Activation: Press e from STANDARD mode. A colored cursor will appear on screen. The color indicates speed mode.
Cursor Movement
hjklMove cursor left, down, up, right
qToggle precision mode (slow, accurate - blue cursor)
fToggle fast mode (quick movement - red cursor)
Actions
SPACEClick at cursor position
ENTERClick at cursor position
rToggle drag mode (for drag & drop)
gGrid mode - quick jump to screen regions
Exit
eExit MOUSE mode back to STANDARD
ESCExit MOUSE mode back to STANDARD
Try entering MOUSE mode with e, moving the cursor with hjkl, and clicking this button:
Grid Mode
Grid mode divides the screen into a 3×3 grid. Press g in MOUSE mode to activate, then press one of these keys to jump:
q w e
a s d
z x c
Each key corresponds to a screen position. By default, these keys match your keyboard layout for easy memorization.
4. INSERT Mode - Text Input
INSERT mode is where all your keypresses go directly to the webpage. This is essential for filling out forms, typing in search boxes, and interacting with web applications.
💡 How to use: Press i from STANDARD mode. The status bar will show [I]. Now you can type normally in any form field.
ESCReturn to STANDARD mode
🎯 Try It Now!
Below is a text input field. Follow these steps:
Use MOUSE mode (e) to click the field below, or use your terminal mouse if available
Press i to enter INSERT mode
Type something:
Press ESC to return to STANDARD mode
⚠️ Common Mistake: Forgetting you're in INSERT mode and trying to use navigation keys like j and k. They'll just type letters! Always check the status bar mode indicator.
5. VISUAL Mode - Text Selection
VISUAL mode lets you select and copy text from web pages using keyboard navigation.
💡 Activation: Press v from STANDARD mode. The status bar shows [V].
Selection Movement
hjklMove selection left, down, up, right
wMove to next word
bMove to previous word
Actions
yYank (copy) selected text to clipboard
ESCExit VISUAL mode back to STANDARD
Try selecting this text: Press 'v', navigate with 'hjkl', and press 'y' to copy! Then paste it somewhere to verify.
6. Advanced Features
Coordinate Click Mode
Coordinate click mode lets you click anywhere using exact pixel coordinates. Press f and a red crosshair appears in the center of the page.
💡 Usage: Press f. A red grid appears with letters A–Z along the top (columns) and left (rows). Type a column letter and a row letter (for example M,K) and press ENTER to click at their intersection. Press ESC to cancel.