nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 7b117518211571cf8bf27b04b0c4f5f7a09699f4
parent 91cf9495bfe06ab6901c28f98cddfd42067738f7
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Mon,  3 Feb 2025 22:20:21 +0530

Merge pull request #1989 from psicho2000/feat/preview-via-jq

Use jq to preview json if installed
Diffstat:
Mplugins/preview-tui | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/plugins/preview-tui b/plugins/preview-tui @@ -323,6 +323,12 @@ handle_ext() { elif exists bsdtar; then fifo_pager bsdtar -tvf "$1" fi ;; + json) + if exists jq; then + fifo_pager jq --color-output '.' "$1" + else + fifo_pager pager "$1" + fi ;; *) if [ "$3" = "bin" ]; then fifo_pager print_bin_info "$1" else