implement shims

This commit is contained in:
Nystik
2026-03-07 14:38:51 +01:00
parent 8b43493d87
commit e70fe58459
13 changed files with 664 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
// Shim for remote.shell
// Obsidian uses: openExternal, openPath, showItemInFolder
export const shellShim = {
openExternal(url) {
window.open(url, '_blank');
return Promise.resolve();
},
openPath(filePath) {
// TODO: could trigger a server-side download or preview
console.log('[shim:shell] openPath (stub):', filePath);
return Promise.resolve('');
},
showItemInFolder(filePath) {
// No OS file manager in browser context
console.log('[shim:shell] showItemInFolder (stub):', filePath);
},
};