MCPcopy
hub / github.com/claude-code-best/claude-code / handleSelectOption

Function handleSelectOption

src/components/ExportDialog.tsx:34–44  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

32 }, []);
33
34 const handleSelectOption = async (value: string): Promise<void> => {
35 if (value === 'clipboard') {
36 // Copy to clipboard immediately
37 const raw = await setClipboard(content);
38 if (raw) process.stdout.write(raw);
39 onDone({ success: true, message: 'Conversation copied to clipboard' });
40 } else if (value === 'file') {
41 setSelectedOption('file');
42 setShowFilenameInput(true);
43 }
44 };
45
46 const handleFilenameSubmit = () => {
47 const finalFilename = filename.endsWith('.txt') ? filename : filename.replace(/\.[^.]+$/, '') + '.txt';

Callers 1

PreviewQuestionViewFunction · 0.85

Calls 3

setClipboardFunction · 0.90
onDoneFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected