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

Previewing directories like files #701

Closed
jryom opened this issue Sep 29, 2021 · 3 comments
Closed

Previewing directories like files #701

jryom opened this issue Sep 29, 2021 · 3 comments

Comments

@jryom
Copy link

jryom commented Sep 29, 2021

I was trying to figure out a way to use tree to preview directories, but it seems that lf will only allow custom preview functionality for files (is this correct or did I miss something?).

It would be great to also have the option of using custom previewing for directories.

And thanks for making this great tool!

@gokcehan
Copy link
Owner

gokcehan commented Oct 9, 2021

@jryom previewer only works for text files and binary file previews have been requested before in #322 but I don't think we have a dedicated issue for directory previews so far. So let's keep this open in case someone wants to work on this.

@rickalex21
Copy link

@gokcehan I'm trying to display help in the preview, the problem is when I'm on a directory I can't see the output. Currently using Yad dialog box as a work around. Tree would be nice as well. Not sure if there's a better approach?

cmd help %{{ 
    sed -n  -E -e "/^# $1$/,/^$/p" ~/.config/lf/lfrc| yad --text-info 
}}
map Ht help "Tags"

Preview

sed -n  -E -e "/^# $1$/,/^$/p" ~/.config/lf/lfrc
exit 1

Thanks

@joelim-work
Copy link
Collaborator

This was fixed in #842, this issue wasn't linked properly in the PR.

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

No branches or pull requests

4 participants