Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change preview program for directories #73

Closed
archelaus opened this issue Aug 26, 2023 · 1 comment
Closed

Change preview program for directories #73

archelaus opened this issue Aug 26, 2023 · 1 comment

Comments

@archelaus
Copy link

archelaus commented Aug 26, 2023

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
Copy link
Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant