You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing a problem where after jumping to an item in the Trouble list (e.g., pressing <cr> with default bindings), trying to return to my previous view in the file I'm editing (e.g., with CTRL+o) does not work. I.e., pressing CTRL+o does not return to the view immediately prior to jumping, but whatever was before it on the jump list.
I was able to fix this issue (at least superficially) by inspecting these lines of code:
and reversing the order of L11 and L13. That is, saving the current view with m'after switching to the desired window seems sensible here, and seems to fix my issue. I'm not sure if I'm overlooking other cases where the currently implemented behavior is to be desired.
I can provide much more detailed information about my setup (MWE etc.) if this cannot be reproduced. Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
I'm seeing a problem where after jumping to an item in the Trouble list (e.g., pressing
<cr>
with default bindings), trying to return to my previous view in the file I'm editing (e.g., withCTRL+o
) does not work. I.e., pressingCTRL+o
does not return to the view immediately prior to jumping, but whatever was before it on the jump list.I was able to fix this issue (at least superficially) by inspecting these lines of code:
https://github.com/folke/trouble.nvim/blob/main/lua/trouble/util.lua#L10-L13
and reversing the order of L11 and L13. That is, saving the current view with
m'
after switching to the desired window seems sensible here, and seems to fix my issue. I'm not sure if I'm overlooking other cases where the currently implemented behavior is to be desired.I can provide much more detailed information about my setup (MWE etc.) if this cannot be reproduced. Thanks!
The text was updated successfully, but these errors were encountered: