obsidian-api icon indicating copy to clipboard operation
obsidian-api copied to clipboard

API for Share menu on mobile apps

Open adamluckdev opened this issue 3 years ago • 1 comments

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.

adamluckdev avatar Sep 06 '22 20:09 adamluckdev

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);

lishid avatar Sep 23 '22 00:09 lishid