-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Carriage return at end of results in Vim quickfix list #869
Comments
This isn't an actionable bug report. Please fill out the issue template as requested. In particular, please include the command you're running, the actual output and the expected output. My suspicion is that this is a duplicate of #416, but you haven't provided enough information, so I can't know for sure. |
Sorry for not following the template. I've updated my original comment that should hopefully be conforming. |
Oh I see. That is a much better bug report, thank you so much for filling in all the details. :-) So yeah I don't think this is a bug in ripgrep. ripgrep probably should not be in the business of silently truncating characters from your search results. It would be pretty simple, I think, to run a script that post-processes the output to normalize line endings to whatever you desire, and I think that would be my preferred route. |
Ok, thank you. |
What version of ripgrep are you using?
ripgrep 0.8.1
-SIMD -AVX
What operating system are you using ripgrep on?
macOS High Sierra Version 10.13.3
Describe your question, feature request, or bug.
I am using ripgrep as my grep tool in MacVim and I am noticing that after a search in files using the DOS line endings (
fileformat
is set todos
), all the results in the quickfix list have a carriage return character (^M) appended at the end. This is just a cosmetic thing, but would it be possible to get rid of these? I was previously using ack as my Vim grep tool and it did not include those characters at the end.If this is a bug, what are the steps to reproduce the behavior?
echo test > test.txt
in a terminal.vim -u NONE -N test.txt
. This ensures that no plugins get loaded.:grep es
. Press enter repeatedly until you are back in the Vim view of the file.:copen
. Notice that search result displays astest^M
.If this is a bug, what is the actual behavior?
Output of
rg --vimgrep --debug es
:If this is a bug, what is the expected behavior?
It would be nice if the result in the quickfix window displays as
test
regardless of the format of the file being searched.The text was updated successfully, but these errors were encountered: