Text editor built into Blender.
Fri, Jul 5
Thu, Jul 4
Wed, Jul 3
I didn't thought to compare line object itself against select_end_line.
Someone also gave me this solution on BA thread "Get / set character and line coordinate of the selection in the text editor".
Thanks for the digging.
I have an old addon (which is outdated) that was handling text selection with no problems:
Mon, Jul 1
Fri, Jun 28
I suspect that the reason for it failing is the same as in the initial report. If this is still an issue after that one is fixed, we can reopen this.
Thu, Jun 27
Tue, Jun 25
@Campbell Barton (campbellbarton) For some TE API suggestions Kaio/Iceythe writes:
Mon, Jun 24
So the first step is to locate bugs and shortcomings of the TE API?
If my memory serves me correct, working directly on the selection was not reliable, which made me use the clipboard instead.
Using the clipboard for text tools is a hack which could interfear with the users workflow (they could have some rich text in the clipboard - unrelated to using Blender, which gets overwritten by using this tool).
Sun, Jun 23
@brech Sidebar is moved to the right here. May need help with Do Version to make it apply to already existing Text Editors.
Closing this, since it's just an update to D5028. Best to keep these changes together in the same differential revision.
Updates from D5125:
Sat, Jun 22
Jun 21 2019
Jun 20 2019
Jun 14 2019
Jun 13 2019
Fix wrong diff
Changed layout of the Search & Replace panel:
- Fix wrong greying out of the Margin toggle
To be clear, you don’t need to change the RNA to put a checkbox on the menus.
The following Text Editor Redesign is the result of further discussion with @William Reynish (billreynish)
Jun 6 2019
As for the Display panel, the Live Edit and Tabs as Spaces don't fit anymore. We probably should find a new home for those. We could add them to the Edit menu instead.
Just removed "bpy." - not needed.
For the nesting, I was thinking more like this:
Turned the toggle-buttons into checkboxes.
Renamed Properties to Display
And Show Margin will determine visibility of Show Column:
Just set toggle=False to make the icon toggles into normal checkboxes. You don't have to change RNA.
Yes, there are many things which could be improved, but on the things you mention, most of the functions are still defined in C here:
... and I'm not able to code C. I'm sorry.
I would even go further: