fsnotes icon indicating copy to clipboard operation
fsnotes copied to clipboard

Share Extension?

Open odysseus90210 opened this issue 6 years ago • 8 comments

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

odysseus90210 avatar Nov 18 '19 04:11 odysseus90210

You can already do this on macOS:

for Selected Text

  • https://github.com/glushchenko/fsnotes/wiki/Services-(macOS)

for Clipboard Contents

  • https://github.com/glushchenko/fsnotes/wiki/Alfred-Workflow

gingerbeardman avatar Nov 18 '19 13:11 gingerbeardman

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:

  • https://github.com/glushchenko/fsnotes/wiki/Services-(macOS)

or

  • https://github.com/glushchenko/fsnotes/wiki/Alfred-Workflow

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

odysseus90210 avatar Nov 18 '19 13:11 odysseus90210

Yes.

gingerbeardman avatar Nov 18 '19 14:11 gingerbeardman

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

odysseus90210 avatar Nov 18 '19 14:11 odysseus90210

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

gingerbeardman avatar Nov 18 '19 15:11 gingerbeardman

@glushchenko are you considering implementing this anytime soon?

rc979 avatar Sep 04 '21 03:09 rc979

Did you try the solutions posted above @rc979 ?

gingerbeardman avatar Sep 10 '21 17:09 gingerbeardman

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

wcray avatar Feb 05 '24 21:02 wcray