v2.4.1 7c3b292

icons.go RawHistoryFolder

1package styles
2
3// Nerd Font icons for terminal UI.
4// These icons require a Nerd Font compatible terminal font.
5// Fallback ASCII alternatives are provided where practical.
6const (
7	// Status indicators
8	IconSuccess = "" // nf-fa-check (U+F00C)
9	IconError   = "" // nf-fa-times (U+F00D)
10	IconWarning = "" // nf-fa-exclamation_triangle (U+F071)
11	IconInfo    = "" // nf-fa-info_circle (U+F05A)
12	IconPending = "" // nf-fa-clock_o (U+F017)
13
14	// Objects
15	IconRoute     = ""  // nf-fa-sitemap (U+F0E8)
16	IconSecret    = ""  // nf-fa-lock (U+F023)
17	IconToken     = ""  // nf-fa-key (U+F084)
18	IconContainer = ""  // nf-oct-container (U+F489)
19	IconServer    = ""  // nf-fa-server (U+F233)
20	IconNetwork   = "󰛳" // nf-md-lan (U+F06F3)
21	IconVolume    = ""  // nf-fa-database (U+F1C0)
22	IconImage     = ""  // nf-fa-archive (U+F187)
23
24	// Actions
25	IconAdd     = "" // nf-fa-plus (U+F067)
26	IconRemove  = "" // nf-fa-minus (U+F068)
27	IconEdit    = "" // nf-fa-pencil (U+F040)
28	IconRefresh = "" // nf-fa-refresh (U+F021)
29	IconUpload  = "" // nf-fa-cloud_upload (U+F0EE)
30	IconDelete  = "" // nf-fa-trash (U+F1F8)
31
32	// Navigation
33	IconArrowRight = "" // nf-fa-arrow_right (U+F061)
34	IconArrowLeft  = "" // nf-fa-arrow_left (U+F060)
35	IconArrowUp    = "" // nf-fa-arrow_up (U+F062)
36	IconArrowDown  = "" // nf-fa-arrow_down (U+F063)
37	IconChevron    = "" // nf-fa-chevron_right (U+F054)
38
39	// UI elements
40	IconBullet     = "▸" // Simple triangle bullet
41	IconDot        = "●" // Filled circle
42	IconDotEmpty   = "○" // Empty circle
43	IconCheckbox   = ""  // nf-fa-square_o (U+F096)
44	IconChecked    = ""  // nf-fa-check_square_o (U+F046)
45	IconRadio      = ""  // nf-fa-circle_o (U+F10C)
46	IconRadioCheck = ""  // nf-fa-dot_circle_o (U+F192)
47
48	// Spinners (individual frames)
49	SpinnerDot    = "⣾⣽⣻⢿⡿⣟⣯⣷"
50	SpinnerLine   = "|/-\\"
51	SpinnerCircle = "◐◓◑◒"
52	SpinnerBrail  = "⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏"
53
54	// Borders and decorations
55	BorderHorizontal = "─"
56	BorderVertical   = "│"
57	BorderCornerTL   = "┌"
58	BorderCornerTR   = "┐"
59	BorderCornerBL   = "└"
60	BorderCornerBR   = "┘"
61	BorderT          = "┬"
62	BorderB          = "┴"
63	BorderL          = "├"
64	BorderR          = "┤"
65	BorderCross      = "┼"
66
67	// Gordon branding
68	IconGordon = "" // nf-fa-cube (U+F1B2)
69)
70
71// ASCII fallback alternatives for terminals without Nerd Fonts.
72const (
73	AsciiSuccess = "[OK]"
74	AsciiError   = "[X]"
75	AsciiWarning = "[!]"
76	AsciiInfo    = "[i]"
77	AsciiBullet  = ">"
78	AsciiDot     = "*"
79)

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 7

Tags 106

↑↓ moveenter openesc close