anytype-ts icon indicating copy to clipboard operation
anytype-ts copied to clipboard

add "Save Web Content" in context menus

Open ahonn opened this issue 1 year ago • 3 comments

Have you read a contributing guide?

  • [X] I have read CONTRIBUTING.md
  • [X] I have searched the existing requests and didn't find any that were similar
  • [X] I have considered creating a pull request instead and want to proceed

Clear and concise description of the problem

Now using Web Clipper can only be triggered by the extension icon on the toolbar, I want to trigger it through the context menu similar to the Notion web clipper or Readwise Reader browser extension. This way is more convenient.

Suggested solution

It looks like we have contextMenus permission already: https://github.com/anyproto/anytype-ts/blob/main/dist/extension/manifest.json#L16, but it doesn't seem to be used. We can refer to https://developer.chrome.com/docs/extensions/reference/api/contextMenus#method-create to implement this feature, which should not seem particularly difficult.

Alternative

No response

Additional context

Would be happy to help add this feature and if possible I will raise a PR.

ahonn avatar May 07 '24 07:05 ahonn

It has context menu if webclipper is authorised. Screenshot 2024-05-07 at 10 19 21 Screenshot 2024-05-07 at 10 19 08

ra3orblade avatar May 07 '24 08:05 ra3orblade

It's weird, I installed it on the Chrome extension store. I tried it on Arc and Chrome, but it didn't have a context menu. Do I need to install it from elsewhere? The version I installed is v0.0.5.

ahonn avatar May 07 '24 08:05 ahonn

Okay, I know why, I need to select & right-click text to have context menu. What I actually want is the function triggered by the icon on the toolbar, right-click and save bookmark to anytype.

ahonn avatar May 07 '24 08:05 ahonn