Skip to content

Failed to catch the filename when grepping a file(NOT folder) with gnu-grep #247

Open
@sihunqu123

Description

@sihunqu123

Grepper works well with folder:

:Grepper -tool grep -noprompt -quickfix -highlight -grepprg grep -n -i name ./src

While works bad with file:

:Grepper -tool grep -noprompt -quickfix -highlight -grepprg grep -n -i name ./package.json

which will produce a quickfix like(noticed that filename is not captured):

 2:  "name": "bank-demo",||

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions