v2.31.1 f37fe67

icons.go RawHistoryFolder

1package styles
2
3// Nerd Font icons for terminal UI.
4// These icons require a Nerd Font compatible terminal font.
5// All icons are defined using Unicode escape sequences for portability.
6// Fallback ASCII alternatives are provided where practical.
7const (
8	// Status indicators
9	IconSuccess = "\uf00c" // nf-fa-check
10	IconError   = "\uf00d" // nf-fa-times
11	IconWarning = "\uf071" // nf-fa-exclamation_triangle
12	IconInfo    = "\uf05a" // nf-fa-info_circle
13	IconPending = "\uf017" // nf-fa-clock
14
15	// Container status icons
16	IconRunning    = "\uf00c" // nf-fa-check (green)
17	IconStopped    = "\uf04d" // nf-fa-stop
18	IconExited     = "\uf00d" // nf-fa-times
19	IconPaused     = "\uf04c" // nf-fa-pause
20	IconRestarting = "\uf021" // nf-fa-refresh
21	IconUnknown    = "\uf071" // nf-fa-exclamation_triangle
22
23	// Objects
24	IconRoute     = "\uf0e8"     // nf-fa-sitemap
25	IconSecret    = "\uf023"     // nf-fa-lock
26	IconToken     = "\uf084"     // nf-fa-key
27	IconContainer = "\uf489"     // nf-oct-container (U+F489)
28	IconServer    = "\uf233"     // nf-fa-server
29	IconNetwork   = "\U000f06f3" // nf-md-lan (U+F06F3)
30	IconVolume    = "\uf1c0"     // nf-fa-database
31	IconImage     = "\uf187"     // nf-fa-archive
32	IconDocker    = "\ue7b0"     // nf-dev-docker
33
34	// Tree view status icons
35	IconContainerStatus = "\U000f01a7" // nf-md-cube_outline — container health in tree view
36	IconHTTPStatus      = "\U000f059f" // nf-md-web — HTTP probe status in tree view
37	IconGroup           = "\u25c6"     // ◆ — network group header
38
39	// Actions
40	IconAdd     = "\uf067" // nf-fa-plus
41	IconRemove  = "\uf068" // nf-fa-minus
42	IconEdit    = "\uf040" // nf-fa-pencil
43	IconRefresh = "\uf021" // nf-fa-refresh
44	IconUpload  = "\uf0ee" // nf-fa-cloud_upload
45	IconDelete  = "\uf1f8" // nf-fa-trash
46
47	// Navigation
48	IconArrowRight = "\uf061" // nf-fa-arrow_right
49	IconArrowLeft  = "\uf060" // nf-fa-arrow_left
50	IconArrowUp    = "\uf062" // nf-fa-arrow_up
51	IconArrowDown  = "\uf063" // nf-fa-arrow_down
52	IconChevron    = "\uf054" // nf-fa-chevron_right
53
54	// UI elements
55	IconBullet     = "\u25b8" // ▸ Simple triangle bullet
56	IconDot        = "\u25cf" // ● Filled circle
57	IconDotEmpty   = "\u25cb" // ○ Empty circle
58	IconCheckbox   = "\uf096" // nf-fa-square_o
59	IconChecked    = "\uf046" // nf-fa-check_square_o
60	IconRadio      = "\uf10c" // nf-fa-circle_o
61	IconRadioCheck = "\uf192" // nf-fa-dot_circle_o
62	IconPlay       = "\uf04b" // nf-fa-play
63	IconStop       = "\uf04d" // nf-fa-stop
64	IconPause      = "\uf04c" // nf-fa-pause
65
66	// Tree structure
67	IconTreeBranch = "\u251c" // ├
68	IconTreeLast   = "\u2514" // └
69	IconTreeLine   = "\u2500" // ─
70	IconTreeVert   = "\u2502" // │
71
72	// Spinners (individual frames)
73	SpinnerDot    = "\u28fe\u28fd\u28fb\u28bf\u287f\u28df\u28ef\u28f7"
74	SpinnerLine   = "|/-\\"
75	SpinnerCircle = "\u25d0\u25d3\u25d1\u25d2"
76	SpinnerBrail  = "\u280b\u2819\u2839\u2838\u283c\u2834\u2826\u2827\u2807\u280f"
77
78	// Borders and decorations
79	BorderHorizontal = "\u2500" // ─
80	BorderVertical   = "\u2502" // │
81	BorderCornerTL   = "\u250c" // ┌
82	BorderCornerTR   = "\u2510" // ┐
83	BorderCornerBL   = "\u2514" // └
84	BorderCornerBR   = "\u2518" // ┘
85	BorderT          = "\u252c" // ┬
86	BorderB          = "\u2534" // ┴
87	BorderL          = "\u251c" // ├
88	BorderR          = "\u2524" // ┤
89	BorderCross      = "\u253c" // ┼
90
91	// Gordon branding
92	IconGordon = "\uf1b2" // nf-fa-cube
93)
94
95// ASCII fallback alternatives for terminals without Nerd Fonts.
96const (
97	AsciiSuccess    = "[OK]"
98	AsciiError      = "[X]"
99	AsciiWarning    = "[!]"
100	AsciiInfo       = "[i]"
101	AsciiBullet     = ">"
102	AsciiDot        = "*"
103	AsciiRunning    = "[R]"
104	AsciiStopped    = "[S]"
105	AsciiTreeBranch = "|-"
106	AsciiTreeLast   = "`-"
107)

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