So you are looking for a way for an edit plugin on exit to control and set a single active tab with focus and with a cursor position?
If so what is the use case? Effectively, validators provide a list of files and offsets which the user can easily use to navigate to each after the plugin completes within the validation ui. Why can't you use that as your interface?
So how would setting a cursor position in a specific tab be useful bcause as soon as the user just clicks someplace, the new cursor position is lost.
Why not instead use a simple Py Qt text edit widget and let the user make text changes directly inside the plugin in which you control cursor positioning completely.
As it stands, inside Sigil we would have to clone the validation ui to make something more generic and then extend the plugin result xml and the plugin interface itself. So a pretty major overhaul.
Last edited by KevinH; 02-03-2018 at 08:35 AM.
|