Page MenuHome

Text EditorProject
ActivePublic

Details

Description

Text editor built into Blender.

Recent Activity

Fri, Jul 5

Peter Fog (tintwotin) added a comment to D5097: Adding 'Trim Whitespaces', 'Split & Join Line' and 'Change Case' to Text Editor .

@Campbell Barton (campbellbarton) There is actually an old patch which I think may solve the API issues you mention: D1613

Fri, Jul 5, 7:00 PM · BF Blender, Python, Text Editor

Thu, Jul 4

Peter Fog (tintwotin) updated the summary of D5175: Text Editor Missing Hotkey Fix: Comment assigned Ctrl+H, Uncomment assigned Alt+H, Replace Ctrl+R, Find Set Selected Alt + F.
Thu, Jul 4, 10:10 PM · BF Blender, Text Editor

Wed, Jul 3

Peter Fog (tintwotin) updated the summary of D5175: Text Editor Missing Hotkey Fix: Comment assigned Ctrl+H, Uncomment assigned Alt+H, Replace Ctrl+R, Find Set Selected Alt + F.
Wed, Jul 3, 6:58 PM · BF Blender, Text Editor
Peter Fog (tintwotin) created D5175: Text Editor Missing Hotkey Fix: Comment assigned Ctrl+H, Uncomment assigned Alt+H, Replace Ctrl+R, Find Set Selected Alt + F.
Wed, Jul 3, 5:53 PM · BF Blender, Text Editor
Samuel Bernou (Pullup) added a comment to T66317: Text editor API needs a 'select_end_line_index' attribute to expose selection to the user..

Nice !
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.

Wed, Jul 3, 10:38 AM · Python, Text Editor
Dalai Felinto (dfelinto) added a comment to T66317: Text editor API needs a 'select_end_line_index' attribute to expose selection to the user..

I have an old addon (which is outdated) that was handling text selection with no problems:
https://developer.blender.org/diffusion/BAC/browse/master/text_editor_hastebin.py

Wed, Jul 3, 1:13 AM · Python, Text Editor

Mon, Jul 1

Samuel Bernou (Pullup) updated the task description for T66317: Text editor API needs a 'select_end_line_index' attribute to expose selection to the user..
Mon, Jul 1, 10:56 PM · Python, Text Editor
Samuel Bernou (Pullup) created T66317: Text editor API needs a 'select_end_line_index' attribute to expose selection to the user..
Mon, Jul 1, 10:51 PM · Python, Text Editor

Fri, Jun 28

Sebastian Parborg (zeddb) added a comment to T66172: Text Editor Undo bugs.

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.

Fri, Jun 28, 4:56 PM · Python, Text Editor, BF Blender
Sebastian Parborg (zeddb) merged task T66172: Text Editor Undo bugs into T65909: Python API calling: bpy.ops.text.cut +bpy.ops.text.paste will fail when undo..
Fri, Jun 28, 4:56 PM · Python, Text Editor, BF Blender

Thu, Jun 27

Peter Fog (tintwotin) updated the task description for T66172: Text Editor Undo bugs.
Thu, Jun 27, 11:46 AM · Python, Text Editor, BF Blender
Peter Fog (tintwotin) added projects to T66172: Text Editor Undo bugs: Text Editor, Python.
Thu, Jun 27, 11:45 AM · Python, Text Editor, BF Blender

Tue, Jun 25

Peter Fog (tintwotin) added a comment to D5097: Adding 'Trim Whitespaces', 'Split & Join Line' and 'Change Case' to Text Editor .

@Campbell Barton (campbellbarton) For some TE API suggestions Kaio/Iceythe writes:

Tue, Jun 25, 9:52 PM · BF Blender, Python, Text Editor

Mon, Jun 24

Peter Fog (tintwotin) updated subscribers of D5097: Adding 'Trim Whitespaces', 'Split & Join Line' and 'Change Case' to Text Editor .
Mon, Jun 24, 8:30 PM · BF Blender, Python, Text Editor
Peter Fog (tintwotin) added a comment to D5097: Adding 'Trim Whitespaces', 'Split & Join Line' and 'Change Case' to Text Editor .

