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

Function handleFileDoubleClick

src/renderer/features/changes/changes-view.tsx:570–574  ·  view source on GitHub ↗
(file: ChangedFile, category: ChangeCategory)

Source from the content-addressed store, hash-verified

568 }, [worktreePath, selectFile, onFileSelectProp]);
569
570 const handleFileDoubleClick = (file: ChangedFile, category: ChangeCategory) => {
571 if (!worktreePath) return;
572 selectFile(worktreePath, file, category, null);
573 onFileOpenPinned?.(file, category);
574 };
575
576 // Toggle individual file for commit (checkbox) - doesn't affect highlighting
577 const handleCheckboxChange = useCallback((filePath: string) => {

Callers 1

ChangesViewFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected