Skip to content
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

Jumping jumps to line instead of character #229

Open
sheerun opened this issue Jun 17, 2020 · 6 comments
Open

Jumping jumps to line instead of character #229

sheerun opened this issue Jun 17, 2020 · 6 comments

Comments

@sheerun
Copy link

sheerun commented Jun 17, 2020

It seems that jumping to search results (at least when using quick list) is jumping to the line that matched, instead of characters that matched, like /. Is there a way to configure it?

@lbonn
Copy link
Collaborator

lbonn commented Jun 17, 2020

You can customize grepprg and grepformat to not contain a column ("%c").

See vim-grepper's docs and :help errorformat.

@sheerun
Copy link
Author

sheerun commented Jun 17, 2020

What I mean is that it doesn't contain column by default

@lbonn
Copy link
Collaborator

lbonn commented Jun 17, 2020

Ah ok the title of the issue sounds like you were looking for the opposite.

Then it should work out of the box if you use a tool that supports it: ag, rg, sift, ack, ack-grep, git (recent versions).

@sheerun
Copy link
Author

sheerun commented Jun 17, 2020

it doesn't work ripgrep

@rafikdraoui
Copy link

@sheerun What is the value of g:grepper.rg.grepformat? By default, it's f:%l:%c:%m,%f, which should recognize column numbers. Otherwise maybe g:grepper.rg.grepprg is set to something that doesn't output column numbers?

@sheerun
Copy link
Author

sheerun commented Jul 12, 2020

I haven't changed the default. https://github.com/jremmen/vim-ripgrep works for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants