This patch adds a text_editor.py file to the \scripts\startup\bl_operators folder, which allows for adding operators in Python. Most of the editors in Blender are using this option, but so far not the Text Editor, which is surprising, considering the advantages Python has when it comes to dealing with strings.
Three operators are included:
- Trim Whitespaces: Trailing, Leading and Trailing and Leading.
- Split Line and Join Line.
- Change Case: UPPERCASE, lower case, Capitalize, snake_case and CamelCase
Trim Whitespaces added to the Format menu:
Change Case has been added to the Format menu:
The line operations in the menu are collected in a sub menu containing:
- Move Up
- Move Down