Sublime Forum

Open Magento PHP files from selection or current line

#1

Hi folks,

the last few days I’ve been hacking on a equivalent to open_python_file (Open Python files from selection or current line) 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 :smile:.

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

Have fun,
Oktay.

PS The code still needs clean up, but I wanted to get it out early :wink:.

0 Likes

#2

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?

0 Likes

#3

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.

0 Likes

#4

Looks promising.

0 Likes