Skip to content

'qsv lens' doesn't work with .lessfilter #2795

@wx672

Description

@wx672

I added qsv lens into my .lessfilter as the following:

    *.csv | *.tsv)
        qsv lens "$1"
        ;;

but when I try less file.csv, the terminal window (I'm using wezterm) stucked in a blank screen until I press 'q' to quit.
I tried csvlens $1 in .lessfilter as well, it gave me the same result (blank screen).

I also tried csvlens --colorful file.csv and qsv lens file.csv directly on the command line. Both works very well with colors. Don't know why they don't work in .lessfilter. The almost full version of my .lessfilter file:

#!/bin/sh

case "$1" in
    *.csv | *.tsv)
        qsv lens "$1"
        ;;
    *.iso)
        isoinfo -l -i "$1"
        ;;
     *)
        # We don't handle this format.
        exit 127
        ;;
esac

# No further processing by lesspipe necessary
exit 0

System info:

  • OS: Debian Sid
  • qsv v5.1.0
  • Term: wezterm v20240203-110809-5046fc22
  • csvlens v0.13.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions