Right now, we hardcode the evince program to open the pdf files. This however doesn't provide enough configurability for the user. And might not work on other operating systems.
|
if fname.ends_with(".pdf") { |
I propose a configuration parameter we create for opening the different mime types.
Even using something like a platform dependent file opener like xdg-open on linux or open on macos would be better.
Right now, we hardcode the evince program to open the pdf files. This however doesn't provide enough configurability for the user. And might not work on other operating systems.
ripgrep-all/src/bin/rga-fzf-open.rs
Line 14 in 2ccf3ee
I propose a configuration parameter we create for opening the different mime types.
Even using something like a platform dependent file opener like
xdg-openon linux oropenon macos would be better.