Understanding Glide’s modal editing modes and how they work
Glide Browser uses a modal editing system inspired by Vim, where different modes change how keyboard input is interpreted. This allows for efficient keyboard-driven browsing without conflicts between navigation and text input.
Glide comes with six built-in modes, each designed for specific tasks:
Normal Mode
Insert Mode
Visual Mode
Hint Mode
Command Mode
Ignore Mode
The default mode for browsing and navigation. Most keybindings are active in this mode.Purpose: Navigate pages, follow links, manage tabs, and trigger browser actionsCommon keybindings:
f - Show hints for clickable elements
gg / G - Scroll to top/bottom
<Space>r - Reload page (using leader key)
: - Open command line
Switch to normal: Press <Esc> from most other modes
For typing text into input fields, textareas, and contenteditable elements.Purpose: Text input without keybinding interferenceBehavior: Most Glide keybindings are disabled to allow normal typing. Some essential bindings like <Ctrl-j> (next tab) and <Ctrl-k> (previous tab) remain active.Auto-switching: Glide automatically switches to insert mode when you focus an editable element (controlled by glide.o.switch_mode_on_focus).Switch to insert:
i - Enter insert mode (from normal)
a - Enter insert mode (from normal)
A - Enter insert mode at end of line (from normal)
gi - Focus last input field and enter insert mode
For selecting and manipulating text on the page.Purpose: Select text using keyboard navigationCommon keybindings:
v - Start visual selection (from normal)
h / l - Extend selection left/right
y - Yank (copy) selected text
d - Delete selected text
c - Change (delete and enter insert mode)
Switch to visual: Press v from normal mode
Activated when showing keyboard hints for clickable elements.Purpose: Select links and interactive elements by typing hint labelsBehavior:
Type the hint label characters to filter hints
Press <Esc> to cancel and return to normal mode
Selecting a hint automatically returns to normal mode
Active when the command line is open.Purpose: Execute ex-style commandsCommon keybindings:
<Tab> / <Shift-Tab> - Navigate completions
<Enter> - Accept and execute command
<Esc> - Close command line
<Ctrl-d> - Delete completion item
Switch to command: Press : from normal mode
Disables all Glide keybindings except the toggle to exit.Purpose: Temporarily bypass Glide to use website shortcuts or for troubleshootingBehavior: All keys pass through to the page/browser as if Glide wasn’t activeToggle: Press <Shift-Esc> to enter/exit ignore mode (works from any mode)
There’s also a special op-pending mode used internally for Vim-style operators:
Operator-Pending Mode is entered after pressing an operator key like d (delete) or c (change). The next motion determines what text to operate on.Example: dw deletes to the end of the word - d enters op-pending, then w executes the motion.