Essential Text Editor add-ons for coders

I separated open/show on top console and close console. (I use F1 alt F1) now to show console on top only 1 clic is needed

2 Likes

New version of come back cursor using directly an api function to move the cursor.
Shift+Right Mouse to toggle it (or esc to switch off)

video

1 Like

Thatā€™s cool!

1 Like

I worked again on this script. Iā€™m trying a new way to see things. just small cessions each day on several topics. it seems more effective https://github.com/1C0D/TextMarker-blender-addon

1 Like

Great to see youā€™re still powering through with things like this.
Personally, Iā€™m taking a break from all things Blender, for now.

1 Like

A small but possibly useful addon for the text editor: :slight_smile:

1 Like

oh, didnt know that there already exists a similar addon: :slight_smile:

1 Like

New patch committed:
image

https://developer.blender.org/D11655

2 Likes

I noticed a discussion on bf-committers concerning how to deal with contributed add-ons etc. There is an old add-on(not mine) which can list, do version control and let you install/uninstall add-ons from the old wiki add-on repository. I did a quick update to get the UI working, but I could need some help finishing it. Also it is needed figure out how to scape github gitlab etc. for new/updated blender add-ons, and store this information in a json file. If anyone feel up for improving the add-on exposure with this within-Blender solution, make a fork or throw some patches at it here: github.com/tin2tin/blender-addon-registry
A gif of the UI:
addon_registry

1 Like

I did this https://youtu.be/2tcAjbeFSd8
a simple multifiles example doing changes directly without having to restart blender
when sharing the addon just turn debug from 1 to 0
https://github.com/1C0D/example-multifiles-blender-addon-to-use-with-advanced-addon-installer-or-not

@tin2tin I did a version with a bl ui of my addon but the code was quickly more difficult again. and in term of using this not really much faster. but I took a break to learn python and other things and have a restā€¦I will see this again later. for the moment I needed to adapt this script to try quickest changes on another addon Iā€™m studyingā€¦restarting blender each time was not an acceptable option ^^

Looks cool. Does it also work with the Text Editor?

Yes, this it super annoying. Unfortunately some of the add-ons included the Script Editing workspace template https://github.com/tin2tin/Script_Editing stats failing on 3.0, but it was a real pleasure to code in it.

hi coders!

is there already an addon for the text editor that allows for temporarily folding / collapsing certain regions of source-code in the editor grouped by indentation? thereā€™s a gutter between line number and the beginning of the line which displays a toggle on all llines that denote the start of a function, loop, condition etc. which by clicking folds / hides that region into a single line.

In vs code itā€™s called ā€œfoldingā€:

Other code editors that I use frequently can do it (eclipse, intellij, notepad++ā€¦). Itā€™s a huge time-saver when writing new sections which get longer and longer by the hour and before organizing them into external modules. also, when getting to know exiating code by others it helps a lot when you can visually organize it by folding away the more ā€œinnerā€ parts and focus on the bigger picture first.

I searched this thread almost two hours now already. it was mentioned by someone who said this functionality was intended but then didnā€™t make it into the release because on a blender crash you would lose all the folded linesā€¦

the work people are doing here is amazing! I canā€™t stop being amazed by the drive of the blender community!

It think it may have been partly implemented in the original Code-editor add-on, but there is no folding add-on Iā€™m aware of. If it is also for speeding up navigation you can try the Markes add-on.

1 Like

An updater for addons https://github.com/CGCookie/blender-addon-updater/blob/44bc9439d422c2c03c3776d90ad45bae1903d379/addon_updater_ops.py

1 Like

I donā€™t even bother using the blender text editor, for my main coding / addons anymore :frowning: .
Or, at least nothing more than simple tests.

Since undo is not separated from the 3D view, that alone drives me insane. Unless one of these addons can get around that/fix it? Why would you want the text editor changes to overwrite your 3D view undo steps??? :rage:

1 Like

This is the problem: Essential Text Editor add-ons for coders - #246 by tin2tin
The BF devs ignores and neglects every attempt to improve the coding experience in the Text Editor. Ex. https://developer.blender.org/D9752 and even the Gsoc 2020 Info Editor project did not get any feedback and no reviews of the resulting patches: https://developer.blender.org/D9752 Imo, this way of treating contributors is an embarrassment, and so is the Text Editor in its current state.

Yes, the undo behaviour was changed in recent years. Itā€™s super annoying. But as things are, youā€™re limited to try to write a suggestion(I donā€™t see any existing one on that topic) on rightclickselect and make some noise to get votes for it: https://blender.community/c/rightclickselect/ There was actually an attempt to address this issue by the Text Editor module owner, but it seems like this is neglected too: https://developer.blender.org/T68068

That said, it still is so much faster to do ex. UI work and prototyping from the Text Editor, so I still think it is worth fighting for.

3 Likes

Override for operators and code from console and text editor

Watch this quick Video first

3 Likes

watch this, the link of the video is in the page

modify-addons-without-restarting-blender-and-do-a-multiaddons-addon

it can save you hours and hours

3 Likes
4 Likes

Awesome. Very nice work. Your English is very, very good. :grinning: