Comments (14)
I just posted an article for my publication, Apple Dispatch, about integrating SingleFile, Apple Notes and Safari that is relevant to this suggested feature request and also how to harness the power of SingleFile in general.
The way that I'm sharing items now is by Right-clicking the downloaded HTML file, selecting Share…, and then choosing Notes. It would be great to have the tighter integration built directly into the Safari Share Sheet.
Thanks for your continued efforts on such an amazing tool!
from singlefile.
Thank you very much for the article. I did a quick test in Safari and it looks promising. The good news is that it supports the navigator.share()
API.
FYI, here is the test I did:
- Open https://www.example.com in Safari
- Open the JavaScript console (via the menu
Develop > Show JavaScript Console
) - Paste the code below in the console and press Enter
document.onclick = () => navigator.share({ files: [new File([ document.documentElement.outerHTML ], "example.html")]})
- Click anywhere on the page
- A popup should allow you to add the page in Notes
I will do a more advanced integration test in SingleFile, I'll keep you informed ;)
from singlefile.
That is absolutely fantastic! I just ran the code you posted and it works perfectly! Thanks for sharing it.
I noticed if I click away from the share sheet, without sharing to Notes, I get these errors in the console: (Unhandled Promise Rejection: InvalidStateError: share() is already in progress) and this one: (Unhandled Promise Rejection: AbortError: Abort due to cancellation of share.) Maybe this is the intended behavior?
I put the word out about my article highlighting SingleFile over at the excellent /MacApps subreddit and they are really digging it there. It’s turning on a lot of people (≈ 3.9k currently) to your wonderful extension in the Apple community.
Yes indeed, please keep me in the loop as things progress. I will be posting about this @Apple Dispatch for my Apple Notes series once this feature becomes a reality.
Truly exciting developments!
from singlefile.
It's implemented. I added a new option share page
in the Destination
section. When checked, a banner with a Share page...
button will appear at the top of the page when you save it. By clicking on this button, you will be able to share the saved page on Notes, see the screenshot below. Unfortunately, this button requires an extra click, but I have no choice from a technical point of view.
The new option will be available in the next version.
from singlefile.
Thanks so much for your excellent work on this new feature! I love to see SingleFile getting even tighter integration with Safari and Notes.
Can't wait to see this drop on the App Store.
from singlefile.
The new version (1.2.0) is available for download on the App store.
from singlefile.
This is absolutely killer! Is there a way for this new implementation to also work for Save selection to Notes?
from singlefile.
Actually, it should also work for selection if you use the context menu and select 'Save selection' instead of clicking on SingleFile button.
from singlefile.
That's great! Is there a way for the 'Share page…' button to change to 'Share selection…' when choosing that option from the context menu?
from singlefile.
Thank you for the suggestion, it is fixed. The fix will be available in the next version.
from singlefile.
Any time. Well done!
from singlefile.
Is there a way to get macOS Spotlight to index the HTML files saved by SingleFile? It seems that files saved to Apple Notes can only be searched by title and not by the text contained within each HTML document.
from singlefile.
I don't think it's possible. It looks like it's a "bug" in Notes, see https://discussions.apple.com/thread/251960240?answerId=253757819022.
However, you can search for attached pages with the Finder in ~/Library/Group Containers/group.com.apple.notes/Accounts
.
from singlefile.
You're definitely on to something with that Apple Discussion thread. I was able to find out that Spotlight will index and search text content within Safari webarchives, but Notes cannot do the same. It looks like Apple did not implement that part of the Spotlight Index API in Notes.
So, it seems pretty clear why Notes cannot search SingleFile archives, but I'm still not sure why Spotlight can't search them. Maybe, Apple only allows the API to work on its own HTML archive format?
from singlefile.
Related Issues (20)
- Auto save on tab removal HOT 3
- Unable to edit page on mzh.moegirl.org.cn, blank in annotation editor with `Content Security Policy` errors (but open success, saved with smaller size) HOT 2
- Saving with Zip format (including SingleFileZ) fails to save some elements HOT 1
- The `white-space` attr will be removed after saving in Safari HOT 3
- Ability to run SingleFile within a Playwright context HOT 1
- Underlining of text HOT 1
- 保存网页后,本地html文件无法正常显示网页内容 HOT 3
- Re-save a folder as a self-extracting zip html file HOT 3
- This url is not being saved: http://dewbell.biz/en/products/water-pipe-love HOT 9
- SingelFile does not work on Android Microsoft Edge at all HOT 4
- Some tab / button trigger by js not working HOT 3
- feature request: debug log traces to be monitored in console HOT 4
- I'm bit confused about help page HOT 1
- Why can't I click this button,i want debug the crx! HOT 1
- ebay capture doesn't save all images HOT 1
- SingleFile freezes when saving with Zotero Connector enabled HOT 9
- Freeze on a Japanese website HOT 1
- 有些网址无法下载图片 HOT 1
- ScienceDirect snapshots are missing styles HOT 4
- Non-technical person here! Is it possible to save full websites with this? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from singlefile.