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.

Dynamic menu based on the file type or extension

0 votes
asked Jul 10, 2018 in vifm by anonymous

i wonder if it's possible to get a dynamic list of commands based on the current file extension/contents. something that would present me with different options for .jpg file (edit in gimp, open in geeqie, delete exif data) and for .pdf (open in okular, xpdf..) for instance.

1 Answer

0 votes
answered Jul 10, 2018 by xaizek
selected Jul 10, 2018 by xaizek
Best answer

If output of vifm --version contains the following line:

Parsing of .desktop files is enabled

Then :file command should display such list based on what other software is installed in the system. If the line above ends with disabled, you'll only see associations that are set in vifmrc file.

commented Jul 10, 2018 by anonymous

thank you a ton, exactly what i was looking for. j

If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here is acceptable, but this is not a perfect place for them.