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

Pressing q takes you to first split rather than last active split

Open Pranshugoyal opened this issue 2 years ago • 4 comments

Pressing q exits the trouble window and takes you back, but if you have multiple windows open then correct behaviour should be to take the user back to the window where they came from. If it's still available.

I also attempted fixing it on my end, its a small change and seems like it works, I've not yet tried all scenarios. But if you're interested I can send a pull request.

Pranshugoyal avatar Sep 02 '22 06:09 Pranshugoyal

yeah, i had reported a similar issue before #189

maybe it can be fixed by doing api.nvim_exec('wincmd p') before view:close() is called

haolian9 avatar Sep 13 '22 21:09 haolian9

This is the solution I implemented.

Pranshugoyal avatar Sep 19 '22 14:09 Pranshugoyal

If I understood the problem correctly this is a duplicate of #59.

okuuva avatar Oct 03 '22 13:10 okuuva

Yes @okuuva

Pranshugoyal avatar Oct 06 '22 08:10 Pranshugoyal

Development on the main branch is EOL.

Trouble has been rewritten and will be merged in main soon.

This issue/feature either no longer exists or has been implemented on dev.

For more info, see https://github.com/folke/trouble.nvim/tree/dev

folke avatar Mar 29 '24 07:03 folke