-
Notifications
You must be signed in to change notification settings - Fork 6
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
Broken view syntax for browsers on Windows #3
Comments
On Unix systems, the command line arguments on firefox work in such a way that calling
will open firefox on the file URL My current suggested solution would be something like changing the creation of the command as follows:
Then you could achieve your behaviour with the config |
Well actually if i run this in a command prompt it works: firefox c:\temp\test.md but it doesn't work within rucola's view |
Ok for this i think i have found the source of the problem: it doesn't work becouse the path passed is
Windows doesn't accept this kind of path: it must have all \ or all / not mixed. So these works
And this doesn't:
|
In this case, what is your specified vault path in your config file? If you are simply running rucola in your note folder without a configured |
I didn't specify any vault_path in the config. I've tried with the config you suggested but still the same result. |
In this case, there must be some internal issue with the way rucola currently reads and build the paths. |
This issue has been fixed by canonicalizing all paths before sending them to external applications (and thus converting to full The next release, |
The default config.toml has this config about the viewer:
The problem with this config is that it doesn't do the job becouse firefox, like any other browser (atleast on Windows OS) wants this syntax:
So if the path is
C:\Temp\test.md
the right argument to pass to the browser isfile:///C:\Temp\test.md
orfile:///C:/Temp/test.md
(works both ways)
How to achieve this?
The text was updated successfully, but these errors were encountered: