glushchenko / fsnotes

Notes manager for macOS/iOS
https://fsnot.es
MIT License
6.46k stars 474 forks source link

Share Extension? #743

Open odysseus90210 opened 4 years ago

odysseus90210 commented 4 years ago

Describe your feature request It would be great to see a Safari extension that would allow the clipping of web pages.

Additional context Both for Mac OS and iOS

gingerbeardman commented 4 years ago

You can already do this on macOS:

for Selected Text

for Clipboard Contents

odysseus90210 commented 4 years ago

Hi,

I’m not completely sure I understand. Do you mean that FSNotes works with services so that I can “send” a web page from Safari to it?

Best, Marc

On 18 Nov 2019, at 7:21, Matt Sephton wrote:

You can already do this using:

or

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/glushchenko/fsnotes/issues/743#issuecomment-555012100

gingerbeardman commented 4 years ago

Yes.

odysseus90210 commented 4 years ago

It would be nice if FS Notes had an app extension and appeared in the “Share” menu.

Best, Marc

On 18 Nov 2019, at 8:01, Matt Sephton wrote:

Yes.

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/glushchenko/fsnotes/issues/743#issuecomment-555027232

gingerbeardman commented 4 years ago

I agree. Would be useful for macOS and iOS.

More info for @glushchenko ...

UI https://developer.apple.com/design/human-interface-guidelines/macos/extensions/share-extensions/

Code https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/Share.html

rc979 commented 3 years ago

@glushchenko are you considering implementing this anytime soon?

gingerbeardman commented 3 years ago

Did you try the solutions posted above @rc979 ?

wcray commented 9 months ago

Thread necromancy, but it seems this is the most likely place someone will come land if they're trying to use the services:

The "Add Selection as Markdown" service/quick-action does not seem to work with semi-modern versions of MacOS -- python version problem.

A viable solution is to install the html2text module and replace the entire Python block that previously implemented the html2txt code in the automator workflow, with the following snippet. It remains up to the user to get python into /user/local/bin/ or to add their local python installation to the shells.plist that controls what's available to automator. While a sloppy solution, a symlink from your local python3 executable to /usr/local/bin/python may work.

import html2text import sys

if name == "main": baseurl = '' data = sys.stdin.read() sys.stdout.write(html2text.html2text(data, baseurl))