Text editor built into Blender.
Fri, Jun 14
Thu, Jun 13
Fix wrong diff
Changed layout of the Search & Replace panel:
- Fix wrong greying out of the Margin toggle
- Change Tabs as Spaces to be an enum called Indentation, with Spaces or Tabs as choices
- Remove Line Number, Word Wrap and Syntax Highlighting toggles from the header. I don't think these are necessary if they are in the View menu, and we get some space back for the things that are exclusive to the header
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 space for those.
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?
Mar 15 2019
This doesn't fix the main bug in T60234: Shift+Tab only works with new text, which I think is that our indent/unindent operators should work with both tabs and spaces. But we can consider this as a change on its own.
Mar 14 2019
Jan 9 2019
Jan 1 2019
I'll close this as duplicate of T58217 . However, if the issue still remains after that one has been solved, please let us know.
I noticed the too. You don’t even have to use a operator. Sometimes just using the undo in 3D View makes it add, delete, or delete the entire text. It’s nearly impossible to use the text editor currently. My guess is it’s the undo/redo system, which seems to be causing a lot of issues.
I don't know why the hash links to something, it's just the one from the blender splash screen.