[Addon] Edit Addon Sources Operator


(scorpion81) #1

Hello,

i have made a simple addon again, which allows you to quickly open source files of addons with a single or with multiple files with a click of a button directly from the Addons page under User Preferences.

Just install and activate the addon as usual and you can also set optionally an external text editor as preference. If you leave it blank, the source files will be opened in blenders scripting view.

After enabling the addon you should see following:

/uploads/default/original/4X/2/d/2/2d2980341aa66985197a5a2567c1f25796c3ebb4.pngstc=1

This “Edit Source” button will be added to all addons automatically and will open the sources of this particular addon when clicked.

edit_source.zip (3.13 KB)

Edit: slight update by adding a “Use External Editor” checkbox,
so you dont always have to clear out the editor path if you want to use the internal editor in the mean time.

edit_source_0_4.zip (3.16 KB)

Attachments



(JTA) #2

Excellent addon. Very useful for frequent py coders that work with other addons or want to quickly find and edit their addon code from inside Blender .
I will give more feedback when I have time to use it more.

Good job scorpion81


(Craig Jones) #3

Thank you, I can’t wait to just see what I can learn using this addon about how other addons work :smiley:


(Greg Zaal) #4

Really useful, thanks man :slight_smile:


(PKHG) #5

Small question … I am using Emacs as external editor, it opens indeed nicely BUT not with the intended file.
The source link looks like C:\emacs-24.2\bin\runemacs.exe

Have I to add something ‘extra’ ? some parameter like %f or so?

Oh changed the external editor to a newly installed notepad++ works great!

Thanks for this addon
Peter


(scorpion81) #6

@PKHG

Just installed emacs under windows and tested, should work fine with just the path to the exe. If the addon consists of multiple (py) files, they all will be opened in different emacs buffers.


(PKHG) #7

it doesn.t … but maybe the reason is that I force the rember file to open up at starttime :wink:
But am very happy with notpad++

Thanks for trying and answering :wink:

Peter


(varkenvarken) #8

Very useful! thnx!


(mem) #9

Thanks, it proved very useful quite recently!


(bashi) #10

Nice Addon, thanks scorpion81


(JTA) #11

Woot woot! There’s a new version out! v.0.4 : ) Thanks scorpion81!


(urkokul) #12

Thank you very match. Nice and necessary thing