trouble.nvim icon indicating copy to clipboard operation
trouble.nvim copied to clipboard

Refresh messes up current references list

Open uloco opened this issue 3 years ago • 0 comments

I usually use Trouble to walk through lsp references and so some edits there one after another. After deleting some lines my cursor usually is on another word when I enter the Trouble panel again. When I run refresh here manually, it uses the new word under cursor instead of just refreshing the view. Is there any way to prevent this / is this by design / a bug?

https://user-images.githubusercontent.com/8818340/192774160-1f9586e8-8012-4f91-8b3a-d1c8c97f547c.mov

I also often encounter trouble doing this automatically when I close folds for example and have switched between files. This is when it gets really annoying. I just want to go through all the references and make edits. Sometimes the list is very long and have to close some folds to keep track on some occurrences I want to skip.

If this is the intended behavior, do you have any way of using this workflow in another way?

uloco avatar Sep 28 '22 12:09 uloco