Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open attachments by links #1717

Open
geshaowen opened this issue Apr 1, 2024 · 1 comment
Open

Open attachments by links #1717

geshaowen opened this issue Apr 1, 2024 · 1 comment
Labels

Comments

@geshaowen
Copy link

When using FSNotes, I need to associate local files, such as PDF, Word, Excel, etc. Currently, after adding a link, I cannot directly open the file. I hope to add a feature where clicking on the link can directly open the corresponding attachment.

@gingerbeardman
Copy link
Collaborator

gingerbeardman commented Apr 1, 2024

Assuming macOS. It's possible with a bit of extra knowledge.

You can do this in Markdown, note there are 3 slashes after file: the third of those is part of the path.

[PDF](file:///Users/yourname/Documents/folder/file.pdf)

You can the file path by copying the file in Finder and then pasting into FSNotes will paste the file path.

  • You can click the link and it will show the file in Finder

Then you will still need to open the file manually (Cmd+O, or Cmd+Down cursor)

  • If you right click and choose "Open in Preview" (or whatever app) it will not open

error: The application “FSNotes” does not have permission to open “file.pdf”.

SO:

Then you can right click the link, choose Services > Open and the file will open in its default app (you can change the default app per-file or globally using the Get Info window on a file of a particular type).

You can also set a hotkey for this Service through System Settings > Keyboard > Keyboard Shortcuts... > Services > Text > Open, but I'm not sure it would make things much easier as you would still need to right click the link before pressing the key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants