window.FileCommands = window.FileCommands || [];
window.FileCommands.push({
label: "📝 InstaFile (Replace)",
appliesTo: (file) => !file.is_dir,
async action({ file, currentPath, showToast, confirmModal }) {
const ok = await confirmModal({
title: "Replace File?",
body: `Do you want to replace ${file.name}?`,
confirmText: "Replace"
});
if (!ok) return;
showToast(`Would replace ${file.name}...`);
}
});