Vault on plain .md files with FTS5 index, link rewriting, canvas files, history/trash/backup, link previews, image fetch, tasks and unlinked mentions, Notion/Obsidian importer, quick-capture window and shortcut. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
10 lines
358 B
JavaScript
10 lines
358 B
JavaScript
'use strict';
|
|
// The quick-capture window's only bridge (electron/capture.html).
|
|
const { contextBridge, ipcRenderer } = require('electron');
|
|
|
|
contextBridge.exposeInMainWorld('capture', {
|
|
info: () => ipcRenderer.invoke('capture:info'),
|
|
save: (text, to) => ipcRenderer.invoke('capture:save', text, to),
|
|
close: () => ipcRenderer.send('capture:close')
|
|
});
|