NikitaIvanovV / ctpv

Image previews for lf file manager
https://www.nikitaivanov.com/man1/ctpv
MIT License
264 stars 23 forks source link

Change preview program for directories #73

Closed archelaus closed 1 year ago

archelaus commented 1 year ago

For some reason it doesn't seem to be working? I've tried changing the program for mimetype inode/directory but it's still using ls. I'd like to switch it to tree instead of just plain ls. Not sure but it could be an lf issue, ctpv works as expected interactively.

Here's the relevant part from the config:

preview directories inode/directory {{
  tree "$f"
}}
archelaus commented 1 year ago

Closing this because I just came across dirpreviews option in lf while going through the issues on their repo. Here's the relevant PR. It works as intended (Add this to your lfrc set dirpreviews)