MCPcopy
hub / github.com/21st-dev/1code / handleCopyPath

Function handleCopyPath

src/renderer/features/changes/changes-view.tsx:864–867  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

862
863 // Context menu handlers
864 const handleCopyPath = (filePath: string) => {
865 const absolutePath = `${worktreePath}/${filePath}`;
866 navigator.clipboard.writeText(absolutePath);
867 };
868
869 const handleCopyRelativePath = (filePath: string) => {
870 navigator.clipboard.writeText(filePath);

Callers 1

ChangesViewFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected