7 "github.com/charmbracelet/x/ansi"
10func pad(v any, width int) string {
11 s := fmt.Sprintf("%v", v)
12 w := ansi.StringWidth(s)
16 return strings.Repeat(" ", width-w) + s
19func isEven(n int) bool {
23func isOdd(n int) bool {
27func btoi(b bool) int {
34func ternary[T any](cond bool, t, f T) T {
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list