MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / formatPathLink

Function formatPathLink

source code/utils/completionCache.ts:65–71  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

63}
64
65function formatPathLink(filePath: string): string {
66 if (!supportsHyperlinks()) {
67 return filePath
68 }
69 const fileUrl = pathToFileURL(filePath).href
70 return `\x1b]8;;${fileUrl}\x07${filePath}\x1b]8;;\x07`
71}
72
73/**
74 * Generate and cache the completion script, then add a source line to the

Callers 1

setupShellCompletionFunction · 0.70

Calls 1

supportsHyperlinksFunction · 0.85

Tested by

no test coverage detected