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

Add a generic open external link file plugin #64

Open
mrvkino opened this issue Mar 21, 2016 · 7 comments
Open

Add a generic open external link file plugin #64

mrvkino opened this issue Mar 21, 2016 · 7 comments
Labels
All Platforms help wanted help wanted to fix this issue

Comments

@mrvkino
Copy link

mrvkino commented Mar 21, 2016

I have some file (ex: pdf) that I want to link in my file but sublime cannot open them. Adding a file plugin with [[file:]] could send a request to the os to open a file. For example on osx the call would become "open " and let the os figure it out.

@danielmagnussons
Copy link
Owner

There is support for that today, without the "file://" . Try with [[/home/daniel/.login]]

@mrvkino
Copy link
Author

mrvkino commented Mar 23, 2016

If the file linked is a pdf it will open the pdf in sublime instead of an external program. What I am talking about is a way of specifying a file to open in an external application.

@danielmagnussons
Copy link
Owner

Ah, yes i like it [[open:/path/here/to/something.jpg]]

@ErichDonGubler
Copy link

ErichDonGubler commented Oct 7, 2016

@danielmagnussons: The file opening works with relative paths in Windows, but not absolute ones:

- [ ] Some todo [[.\tasks\331885.org]]

...works. But this:

- [ ] Some todo [[C:\Users\erich.gubler\Desktop\tasks\331885.org]]

...does not.

Should I open a separate issue for this?

EDIT: I'm using Windows GVim right now, hence my expectation that these paths should work.

@danielmagnussons danielmagnussons added the help wanted help wanted to fix this issue label Mar 3, 2018
@reignmaker
Copy link

@ErichDonGubler this format should work
- [ ] Some todo [[\C\Users\erich.gubler\Desktop\tasks\331885.org]]

@ErichDonGubler
Copy link

@reignmaker: In which working environment? There's Cygwin, MSYS2, WSL{,2}, a the GVim distribution for Windows. :) I'll amend my previous comment to include what I was referring to -- native GVim, which supports native Windows paths in most places already.

@reignmaker
Copy link

Hi @ErichDonGubler!
I'm using Sublime 3, Git for Windows (Cygwin, I guess?) on Win 7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
All Platforms help wanted help wanted to fix this issue
Projects
None yet
Development

No branches or pull requests

4 participants