Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Opening local files/folders fails #264

Open
1 of 2 tasks
crashmaster opened this issue Nov 30, 2017 · 6 comments
Open
1 of 2 tasks

Opening local files/folders fails #264

crashmaster opened this issue Nov 30, 2017 · 6 comments

Comments

@crashmaster
Copy link

I'm opening this issue because:

  • I'll report a bug
  • I'll propose a new feature

Description

Opening local files/folders fails with: Illegal URL ... message.

Failure Information (for bugs)

See description.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. type: :t file:///tmp

System configuration

  • Operating system:
    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=16.04
    DISTRIB_CODENAME=xenial
    DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS"
  • Firefox version:
    57.0 (64-bit)
  • Vim-Vixen version:
    0.7
@robehickman
Copy link

This also happens with 'about:config'.

@ueokande
Copy link
Owner

related to #106?

@Nikoshi
Copy link

Nikoshi commented Oct 15, 2018

You can open the file link for C: with C:\ for example.
The same should work with linux like paths

grafik

which links to

grafik

@haxwithaxe
Copy link

haxwithaxe commented Dec 11, 2018

For the reference of those who come searching for answers like I did:

Extensions aren't allowed to load file:// URIs.

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/create

@ueokande ueokande mentioned this issue Feb 25, 2019
@MRAAGH
Copy link

MRAAGH commented May 1, 2020

I also noticed this issue immediately when I wanted to navigate using Vim Vixen on my local WIP website. For those in the same situation, the solution is to run a local web server to serve your test site, then connect with a localhost URL! 😀

I don't think it's impossible for extensions to open local files, though; because Vimium-FF is also an extension and it handles local links just fine! Make a file a.html with this content:
<a href="b.html">b</a>
Then open it directly in Firefox. Try keyboard-clicking the link with Vim Vixen and it says "illegal URL". But if you try to keyboard-click it with Vimium-FF, it'll work! It'll go to the URL file:///.../b.html and tell you that this file does not exist.

@veotos
Copy link

veotos commented Sep 2, 2020

My temporal workaround to stick my fingers to the keyboard is search ( /whatever pressing n as needed) for the link keywords and press enter. It opens filesystem links, which is funny.

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

No branches or pull requests

7 participants