So the first step is to locate bugs and shortcomings of the TE API?

Mon, Jun 24, 5:28 PM · BF Blender, Python, Text Editor
Campbell Barton (campbellbarton) added a comment to D5097: Adding 'Trim Whitespaces', 'Split & Join Line' and 'Change Case' to Text Editor .

If my memory serves me correct, working directly on the selection was not reliable, which made me use the clipboard instead.

Mon, Jun 24, 3:06 PM · BF Blender, Python, Text Editor
Peter Fog (tintwotin) added a comment to D5097: Adding 'Trim Whitespaces', 'Split & Join Line' and 'Change Case' to Text Editor .

If my memory serves me correct, working directly on the selection was not reliable, which made me use the clipboard instead.

Mon, Jun 24, 2:58 PM · BF Blender, Python, Text Editor
D5097: Adding 'Trim Whitespaces', 'Split & Join Line' and 'Change Case' to Text Editor now requires changes to proceed.

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).

Mon, Jun 24, 2:28 PM · BF Blender, Python, Text Editor
Peter Fog (tintwotin) updated subscribers of D5097: Adding 'Trim Whitespaces', 'Split & Join Line' and 'Change Case' to Text Editor .
Mon, Jun 24, 7:29 AM · BF Blender, Python, Text Editor

Sun, Jun 23

Peter Fog (tintwotin) added a comment to D5028: Text Editor UI updates.
Sun, Jun 23, 11:12 AM · BF Blender, Text Editor
William Reynish (billreynish) updated subscribers of D5028: Text Editor UI updates.
Sun, Jun 23, 9:08 AM · BF Blender, Text Editor
William Reynish (billreynish) edited reviewers for D5028: Text Editor UI updates, added: User Interface; removed: Peter Fog (tintwotin).

@brech Sidebar is moved to the right here. May need help with Do Version to make it apply to already existing Text Editors.

Sun, Jun 23, 1:56 AM · BF Blender, Text Editor
William Reynish (billreynish) retitled D5028: Text Editor UI updates from Convert Text Editor Sidebar to 2.80 Right-aligned style to Text Editor UI updates.
Sun, Jun 23, 1:02 AM · BF Blender, Text Editor
William Reynish (billreynish) added a comment to D5125: New context menus added to the sidebar and menu updates in the Text Editor.

Closing this, since it's just an update to D5028. Best to keep these changes together in the same differential revision.

Sun, Jun 23, 12:52 AM · Python, Text Editor
William Reynish (billreynish) updated the summary of D5028: Text Editor UI updates.
Sun, Jun 23, 12:51 AM · BF Blender, Text Editor
William Reynish (billreynish) added a comment to D5028: Text Editor UI updates.

Updates from D5125:

Sun, Jun 23, 12:46 AM · BF Blender, Text Editor

Sat, Jun 22

D5125: New context menus added to the sidebar and menu updates in the Text Editor is now accepted and ready to land.
Sat, Jun 22, 11:52 PM · Python, Text Editor
Peter Fog (tintwotin) updated the summary of D5125: New context menus added to the sidebar and menu updates in the Text Editor.
Sat, Jun 22, 11:32 PM · Python, Text Editor
Peter Fog (tintwotin) created D5125: New context menus added to the sidebar and menu updates in the Text Editor.
Sat, Jun 22, 11:28 PM · Python, Text Editor

Jun 21 2019

Peter Fog (tintwotin) added a reviewer for D5097: Adding 'Trim Whitespaces', 'Split & Join Line' and 'Change Case' to Text Editor : Campbell Barton (campbellbarton).
Jun 21 2019, 10:36 AM · BF Blender, Python, Text Editor

Jun 20 2019

Peter Fog (tintwotin) added a project to D5097: Adding 'Trim Whitespaces', 'Split & Join Line' and 'Change Case' to Text Editor : BF Blender.
Jun 20 2019, 7:43 AM · BF Blender, Python, Text Editor
Peter Fog (tintwotin) created D5097: Adding 'Trim Whitespaces', 'Split & Join Line' and 'Change Case' to Text Editor .
Jun 20 2019, 6:55 AM · BF Blender, Python, Text Editor

Jun 14 2019

William Reynish (billreynish) updated the summary of D5028: Text Editor UI updates.
Jun 14 2019, 9:50 AM · BF Blender, Text Editor

Jun 13 2019

Peter Fog (tintwotin) updated the summary of D5028: Text Editor UI updates.
Jun 13 2019, 11:32 PM · BF Blender, Text Editor
William Reynish (billreynish) updated the diff for D5028: Text Editor UI updates.

Fix wrong diff

Jun 13 2019, 5:57 PM · BF Blender, Text Editor
William Reynish (billreynish) updated the diff for D5028: Text Editor UI updates.

Changed layout of the Search & Replace panel:

Jun 13 2019, 5:51 PM · BF Blender, Text Editor
William Reynish (billreynish) updated the diff for D5028: Text Editor UI updates.
  • Fix wrong greying out of the Margin toggle
Jun 13 2019, 4:51 PM · BF Blender, Text Editor
William Reynish (billreynish) commandeered D5028: Text Editor UI updates.
Jun 13 2019, 4:48 PM · BF Blender, Text Editor
William Reynish (billreynish) added a comment to D5028: Text Editor UI updates.

To be clear, you don’t need to change the RNA to put a checkbox on the menus.

Jun 13 2019, 1:41 AM · BF Blender, Text Editor
Peter Fog (tintwotin) updated the diff for D5028: Text Editor UI updates.

The following Text Editor Redesign is the result of further discussion with @William Reynish (billreynish)

Jun 13 2019, 1:01 AM · BF Blender, Text Editor

Jun 6 2019

William Reynish (billreynish) added a comment to D5028: Text Editor UI updates.

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.

Jun 6 2019, 1:42 PM · BF Blender, Text Editor
Peter Fog (tintwotin) updated the diff for D5028: Text Editor UI updates.

Just removed "bpy." - not needed.

Jun 6 2019, 1:41 PM · BF Blender, Text Editor
William Reynish (billreynish) added a comment to D5028: Text Editor UI updates.

For the nesting, I was thinking more like this:

Jun 6 2019, 1:40 PM · BF Blender, Text Editor
Peter Fog (tintwotin) updated the diff for D5028: Text Editor UI updates.

Turned the toggle-buttons into checkboxes.
Renamed Properties to Display
And Show Margin will determine visibility of Show Column:

Jun 6 2019, 1:38 PM · BF Blender, Text Editor
William Reynish (billreynish) added a comment to D5028: Text Editor UI updates.

Just set toggle=False to make the icon toggles into normal checkboxes. You don't have to change RNA.

Jun 6 2019, 1:17 PM · BF Blender, Text Editor
Peter Fog (tintwotin) added a comment to D5028: Text Editor UI updates.

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:
https://developer.blender.org/diffusion/B/browse/master/source/blender/makesrna/intern/rna_space.c
... and I'm not able to code C. I'm sorry.

Jun 6 2019, 1:10 PM · BF Blender, Text Editor
William Reynish (billreynish) added a comment to D5028: Text Editor UI updates.

I would even go further:

Jun 6 2019, 11:59 AM · BF Blender, Text Editor
Peter Fog (tintwotin) added a reviewer for D5028: Text Editor UI updates: William Reynish (billreynish).
Jun 6 2019, 11:00 AM · BF Blender, Text Editor
Peter Fog (tintwotin) created D5028: Text Editor UI updates.
Jun 6 2019, 10:58 AM · BF Blender, Text Editor

Apr 25 2019

Brecht Van Lommel (brecht) closed D4512: Convert indentation whitespaces to user defined spaces or tabs.
Apr 25 2019, 7:35 PM · Text Editor, BF Blender