Welcome to Vifm Q&A, where you can ask questions about using Vifm. Registration is optional, anonymous posts are moderated. E-mail and GitHub logins are enabled.
0 votes
in vifm by

I defined more than on fileviewer. Changing files when VIEW is active fileviewer is rest to first in list.

Example:

fileviewer *.jpg imagepreviewer %c, mediainfo %c

So inside a directory with jpg-files activtaing preview will use imagepreviewer as default. After changing previewer with "a" mediainfo ist used as previewer. Changing to next jpg-file will reset fileviewer to imagepreviewer (not mediainfo anymore) and so for every jpg-file "a" is needed to switch from imagepreviewer to mediainfo.

Is there any way to "remember" last used fileviewer?

1 Answer

0 votes
by

There is no way as of now. The difficulty is in deciding when the choice needs to be applied (see the last paragraph of this comment keeping in mind that a single file can be affected by multiple independent :fileviewer commands).

Just now I've thought that maybe a solution is in moving the current viewer to the top in the internal list of viewers (not necessarily on a/A, a separate key could do that). This should have the effect of "remembering the choice". Need to test this, because changing the order of viewers in the global list can have some unexpected side effects.

by

I'm peeking in to thank you so much to give this feature some love, a way to remember the viewer would be amazing

by

Implemented reordering for v0.15, see this comment for details.

by

Thanks a lot for implementing

...