-
Notifications
You must be signed in to change notification settings - Fork 207
Description
Did you check the docs?
- I have read all the trouble.nvim docs
Is your feature request related to a problem? Please describe.
Oftentimes I have to make some changes to all items in the Trouble list (e.g., look up all LSP references to a function, add a new parameter, then update all call sites).
When making changes to an item, I want to be able to hide the Trouble window (especially when working on a laptop without access to an external monitor), and go back to it when done to pick the next item to work on.
This is currently not possible: if I use the close or jump_close actions, the Trouble window is deleted and cannot be resumed or restored. Repeating the lookup isn't always feasible (e.g., if I already made changes to the function signature, the LSP won't find all the references).
Describe the solution you'd like
Provide a Trouble resume command, similar to :lua Snacks.picker.resume(), :FzfLua resume, and :Telescope resume, that would restore the last Trouble window and its state (same mode, selected item, cursor position, etc.).
Optionally, if necessary to make the new command simpler to implement, new actions in the Trouble window could be defined:
close->hidejump_close->jump_hide- etc.
Describe alternatives you've considered
Keeping the Trouble window open at all times, which takes up screen space and is not great when working on laptops without access to an external monitor.
Additional context
No response