ahrm / sioyek

Sioyek is a PDF viewer with a focus on textbooks and research papers
https://sioyek.info/
GNU General Public License v3.0
7.02k stars 232 forks source link

Make ${file_path} return path with forward slashes on windows #1116

Open libbrfish opened 3 months ago

libbrfish commented 3 months ago

Using sioyek on windows, I'm trying to write a new-command to open the current file in explorer:

new-command _open_in_explorer explorer /select,%{file_path}

does not work due to forward slashes which are not always supported in commands on windows (instead of backslashes).

If instead %{file_path} returns the path with backslashes, these issues on windows will be resolved.