Text editor built into Blender.
@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
Fri, Jun 21
Thu, Jun 20
Fri, Jun 14
Thu, Jun 13
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)
Thu, Jun 6
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:
Apr 25 2019
I'll commit this with some tweaks for code clarity.
Apr 17 2019
Updated the function comment.
Apr 3 2019
Hi, just as a reminder of this DIff I am bumping this thread. Sorry if this is not allowed, but it has been a while since my last diff update.
Mar 27 2019
That flag free_src was there in case of reuse of the function, but I think there will not be many reuses, so removing it may be better.
Mar 25 2019
Changed what was suggested.
Mar 20 2019
I have implemented the suggestions in code style and structure.
As converting from tabs could lead to unexpected behavior, I kept the text unmodified in this case.
Mar 19 2019
Mar 18 2019
off topic: Should I post the code as I mark the comments as done, or should I wait until every comment is solved to post?