Skip to content

How to make ripgrep display the completed content of the searched results #2688

Answered by BurntSushi
khailifz asked this question in Q&A
Discussion options

You must be logged in to vote

The [... 0 more matches] is appearing because ripgrep is trimming a long line. This is not default behavior. You had to opt into it. Either you're passing the -M/--max-columns flag explicitly, or you have it in an alias, shell function, wrapper script or a ripgrep config file.

If you re-run your command with --debug, then it should show any arguments loaded from a config file. Otherwise, try running which rg to see whether it's an alias or a shell function or a wrapper script that's inserting the extra argument.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by khailifz
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