Tool icon mapping — Unicode symbols inspired by opencode TUI
(tool_name: &str)
| 699 | |
| 700 | /// Tool icon mapping — Unicode symbols inspired by opencode TUI |
| 701 | pub fn tool_icon(tool_name: &str) -> &'static str { |
| 702 | match tool_name { |
| 703 | "Bash" | "bash_tool" | "run_terminal_cmd" => "$", |
| 704 | "Read" | "read_file" | "read_file_tool" => "\u{2192}", // → |
| 705 | "Write" | "write_file" | "write_file_tool" => "\u{2190}", // ← |
| 706 | "Edit" | "search_replace" => "\u{2190}", // ← |
| 707 | "Delete" => "\u{00d7}", // × |
| 708 | "Grep" | "grep" => "\u{2731}", // ✱ |
| 709 | "Glob" | "codebase_search" => "\u{2731}", // ✱ |
| 710 | "LS" | "list_dir" | "ls" => "\u{2192}", // → |
| 711 | "WebFetch" => "%", |
| 712 | "WebSearch" => "\u{25c8}", // ◈ |
| 713 | "Task" => "#", |
| 714 | "HmosCompilation" => "\u{2692}", |
| 715 | "TodoWrite" => "\u{2699}", // ⚙ |
| 716 | "Skill" => "\u{2192}", // → |
| 717 | "Git" => "\u{2387}", // ⎇ |
| 718 | "AskUserQuestion" => "?", |
| 719 | "CreatePlan" => "\u{25b6}", // ▶ |
| 720 | "ReadLints" => "\u{25b3}", // △ |
| 721 | "GetFileDiff" => "\u{00b1}", // ± |
| 722 | "IdeControl" => "\u{2318}", // ⌘ |
| 723 | "MermaidInteractive" => "\u{25c7}", // ◇ |
| 724 | "ContextCompression" => "\u{21af}", // ↯ |
| 725 | "AnalyzeImage" => "\u{25a3}", // ▣ |
| 726 | _ if tool_name.starts_with("mcp_") => "\u{2261}", // ≡ |
| 727 | _ => "\u{00b7}", // · |
| 728 | } |
| 729 | } |
| 730 | |
| 731 | // ======================= opencode-compatible theme.json ======================= |
| 732 |
no outgoing calls
no test coverage detected