MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / fillTextareaWithPaths

Function fillTextareaWithPaths

codeclash/viewer/static/js/picker.js:196–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

194}
195
196function fillTextareaWithPaths() {
197 const selectedCheckboxes = getVisibleCheckedCheckboxes();
198
199 if (selectedCheckboxes.length === 0) {
200 showModalWarning(
201 "No folders selected. Please select folders from the table first.",
202 );
203 document.getElementById("bulk-actions-textarea").value = "";
204 return;
205 }
206
207 hideModalWarning();
208 const paths = Array.from(selectedCheckboxes).map((checkbox) =>
209 checkbox.getAttribute("data-path"),
210 );
211 document.getElementById("bulk-actions-textarea").value = paths.join(" ");
212}
213
214function copyToClipboard(text) {
215 // Modern clipboard API (requires HTTPS or localhost)

Callers

nothing calls this directly

Calls 3

showModalWarningFunction · 0.85
hideModalWarningFunction · 0.85

Tested by

no test coverage detected