Page MenuHome

Text EditorProject
ActivePublic

Details

Description

This project includes the Text editor built into Blender, and is a sub-project of the Python & Add-ons module.

Sub-Module Page: T68061
Developers: @Campbell Barton (campbellbarton)

Recent Activity

Wed, Oct 16

Dalai Felinto (dfelinto) updated the task description for T68061: Text Editor Module.
Wed, Oct 16, 4:40 PM · Text Editor, BF Blender

Thu, Oct 3

Campbell Barton (campbellbarton) updated the task description for T68061: Text Editor Module.
Thu, Oct 3, 10:41 PM · Text Editor, BF Blender
Campbell Barton (campbellbarton) closed D5952: Text editor api: Add selection RNA.
Thu, Oct 3, 10:34 PM · Text Editor
Campbell Barton (campbellbarton) accepted D5952: Text editor api: Add selection RNA.

Committed:

Thu, Oct 3, 10:33 PM · Text Editor
Kai Jægersen (kaio) updated the diff for D5952: Text editor api: Add selection RNA.
  • Fix wrong clamp max values
Thu, Oct 3, 9:22 PM · Text Editor
Campbell Barton (campbellbarton) requested changes to D5952: Text editor api: Add selection RNA.
Thu, Oct 3, 9:02 PM · Text Editor
Kai Jægersen (kaio) updated the diff for D5952: Text editor api: Add selection RNA.
  • Using TextLine->len to get max clamp for line lengths
  • Remove function, use BLI_str_utf8_offset_from_index
  • Remove pointer check in txt_sel_set
Thu, Oct 3, 8:36 PM · Text Editor

Wed, Oct 2

Kai Jægersen (kaio) added inline comments to D5952: Text editor api: Add selection RNA.
Wed, Oct 2, 4:31 PM · Text Editor
Campbell Barton (campbellbarton) requested changes to D5952: Text editor api: Add selection RNA.
Wed, Oct 2, 9:56 AM · Text Editor
Kai Jægersen (kaio) added a comment to D5952: Text editor api: Add selection RNA.

Would prefer this be part of a commit that makes selection fully editable, so we can ensure this works well.
If there are any issues with making these values editable, we'd be better off having a method to set the selection.
select_start_line, select_end_line are currently read-only.

Wed, Oct 2, 1:26 AM · Text Editor
Kai Jægersen (kaio) abandoned D5881: Text Editor (python): Add Text.selection_set().

https://developer.blender.org/D5952

Wed, Oct 2, 12:40 AM · Python, Text Editor
Kai Jægersen (kaio) updated the diff for D5952: Text editor api: Add selection RNA.

Updated to include the context of selection api.

Wed, Oct 2, 12:31 AM · Text Editor
Kai Jægersen (kaio) retitled D5952: Text editor api: Add selection RNA from Text editor api: Add RNA get/set for current_character and select_end_character to Text editor api: Add selection RNA.
Wed, Oct 2, 12:23 AM · Text Editor

Tue, Oct 1

Campbell Barton (campbellbarton) added inline comments to D5952: Text editor api: Add selection RNA.
Tue, Oct 1, 9:03 AM · Text Editor
Campbell Barton (campbellbarton) added inline comments to D5952: Text editor api: Add selection RNA.
Tue, Oct 1, 9:01 AM · Text Editor
D5952: Text editor api: Add selection RNA now requires changes to proceed.

Would prefer this be part of a commit that makes selection fully editable, so we can ensure this works well - compared to a method that sets selection.

Tue, Oct 1, 8:58 AM · Text Editor
D5952: Text editor api: Add selection RNA is now accepted and ready to land.
Tue, Oct 1, 8:43 AM · Text Editor
Kai Jægersen (kaio) created D5952: Text editor api: Add selection RNA.
Tue, Oct 1, 4:13 AM · Text Editor

Mon, Sep 30

Campbell Barton (campbellbarton) added a comment to D5881: Text Editor (python): Add Text.selection_set().

Right, all properties should use the character index not the byte offset.

Mon, Sep 30, 9:57 PM · Python, Text Editor
Kai Jægersen (kaio) added a comment to D5881: Text Editor (python): Add Text.selection_set().

This patch has the issue that indices can be between unicode characters.
See comments for D1613: Add set selection function to text api

Mon, Sep 30, 8:41 PM · Python, Text Editor
D5881: Text Editor (python): Add Text.selection_set() now requires changes to proceed.
Mon, Sep 30, 7:04 PM · Python, Text Editor
Campbell Barton (campbellbarton) added a comment to D5881: Text Editor (python): Add Text.selection_set().

This patch has the issue that indices can be between unicode characters.

Mon, Sep 30, 7:04 PM · Python, Text Editor

Tue, Sep 24

Dalai Felinto (dfelinto) edited Description on Text Editor.
Tue, Sep 24, 8:19 PM
-- (zgorg) added a comment to D5881: Text Editor (python): Add Text.selection_set().

so now it would be possible to get back selection to what it was before the last undo using this

Tue, Sep 24, 4:19 PM · Python, Text Editor
Kai Jægersen (kaio) created D5881: Text Editor (python): Add Text.selection_set().
Tue, Sep 24, 11:09 AM · Python, Text Editor

Fri, Sep 20

