obsidian-api
obsidian-api copied to clipboard
API for Share menu on mobile apps
Is there possibility to alter Share menu on mobile apps? I'd like to add new button for easier saving of content using https://github.com/DominikPieper/obsidian-ReadItLater . I cannot find any method in current API to achieve this.
There is one actually, it's just not yet exported in the public definitions.
workspace.on('receive-text-menu', callback: (menu: Menu, text: string) => any, ctx?: any);
workspace.on('receive-files-menu', callback: (menu: Menu, files: TFile[]) => any, ctx?: any);