anyproto / anytype-ts

Official Anytype client for MacOS, Linux, and Windows
https://anytype.io
Other
4.48k stars 269 forks source link

add "Save Web Content" in context menus #712

Open ahonn opened 6 months ago

ahonn commented 6 months ago

Have you read a contributing guide?

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.

ra3orblade commented 6 months ago

It has context menu if webclipper is authorised.

Screenshot 2024-05-07 at 10 19 21 Screenshot 2024-05-07 at 10 19 08
ahonn commented 6 months ago

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 commented 6 months ago

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.