Split View navigation and selection recall for split UI

Use case or problem

So I wanted to make a UI of buttons connected to AI commands but be able to lay them out on a panel. I tried using the commander plug in to create a macro to run a text generator local LLM.

The LLM generates based on cursor location and selection for context.
as soon as you click a button made in an other window the selection is lost.

Proposed solution

Some command that can switch to a pane based based on a list of active panes.

The ability to switch to a pane without clearing a selection from the inactive pane.
This could perhaps be enabled on a per pane bases. enable a “clicking on panel clears selection true/false”

This would allow a panel to contain a custom UI with buttons that have macros that when clicked to switch to the previous active panel with the cursor location or selection intact as soon as the button is clicked so its action is applied to the appropriate location.

Current workaround (optional)

Currently no workaround for this workflow that I have found.

Quick Update. I found a future to stop the side panel from taking focus inside “pane relief” that fixes the above issue.