v0.33.1 9577fee

builtin_shortcuts.go RawHistoryFolder

1package entity
2
3// BuiltinGlobalShortcuts returns the standard browser shortcuts shared by every
4// keymap preset. Config defaults include them so users can rebind or disable
5// them, and config loading completes any that a config file omits (unless the
6// user already bound one of their keys). An action present with empty keys
7// stays disabled.
8func BuiltinGlobalShortcuts() map[string]ActionBinding {
9	return map[string]ActionBinding{
10		"open-omnibox":      {Keys: []string{"ctrl+l"}, Desc: "Open omnibox"},
11		"open-find":         {Keys: []string{"ctrl+f"}, Desc: "Find in page"},
12		"find-next":         {Keys: []string{"f3", "ctrl+g"}, Desc: "Find next match"},
13		"find-prev":         {Keys: []string{"shift+f3", "ctrl+shift+g"}, Desc: "Find previous match"},
14		"reload":            {Keys: []string{"ctrl+r", "f5"}, Desc: "Reload page"},
15		"hard-reload":       {Keys: []string{"ctrl+shift+r", "ctrl+f5"}, Desc: "Reload page bypassing cache"},
16		"open-devtools":     {Keys: []string{"f12"}, Desc: "Open developer tools"},
17		"go-back":           {Keys: []string{"ctrl+arrowleft"}, Desc: "Go back"},
18		"go-forward":        {Keys: []string{"ctrl+arrowright"}, Desc: "Go forward"},
19		"zoom-in":           {Keys: []string{"ctrl+plus", "ctrl+equal"}, Desc: "Zoom in"},
20		"zoom-out":          {Keys: []string{"ctrl+minus"}, Desc: "Zoom out"},
21		"zoom-reset":        {Keys: []string{"ctrl+0"}, Desc: "Reset zoom"},
22		"quit":              {Keys: []string{"ctrl+q"}, Desc: "Quit"},
23		"toggle-fullscreen": {Keys: []string{"f11"}, Desc: "Toggle fullscreen"},
24		"copy-url":          {Keys: []string{"ctrl+shift+c"}, Desc: "Copy current URL"},
25		"print-page":        {Keys: []string{"ctrl+shift+p"}, Desc: "Print page"},
26		"session-manager":   {Keys: []string{"ctrl+shift+s"}, Desc: "Open session manager"},
27		"focus-left":        {Keys: []string{"alt+h", "alt+arrowleft"}, Desc: "Focus pane to the left"},
28		"focus-right":       {Keys: []string{"alt+l", "alt+arrowright"}, Desc: "Focus pane to the right"},
29		"focus-up":          {Keys: []string{"alt+k", "alt+arrowup"}, Desc: "Focus pane above"},
30		"focus-down":        {Keys: []string{"alt+j", "alt+arrowdown"}, Desc: "Focus pane below"},
31	}
32}

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 8

Tags 42

↑↓ moveenter openesc close