Files
iris-context/integration/icons.go
T
VERSE ea82216dc9 style(ui): redesign new menu (#18)
- 2 mode classic (the old one) and modern
a2a17cab3a4bdf27abd2a956f9d53a0c4a685909
- add icon 3a11c7a6beb1dcf11e89977f380376fdea9fba89
- fix some bugs
2026-07-03 11:50:35 +07:00

55 lines
1.2 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package integration
import "strings"
var iconMap = map[string]string{
"git": "󰊢",
"docker": "",
"docker-compose": "",
"go": "",
"golang": "",
"python": "",
"python3": "",
"pip": "",
"node": "",
"npm": "",
"npx": "",
"bun": "",
"yarn": "",
"rust": "",
"cargo": "",
"java": "",
"mvn": "",
"gradle": "",
"nvim": "",
"vim": "",
"vi": "",
"cd": "",
"ls": "",
"eza": "",
"tree": "",
"pwd": "",
"cat": "",
"less": "",
"more": "",
"bat": "",
"grep": "",
"ripgrep": "",
"find": "",
"alias": "",
"history": "",
"system": "",
"root": "",
}
func lookupIcon(key string) string {
key = strings.ToLower(strings.TrimSpace(key))
if icon, ok := iconMap[key]; ok {
return icon
}
if len(key) > 0 && key[0] >= '0' && key[0] <= '9' {
return ""
}
return "❯"
}