> some editors display small flag on the cursor displaying current position direction
I was amazed to see IDEA/RustRover doing exactly this [1] when I added BIDI texts to my code to test things out.
[1] https://i.imgur.com/Qqlyqpc.png (image taken from IDEA issue tracker)