MCPcopy Create free account
hub / github.com/GCWing/BitFun / tool_icon

Function tool_icon

src/apps/cli/src/ui/theme.rs:701–729  ·  view source on GitHub ↗

Tool icon mapping — Unicode symbols inspired by opencode TUI

(tool_name: &str)

Source from the content-addressed store, hash-verified

699
700/// Tool icon mapping — Unicode symbols inspired by opencode TUI
701pub 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

Callers 2

render_inline_dispatchFunction · 0.85
render_permission_mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected