glide.o for global options and glide.bo for buffer-specific options.
glide.o
Set browser-wide options that persist across all tabs.glide.bo
Set buffer-specific options that only apply to the current tab. These options are reset when navigating to a new page.glide.options.get()
Retrieve the effective option value, checking buffer-specific options first, then falling back to global options.Available Options
mapping_timeout
How long to wait (in milliseconds) until cancelling a partial keymapping execution.For example, with
glide.keymaps.set('insert', 'jj', 'mode_change normal'), after pressing j once, this option determines how long the delay should be until the j key is considered fully pressed and the mapping sequence is reset.Note: This only applies in insert mode.switch_mode_on_focus
Determines if the current mode will change when certain element types are focused.For example, if
true, Glide will automatically switch to insert mode when an editable element is focused.This can be useful for staying in the same mode while switching tabs.yank_highlight
Color used to briefly highlight text when it’s yanked. Accepts any valid CSS color value.
yank_highlight_time
How long (in milliseconds) to highlight the selection when it’s yanked.
jumplist_max_entries
The maximum number of entries to include in the jumplist, i.e., how far back in history the jumplist will store.
which_key_delay
The delay (in milliseconds) before showing the which-key UI.
hint_chars
The characters to include in hint labels.
hint_size
The font size of hint labels. Directly corresponds to the CSS
font-size property.hint_label_generator
A function to produce labels for hints. Can use built-in generators:
glide.hints.label_generators.prefix_free(default)glide.hints.label_generators.numeric
native_tabs
Configure the behavior of the native tab bar:
show- Always visiblehide- Always hiddenautohide- Shows when cursor hovers over its default position
autohide does not work on macOS at the moment.newtab_url
The URL to load when a new tab is created. May be a local file (
file:///path/to/page.html) or any other URL.go_next_patterns
Element text patterns to search for in the
:go_next excmd.go_previous_patterns
Element text patterns to search for in the
:go_previous excmd.keyboard_layout
The keyboard layout to use when
keymaps_use_physical_layout is set to "force".The only layout supported by default is "qwerty". See keyboard_layouts for how to add custom layouts.keyboard_layouts
The supported keyboard layouts. Each entry maps a key code to the string (and shifted string) used in Glide keymappings.
keymaps_use_physical_layout
keymaps_use_physical_layout
'never' | 'for_macos_option_modifier' | 'force'
default:"for_macos_option_modifier"
Determines whether keymappings resolve from the key event
code (physical key) or key (OS-resolved string)."never"- Always useevent.key"force"- Always useevent.code"for_macos_option_modifier"- Useevent.codeon macOS when Option is held,event.keyotherwise
"force" is recommended for users with multiple or non-English keyboard layouts.scroll_implementation
Configure the strategy for implementing scrolling. This affects the
h, j, k, l, <C-u>, <C-d>, G, and gg mappings.Note: This will be removed in the future when the kinks with the keys implementation are ironed out.