FBarrca / obsidian-handwritten-notes

Obsidian Handwritten Notes Plugin
MIT License
147 stars 3 forks source link

Feature request - button to jump to PDF in local filesystem #21

Open m-beau opened 5 months ago

m-beau commented 5 months ago

Hi there,

This is a feature request for Onyx Boox users rather than a bug report.

I just got an onyx boox device running on android 12. These are great in some aspects, but extremely frustrating in others. In particular, the only usable ap for notetaking is their native 'NeoReader' app, which is optimized for their hardware (third party apps are super laggy). It is great though, so no problem using NeoReader. The only issue is that when opening a PDF with NeoReader from any third party app (such as Obsidian in this case), NeoReader will generate a copy of the file to edit and save it to your device 'downloads' folder (and it also saves it to the cache if anybody is reading this and wonders how a pdf can still pop up after deletion from the download folder).

The workaround is to access your PDF directly from the boox native filesystem. If you navigate through your obsidian vault directory structure and open it with NeoReader, it edits the file in place without generating a copy. And your notes therefore appear in obsidian when you reopen the app!

I was wondering if there was a way to implement a button which 'jumps to file on local filesystem' in your package? It would make it super easy to go edit the note from the local directory. This can also be useful if users want to easily move their PDF around in the local directory structure.

Thank you for your awesome package!

m-beau commented 5 months ago

I confirm that the same problem occurs on iPhone iOS with PDFreader for instance - if you edit the file after navigating the local iOS filesystem with PDFreader, it edits the file in place, but if you open it from your plugin in obsidian it creates a copy of the file in PDFreader's own directory. A togglable button jumping to the file in filesystem would make this process super smooth for users!

For some fortunate reason, this isn't a problem on iPad iOS - PDF reader edits the file in place when called from your plugin's button (or from the share button).

FBarrca commented 4 months ago

For iPad Users:

You can use any of the apps listed in the README.

Regarding Boox Devices:

I'm not entirely sure, as I believe they utilize some proprietary pen technology. However, I encourage you to try using the suggested Android apps and share your experience, please. (Primarily Xodo)

FBarrca commented 4 months ago

Regarding the Button for Accessing the File System:

I researched this feature a while ago with the goal of making it easier to import templates. Unfortunately, it's not possible to implement this due to limitations in the Capacitor API that Obsidian utilizes. This functionality is only available on desktop versions.