MCPcopy Create free account
hub / github.com/anomalyco/opencode / key

Function key

packages/app/src/components/file-tree.tsx:215–219  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

213 const draggable = () => props.draggable ?? true
214
215 const key = (p: string) =>
216 file
217 .normalize(p)
218 .replace(/[\\/]+$/, "")
219 .replaceAll("\\", "/")
220 const chain = props._chain ? [...props._chain, key(props.path)] : [key(props.path)]
221
222 const filter = createMemo(() => {

Callers 4

SettingsProvidersContentFunction · 0.70
FileTreeFunction · 0.70
pushFunction · 0.70
SettingsProvidersV2Function · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected