If a non-text document is to be viewed (or previewed), $PAGER probably isn't
the best choice.
Allow an external command to be run that will be used for opening a file.
It could be set via an environment variable or a command line option. It will be
the name of a script to run for previewing, viewing or opening a file.
The script will be called from the kb tool with the following arguments:
Name of file to preview
Action to be taken
open - this could be a non-terminal program like zathura for pdfs
preview - This would need to be a terminal program and would run inside
fzf's preview
<line number> - this would be the line number if relevant
If a non-text document is to be viewed (or previewed), `$PAGER` probably isn't
the best choice.
Allow an external command to be run that will be used for opening a file.
It could be set via an environment variable or a command line option. It will be
the name of a script to run for previewing, viewing or opening a file.
The script will be called from the kb tool with the following arguments:
1. Name of file to preview
1. Action to be taken
1. open - this could be a non-terminal program like zathura for pdfs
1. preview - This would need to be a terminal program and would run inside
fzf's preview
1. \<line number\> - this would be the line number if relevant
If a non-text document is to be viewed (or previewed),
$PAGER
probably isn'tthe best choice.
Allow an external command to be run that will be used for opening a file.
It could be set via an environment variable or a command line option. It will be
the name of a script to run for previewing, viewing or opening a file.
The script will be called from the kb tool with the following arguments:
fzf's preview