Closed BarretRen closed 4 months ago
After such a long time, nothing happens. So, close this. Fuck that.
Sorry, I couldn't test this. Will do today
Well, the highlight is moved to left.
https://github.com/nvim-pack/nvim-spectre/blob/817944747413ead7438ec28334201a340898b7e6/lua/spectre/ui.lua#L31-L33
Add to this line length of line
text_opts.item_line
so it compensate highlight to move right.
Also add in https://github.com/nvim-pack/nvim-spectre/blob/817944747413ead7438ec28334201a340898b7e6/lua/spectre/ui.lua#L36-L38
If you busy, I can add myself. Sorry, for late reply. I was busy.
Thanks for reopen this pull request and very sorry about my rude words before. I have rebased the changes with the master branch and added a new changeset to fix the highlight issue.
It seems ok on my server, here is the test result:
I didn't notice the highlight before and forget to check this. Sorry about that and sorry about my rude words in previous comment again.
There is another 3 call in init.lua
which calls render_line
. Can you add them also item_line
?
I got error when typed replace word because it calls another render_line
.
Sorry about that and sorry about my rude words in previous comment again.
It helped me finally look for this project again. Thank you, lol.
There is another 3 call in
init.lua
which callsrender_line
. Can you add them alsoitem_line
? I got error when typed replace word because it calls anotherrender_line
.
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:![image](https://github.com/nvim-pack/nvim-spectre/assets/13688920/22dfae42-79b2-46f6-8e17-a1eaba42ef4b)
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.![image](https://github.com/nvim-pack/nvim-spectre/assets/13688920/a2957354-c377-4063-b560-c55b5566d76d)
This pull request is used to show the new formats, please help to check it.