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.

Allow files to be opened only for the current tab

0 votes
asked Mar 24 in vifm by dmlemos


I am wondering if there is a way to open mpv only on the current tab. When programs run, vifm is hidden until the program finishes. This makes it impossible to see tabs or switch between them.

My reasoning is to keep one sticky tab for music directory browsing, while still using other tabs for other things. I suspect this could be useful for other things, as ex: file transcoding.
Switching to background playing is not an option.

This is my filetype config:

filetype *.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus,*.webm,*.aac
                \ {Play with mpv}
                \ clear && mpv %f

Would this be a job better suited for a terminal multiplexer or am I missing something here? If so, is there a plugin to do this with tmux?

1 Answer

0 votes
answered Mar 24 by xaizek


vifm doesn't have builtin terminals, so you can't have multiple consoles within it.

You're right that terminal multiplexers are a good fit for this job. There is some basic builtin support, which is enabled via :screen command. It's called "screen", but works with tmux as well (active terminal multiplexer is detected automatically). After activation, applications started by vifm will be placed in separate tabs.

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.