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

Can we target files on local computer that are not in our vault? #16

Closed
GitMurf opened this issue Aug 30, 2021 · 10 comments
Closed

Can we target files on local computer that are not in our vault? #16

GitMurf opened this issue Aug 30, 2021 · 10 comments

Comments

@GitMurf
Copy link

GitMurf commented Aug 30, 2021

I'm trying to target a PDF like Obsidian does with linking to local files on your computer that are outside your vault with file://... do you see this as a possibility down the road? Or do you think we will have to have PDFs copied into our vault?

annotation-target: file:///C:%5CUsers%5CShawnMurphy%5COneDrive%5C1_Docs%5CResources%5CISVs%5CMSFT%5CSQL%20Server%5CSQL%20Server%202019%20Licensing%20guide.pdf

image

@elias-sundqvist
Copy link
Owner

I don't see any reason why it shouldn't be possible. I can probably add support for file:// urls the next release.

@GitMurf
Copy link
Author

GitMurf commented Aug 30, 2021

Wow thanks! @elias-sundqvist you are awesome!! This is seriously cool!

elias-sundqvist pushed a commit that referenced this issue Aug 30, 2021
@elias-sundqvist
Copy link
Owner

file: protocol support is now part of the new release.
I have not tested it very much though, so there could be bugs.
local file support

@wenlzhang
Copy link

Is it also possible to support targeting files stored in DEVONthink databases? It would look something like this: x-devonthink-item://123...

@elias-sundqvist
Copy link
Owner

Is it also possible to support targeting files stored in DEVONthink databases? It would look something like this: x-devonthink-item://123...

I don't have a mac, so it would be pretty difficult for me to develop and test. But I'd happily accept a pull request in case someone else wants to add support.

@GitMurf
Copy link
Author

GitMurf commented Aug 30, 2021

@wenlzhang Doesn’t Devon think just have things stored on your local machine anyways? So can’t you just add the file location of the pdf that Devon think stores? It has to sit somewhere locally regardless of whether you use devonthink or not.

@elias-sundqvist
Copy link
Owner

I'll close this issue since the task has been completed, but feel free to open a new issue regarding DEVONthink.

@wenlzhang
Copy link

wenlzhang commented Aug 30, 2021

Doesn’t Devon think just have things stored on your local machine anyways?

@GitMurf Thanks for the suggestion. It's true that one can get an ordinary path of files stored in DEVONthink databases. However, getting the DEVONthink item address would provide a few advantages that I would like to take advange to:

  • DEVONthink can show if a file is referenced in another note stored in one of its databases.
  • If the file is moved to another folder within the DEVONthink database, the link would not break.

Therefore, it would be great to be able to insert a DEVONthink item link directly, instead of an ordinary file path/address.

Here is the new issue: #23

@GitMurf
Copy link
Author

GitMurf commented Aug 30, 2021

file: protocol support is now part of the new release. I have not tested it very much though, so there could be bugs.

@elias-sundqvist FYI I tested the local files outside obsidian vault and it works beautifully! Thank you!

@BarbisanLuca
Copy link

BarbisanLuca commented Aug 2, 2023

Very useful feature! Is it possible to use also relative paths instead of absolute paths?

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

No branches or pull requests

4 participants