main 5041353

icons.go RawHistoryFolder

1// Package styles provides reusable lipgloss-based TUI components.
2package styles
3
4// Nerd Font icons (requires a Nerd Font to display correctly)
5const (
6	IconGlobe     = "\uf0ac" //  browser/web
7	IconVersion   = "\uf02b" //  tag
8	IconGitBranch = "\ue725" //  git branch
9	IconCalendar  = "\uf073" //  calendar
10	IconCode      = "\uf121" //  code
11	IconGithub    = "\uf09b" //  github
12	IconHeart     = "\uf004" //  heart
13	IconGo        = "\ue627" //  go gopher
14	IconArrow     = "\uf061" //  arrow right
15
16	// Doctor / diagnostics
17	IconDoctor  = "\uf0f1" // stethoscope
18	IconCheck   = "\uf00c" // check
19	IconX       = "\uf00d" // x
20	IconWarning = "\uf071" // warning
21	IconInfo    = "\uf05a" // info
22	IconWrench  = "\uf0ad" // wrench
23	IconPackage = "\uf187" // archive/package
24	IconVideo   = "\uf03d" // video camera
25
26	// Purge / filesystem
27	IconTrash    = "\uf1f8" // trash
28	IconFolder   = "\uf07b" // folder
29	IconConfig   = "\ue615" // config
30	IconDatabase = "\uf1c0" // database
31	IconFilter   = "\uf0b0" // filter
32	IconDesktop  = "\uf108" // desktop
33	IconImage    = "\uf1c5" // image file
34	IconCache    = "\uf49e" // cache
35	IconLogs     = "\uf0f6" // file-text
36
37	// Checkboxes
38	IconCheckboxEmpty   = "\uf096" // unchecked
39	IconCheckboxChecked = "\uf046" // checked
40
41	// UI
42	IconCursor = "\uf054" // chevron-right
43
44	// Sessions / browser
45	IconSession      = "\uf2d2" // window
46	IconSessionStack = "\uf24d" // clone/stack
47	IconTab          = "\uf0ce" // table
48	IconPane         = "\uf0db" // columns
49	IconTree         = "\uf1bb" // tree
50	IconClock        = "\uf017" // clock
51	IconPlay         = "\uf04b" // play (running)
52	IconStop         = "\uf04d" // stop (exited)
53	IconRestore      = "\uf0e2" // rotate-left (restore)
54	IconExpand       = "\uf065" // expand
55	IconCollapse     = "\uf066" // compress
56
57	// Update / download
58	IconDownload = "\uf019" // download
59	IconUpdate   = "\uf021" // refresh/sync
60	IconRocket   = "\uf135" // rocket (upgrade)
61)

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