MCPcopy Index your code
hub / github.com/codeaashu/claude-code / classifyGuiEditor

Function classifyGuiEditor

src/utils/editor.ts:49–52  ·  view source on GitHub ↗
(editor: string)

Source from the content-addressed store, hash-verified

47 * 'code' → matches.
48 */
49export function classifyGuiEditor(editor: string): string | undefined {
50 const base = basename(editor.split(' ')[0] ?? '')
51 return GUI_EDITORS.find(g => base.includes(g))
52}
53
54/**
55 * Build goto-line argv for a GUI editor. VS Code family uses -g file:line;

Callers 2

openFileInExternalEditorFunction · 0.85
isGuiEditorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected