How would you show some love for the Blender Text Editor?

I just saw this I think it can be useful for a lot of things https://developer.blender.org/D5881
like get back to previous selection after a Ctrl Z. I watched a little bit what you did it’s quite difficult code for me but I will follow this. to see I can learn more and help later. I’ve just seen your comment…so you know

1 Like

Iceythe/kaio is doing so much wonderful work with the Text Editor add-ons and now he’s submitting great patches. So let’s give them some supportive tokens so they won’t disappear among all the other patches:
https://developer.blender.org/D5876
https://developer.blender.org/D5881

3 Likes

I did and I do it for the second link…my english being average I even didn’t know what token was for untill now.

1 Like

Thanks!

Got something else I’m working on. @tin2tin you mentioned this earlier to me, I was in fact already considering it.
image

The graphical side of things is done. Read Campbell’s notes about the previous attempt to make a horizontal scroll bar. It had the downside of looping through the text on every redraw just to find the max column width. Currently looking at ways implementing this in the existing draw cache to minimize the footprint.

Also fixing some small related ui things while I’m at it.

3 Likes

Wow you’re a C wizard too! Let me know if you need a tester, just send me a .diff.

If anyone here wants to test all of your Text Editor wonders, maybe I could share a build here(for Windows)?

i don’t know if i’m worthy and if this is really showing love to the blender editor but here’s what i made tonight

1 Like

Great new and much needed operators for the Text Editor by Kaio aka. Iceythe:
image
Link: https://developer.blender.org/people/commits/132691/

They are now included in the latest beta builds of Blender.

2 Likes

Looking at the new File Browser area with a two line header:

I wonder if it is possible to do something like this with the Find and Replace functions in the Text Editor aka. adding a header region with room for two lines, like this?

And Find alone should be only one line:

Personally, I think it’s annoying to have to have the sidebar open for Find & Replace, because it takes up too much horizontal space and once did this suggestion for the footer:


But it was criticized for too little horizontal space for the search boxes, and the adding buttons in the footer would break consistency, hence my interest in doing it in a two line header.

3 Likes

I would like to try this but there are so many download links in this thread. What is a good link to get the most recent version of this?

All links have been collected in the first post of this thread. I hope you’ll find what you’re looking for.

2 Likes

Thanks.

Run in console is borky with registering one of the places. Commenting out these lines work.

  @classmethod
    def _setup(cls):
       
        #bpy.types.TEXT_MT_toolbox.append(cls.draw_button)

    @classmethod
    def _remove(cls):
       
        #bpy.types.TEXT_MT_toolbox.remove(cls.draw_button)

TEXT_MT_toolbox has been renamed to TEXT_MT_context_menu or something like that.

If you make a fork, I can link to that one instead.

1 Like

Thanks I will take a look at it. I do not know why such functionality is not part of the core. It is so much pain to deal with terminals, and on Linux one has to start Blender from the terminal to see the output in the first place.

3 Likes

I saw replace, “all” I still wonder why when the guy created replace he didn’t put an option all. some mysteries. I had a problem of indentation due to copy from note2pad++ where I didn’t activated tab to spaces but an option to transform tab in spaces could be added in the replace function typing a key word #tab? and automatically replace all

Have you tried this function?
image

1 Like

I’m working on pep8 style checking in the Blender Text Editor:

The whitespace highlighting is generated by Iceythe’s Code Editor.

1 Like

Please add line bookmarking. Quickly jump between parts of your script instead of scrolling back and forth.
Loving your work :ok_hand:
Keep it up

There is already an add-on for that by tonton https://github.com/samytichadou/TextMarker-blender-addon
Contents Viewer will let you jump to classes/Def’s: https://github.com/tin2tin/ContentsViewer
See the first post for more Text Editor add-ons.

2 Likes

The Codestyle add-on for the Blender Text Editor is up:

Download and installation instructions:

2 Likes

Update Check - a script for checking functions which needs to be updated to 2.80 api with this add-on by nBurn(and UI by me): https://github.com/tin2tin/Update_Check_2.80