Home Download Buy Blog Forum Support

Open Magento PHP files from selection or current line

Open Magento PHP files from selection or current line

Postby theblacklion on Wed Feb 23, 2011 11:52 pm

Hi folks,

the last few days I've been hacking on a equivalent to open_python_file (viewtopic.php?f=5&t=1700) for Magento (PHP files). It tries to parse the selections, extract parent class names and tries to find the proper files. Due to Magento having strong filename vs classname conventions this has become easier than I thought :).

Grab the code here:
https://bitbucket.org/theblacklion/subl ... 6e8fd5dc72

Have fun,
Oktay.

PS The code still needs clean up, but I wanted to get it out early ;).
theblacklion
 
Posts: 67
Joined: Sat Feb 05, 2011 10:07 pm
Location: Hannover, Germany

Re: Open Magento PHP files from selection or current line

Postby capnhud on Mon Mar 21, 2011 9:16 am

I am assuming that in order to use this plugin you will need to have a Magento Project setup in order for the plugin to work or will it just work by having magento files in a directory?
capnhud
 
Posts: 62
Joined: Thu Jan 14, 2010 11:57 am

Re: Open Magento PHP files from selection or current line

Postby theblacklion on Mon Mar 21, 2011 3:31 pm

Due to the fact the we build shops based on modules this one had to support both complete projects and module repos.
The project itself does not have to be initialized or callable in any way. It just looks at the filetree structure.
theblacklion
 
Posts: 67
Joined: Sat Feb 05, 2011 10:07 pm
Location: Hannover, Germany

Re: Open Magento PHP files from selection or current line

Postby capnhud on Mon Mar 21, 2011 8:26 pm

Looks promising.
capnhud
 
Posts: 62
Joined: Thu Jan 14, 2010 11:57 am


Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 4 guests