6 "github.com/charmbracelet/x/ansi"
9// Escape replaces control characters with their Unicode Control Picture
10// representations to ensure they are displayed correctly in the UI.
11func Escape(content string) string {
12 var sb strings.Builder
14 for _, r := range content {
16 case r >= 0 && r <= 0x1f: // Control characters 0x00-0x1F
17 sb.WriteRune('\u2400' + r)
19 sb.WriteRune('\u2421')
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