update doc
This commit is contained in:
1 parent
f54acae958
commit
af988284a4
3 files changed
+31
-2
No files matched your search
@@ -1149,6 +1149,14 @@ Besides, it is also important that the application is processing the file on the
|
||||
This is especially relevant for big files.
|
||||
lf automatically closes the previewer script output pipe with a SIGPIPE when enough lines are read.
|
||||
When everything else fails, you can make use of the height argument to only feed the first portion of the file to a program for preview.
|
||||
Note that some programs may not respond well to SIGPIPE to exit with a non-zero return code and avoid caching.
|
||||
You may trap SIGPIPE in your preview script to avoid error propogation:
|
||||
|
||||
#!/bin/sh
|
||||
|
||||
trap "" PIPE
|
||||
|
||||
...
|
||||
|
||||
You may also use an existing preview filter as you like.
|
||||
Your system may already come with a preview filter named 'lesspipe'.
|
||||
|
||||
Reference in new issue
Block a user