Jacques Lucke (JacquesLucke) closed T69486: Reloading 'text' file in 'Scripting' marks the file as modified as Resolved by committing rBfb6ef2ec8d03: Fix T69486: Reloading file in text editor marks file as modified.
Fri, Sep 20, 12:48 PM · Text Editor, BF Blender
Jacques Lucke (JacquesLucke) closed D5847: Fix T69486: Reloading 'text' file in 'Scripting' marks the file as modified.
Fri, Sep 20, 12:48 PM · Text Editor
D5847: Fix T69486: Reloading 'text' file in 'Scripting' marks the file as modified is now accepted and ready to land.
Fri, Sep 20, 12:43 PM · Text Editor

Thu, Sep 19

Nathan Craddock (Zachman) closed T69610: Outliner doesn't update text data-block list and crashes on unlinking text as Resolved by committing rB2480c9236fd4: Fix T69610: Outliner doesn't update for text new and unlink.
Thu, Sep 19, 5:14 PM · Text Editor, BF Blender
Pedro Reis (veryprofessionaldodo) added a revision to T69486: Reloading 'text' file in 'Scripting' marks the file as modified: D5847: Fix T69486: Reloading 'text' file in 'Scripting' marks the file as modified.
Thu, Sep 19, 11:43 AM · Text Editor, BF Blender
Pedro Reis (veryprofessionaldodo) added a task to D5847: Fix T69486: Reloading 'text' file in 'Scripting' marks the file as modified: T69486: Reloading 'text' file in 'Scripting' marks the file as modified.
Thu, Sep 19, 11:43 AM · Text Editor

Wed, Sep 18

Pedro Reis (veryprofessionaldodo) created D5847: Fix T69486: Reloading 'text' file in 'Scripting' marks the file as modified.
Wed, Sep 18, 7:09 PM · Text Editor

Sep 18 2019

Nathan Craddock (Zachman) added a comment to T69610: Outliner doesn't update text data-block list and crashes on unlinking text.

Yes, I will take a look.

Sep 18 2019, 2:45 AM · Text Editor, BF Blender
Dalai Felinto (dfelinto) updated the task description for T69610: Outliner doesn't update text data-block list and crashes on unlinking text.
Sep 18 2019, 2:23 AM · Text Editor, BF Blender
Dalai Felinto (dfelinto) updated the task description for T68061: Text Editor Module.
Sep 18 2019, 2:21 AM · Text Editor, BF Blender
Dalai Felinto (dfelinto) added a project to T69610: Outliner doesn't update text data-block list and crashes on unlinking text: Text Editor.

Confirmed. It should be a straightforward fix, and in a way it is the same solution for both:

Sep 18 2019, 2:21 AM · Text Editor, BF Blender

Sep 17 2019

Dalai Felinto (dfelinto) renamed T69486: Reloading 'text' file in 'Scripting' marks the file as modified from reloading 'text' file in 'Scripting' marks the file as modified to Reloading 'text' file in 'Scripting' marks the file as modified.
Sep 17 2019, 6:15 PM · Text Editor, BF Blender
Dalai Felinto (dfelinto) edited Description on Text Editor.
Sep 17 2019, 6:14 PM
Dalai Felinto (dfelinto) edited Description on Text Editor.
Sep 17 2019, 6:13 PM
Dalai Felinto (dfelinto) updated the task description for T68061: Text Editor Module.
Sep 17 2019, 6:08 PM · Text Editor, BF Blender
Dalai Felinto (dfelinto) added a project to T69486: Reloading 'text' file in 'Scripting' marks the file as modified: Text Editor.
Sep 17 2019, 6:05 PM · Text Editor, BF Blender

Sep 10 2019

Peter Fog (tintwotin) added a project to T68656: Info Editor's Replay fails, properly because of bad context: Text Editor.
Sep 10 2019, 11:08 AM · Text Editor, BF Blender

Sep 4 2019

Campbell Barton (campbellbarton) added a project to T67213: Add a text editor indent-or-auto-complete operator: Text Editor.
Sep 4 2019, 2:42 PM · Text Editor, BF Blender
Campbell Barton (campbellbarton) added a project to T69490: External Text Data Support: Text Editor.
Sep 4 2019, 2:41 PM · Text Editor
Campbell Barton (campbellbarton) updated the task description for T68061: Text Editor Module.
Sep 4 2019, 2:41 PM · Text Editor, BF Blender

Sep 2 2019

Campbell Barton (campbellbarton) updated the task description for T68061: Text Editor Module.
Sep 2 2019, 9:08 AM · Text Editor, BF Blender

Aug 26 2019

Campbell Barton (campbellbarton) updated the task description for T68061: Text Editor Module.
Aug 26 2019, 4:34 AM · Text Editor, BF Blender

Aug 15 2019

Peter Fog (tintwotin) added a comment to D5474: Horizontal Find & Replace for the Text Editor.

Now this patch has been abandoned, who has a better solution, and how/where to discuss it?

Aug 15 2019, 11:10 AM · Text Editor, BF Blender
Dalai Felinto (dfelinto) closed T68658: Text offset makes scale to fit not to work as Resolved by committing rBcb7ead2e3b62: Fix T68658: Text offset makes scale to fit not to work.
Aug 15 2019, 12:23 AM · Text Editor, BF Blender

Aug 14 2019

Philipp Oeser (lichtwerk) added a revision to T68658: Text offset makes scale to fit not to work: D5484: Fix T68658: Text offset makes scale to fit not to work.
Aug 14 2019, 8:36 PM · Text Editor, BF Blender