Welcome to Vifm Q&A, where you can ask questions about Vifm usage. Registration is optional, anonymous posts are moderated. GitHub or Google logins are enabled.
0 votes
in vifm.vim by

I want to set a different fileviewer depending on the folder I'm in.

something like

fileviewer /SPECIALFOLDER/*.pdf myfancyscript %f

fileviewer *.pdf pdftotext -nopgbrk %c -

1 Answer

+1 vote
by
selected by
 
Best answer

See patterns section of the documentation. In your case it will look something like:

fileviewer {{/path/to/SPECIALFOLDER/*.pdf}} myfancyscript %f

fileviewer *.pdf pdftotext -nopgbrk %c -

P.S. Looks like notification email got lost, saw the question just now.

by

Thank you so much xaizek! You are the best <3

...