-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
show line number for each result text #199
Conversation
After such a long time, nothing happens. So, close this. Fuck that. |
Sorry, I couldn't test this. Will do today |
nvim-spectre/lua/spectre/ui.lua Lines 31 to 33 in 8179447
Add to this line length of line text_opts.item_line so it compensate highlight to move right.Also add in nvim-spectre/lua/spectre/ui.lua Lines 36 to 38 in 8179447
|
If you busy, I can add myself. Sorry, for late reply. I was busy. |
…he filename Signed-off-by: Ren xiuhu <[email protected]>
There is another 3 call in |
It helped me finally look for this project again. Thank you, lol. |
new changeset is pushed, please help to check it. |
Well, it fails test because text doesn't match up because of number row. Can you add option to disable it and enable it by default. I will disable on tests later. So if it done, pretty much ready for MR. |
new option lnum_for_results is added: lnum_for_results = true, -- show line number for search/replace results |
LGTM |
Hi, this plugin is so wonderful and I use it everyday. And I found an bug (if we can call it a bug) for the line number, the pull request is used to fix it.
During the search, if there are more than one result found in the same file, we can only see the the line/column numbers of the first matched result showing behand the filename.
Here is an examle:
I think it is useless, because we still can't know the line number of each matched result.
The following formats is more useful. we can see which file the results belong to, and we can also know the line number of each result.
This pull request is used to show the new formats, please help to check it.