Skip to content
Discussion options

You must be logged in to vote

The result of the previewer script is cached if it exits successfully (return code of 0), so it won't be run again.

If you want to run something whenever a new file is selected, it is better to define the on-select hook command instead:

cmd on-select &{{
    # replace the contents of `$(ls -l -d "$f")` with whatever you need
    lf -remote "send $id set promptfmt \"$(ls -l -d "$f")\""
}}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by CatsDeservePets
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants