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

as per title, there's a way to customize the command that build the directory preview? Could I make it so it colorize the content like tree -C?

1 Answer

0 votes
by
selected by
 
Best answer

You can use tree directly like this:

fileviewer .*/,*/ tree -C %c
by

vifm 0.14

Hi,

about the QUICKVIEW, I'd appreciate it if you could put me on the right path, I have two questions:

a) I have tried the answer from xaizek to vuenn

fileviewer .*/,*/ tree -C %c

in the VIFM command line and also in VIFMRC, I wasn't successfull, the color are the same, black and white. In terminal tree -c is working well, some colors are there. what did I miss?

b) is it possible to export the content of the QUICKVIEW like :! ls -R > output does?

Thank you so much for your time

by

Hi,

a) You probably have a different previewer matching directories above the added line. Do :fileviewer dir/ to check and see what that is.

b) No, there is no way store that contents.

by

thx for your answer

I made

:fileviewer dir/

and have the message:

No viewers match dir/

Tomorrow is sunday, I will read the VIFM doc to see what it is

by

Could you have edited wrong file? The easiest way to open the correct one is running :edit $MYVIFMRC in Vifm.

...