GNOME Bugzilla – Bug 764204
Primary and secondary carets/cursors not distinguishable by default
Last modified: 2016-04-02 09:22:43 UTC
Created attachment 324766 [details] gedit 3.20 with secondary caret See the gedit screenshot. The two cursors are around "aa" inside a RTL text. The secondary cursor is not distinguishable from the primary cursor by default. The colors are tunable with CSS, but it would be better to have good defaults. If you want to play with caret colors in CSS, here is an example: * { caret-color: blue; -gtk-secondary-caret-color: red; } The text used in the screenshot: > ﺩَّﺓِ ﻪﻳ ﺲﻠﺴﻟﺓٌ ﻢﻧ ﺎﻠﺤﻣﻼﺗ ﺎﻠﻌﺴﻛaaﺮﻳَّﺓ ﺎﻠﺘﻳ ﺶﻨَّﻫﺍ
I think the primary one could work as it is (text color), no? What is the seconday caret color for?
(In reply to Lapo Calamandrei from comment #1) > I think the primary one could work as it is (text color), no? > What is the seconday caret color for? Its for coloring the secondary caret
I set the secondary caret the selection blue, closing, feel free to reopen if it doesn't work (I'm not too fond on rtl languages).
Can you link to the git commit? On gtk+ master the two cursors are still black.
BTW I don't know exactly myself how the secondary cursor is supposed to be used, but I guess it helps to edit the text when there is a mix of LTR and RTL text in the same paragraph. When both cursors are visible, some keys act on the primary cursor, and others act on the secondary cursor. For example backspace vs delete. It is clearer with the LTR text 'ab' instead of 'aa', so we can see whether 'a' or 'b' is deleted.
Forgot to push, sorry Sébastien, here we go tho b1205a9c9622e9b01b078e571309ab8d29c2685c I did some googling about the usage w/o much success so I have no idea if the color is right, but at least it's different than the primary one.
Thanks, works fine.