|
As a test, I can have implemented the show character name request in a quick and dirty manner and can actually call into the python interpreter and use unicodedata to get a non-control characters name.
Since every key you type in CodeEditor will change cursor positions, you would have to make this call into the python library once for every single key typed!
It is doable on a fast machine with a slow typist, but I shudder to think what this would do for a fast typer on an old machine.
I will try adding a timer and only on timeout adding in the character name. So a user would have to pause their typing briefly so that the timeout fires and the latest character name has time to appear. But trying to read that status bar when constantly typing doesn't really work anyway.
This would necessitate creating a separate name label in the status bar and making a MainWindow member variable to hold the result of the timer firing.
I will keep playing around with this to workaround the slower bridge speed to launch python calls or by limiting the timing and number of calls to keep editing with the keyboard fast.
Last edited by KevinH; 01-13-2026 at 05:20 PM.
|