agelessdummy / vimwiki

Automatically exported from code.google.com/p/vimwiki
0 stars 1 forks source link

file:/// links without extensions #360

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It is fairly common for files on UNIX-like operating systems to have no 
extension. VimWiki is unable to decide which viewer to use for a filename 
without an extension.

Eg:
 $ echo "this is a text file" > /tmp/a

Now in VimWiki insert the text 'file:///tmp/a' and press enter on it. On my 
system the file is opened in firefox for some reason, whereas the user probably 
wants to open it in vim.

It would be pretty hard for VimWiki to decide what an appropriate viewer 
application is. Perhaps some kind of file-type annotation can be added?

Perhaps: txt:file:///tmp/a ?

Cheers

Original issue reported on code.google.com by vex...@gmail.com on 16 Aug 2012 at 10:51

GoogleCodeExporter commented 8 years ago
I believe with defining your own scheme and using VimwikiLinkHandler hook you 
can do smth very close to what you have asked for.

:h VimwikiLinkHandler

Original comment by habamax on 17 Aug 2012 at 4:16