Text file preview #1096
Answered
by
DusanLesan
sistematico
asked this question in
Q&A
Text file preview
#1096
-
|
How to enable text file preview? lfrc: ~/.config/lf/previewer.sh: ~/.config/lf/clear_img.sh: |
Beta Was this translation helpful? Give feedback.
Answered by
DusanLesan
Jan 29, 2023
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
CatsDeservePets
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


You just need a case for text files in your preview script. Case can be for
text/*. I would put it as*at the end of case statement to be used as default for all cases not matched above.So in your case, that should look like this:
If you want to have syntax highlighting, you can use
batorhighlightpackages instead ofcat