// Taken from https://github.com/pixeldesu/pixelde.su/blob/main/src/assets/js/modules/vscode.js // Adopted by dish const editorTargets = document.querySelectorAll("[data-editor-file]"); editorTargets.forEach((target) => { target.addEventListener("click", (event) => { globalThis.open( `zed://file/${event.currentTarget.dataset.editorFile}`, "_self", ); }); });