Skip to content

Is there a better way to show file name only when do grep? #1407

Answered by cpcopy
cpcopy asked this question in Q&A
Discussion options

You must be logged in to vote

Just find the code for filename_first formatter. \t is used as delimiter between tail and parent.

 return tail .. "\t" .. parent %s

With configuration as below, I can show file name only.

["--delimiter"] = "[:\t]"

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@cpcopy
Comment options

Comment options

You must be logged in to vote
2 replies
@ibhagwan
Comment options

@cpcopy
Comment options

Comment options

You must be logged in to vote
1 reply
@ibhagwan
Comment options

Answer selected by cpcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants