style(ui): redesign new menu (#18)

- 2 mode classic (the old one) and modern
a2a17cab3a4bdf27abd2a956f9d53a0c4a685909
- add icon 3a11c7a6beb1dcf11e89977f380376fdea9fba89
- fix some bugs
This commit is contained in:
VERSE
2026-07-03 11:50:35 +07:00
committed by GitHub
parent 24fddaccfe
commit ea82216dc9
11 changed files with 365 additions and 76 deletions
+54
View File
@@ -0,0 +1,54 @@
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 "❯"
}