I use the auto complete dialog.
I have a cacher I wrote. Magento is too slow to parse the files everytime. 5K classes with a base install. I use php's token_get_all to grab the tokens of a file and then I just cache the tokens I'm interested in. The caching process takes about 30 seconds.
The classes would be something like Mage_MoneyBookers_Model_Abstract, I have to make the class names lower case and remove the mage and model on the fly.
Timothy
On Mar 18, 2010, at 5:00 PM, Mario Kuroir Ricalde wrote:
I'm working on a autocompletion intellisense (code aware) bundle; maybe my work can help you out, do you use DIALOG for displaying the autocompletion options? or you use pure snippets?
On Mar 18, 2010, at 1:49 PM, Timothy Rhodes wrote:
I'm working on a magento bundle. It is currently on github and getbundles can install it.
so of my work has over lapped with the php completion bundle but some has not.
The php completion bundle won't be able to auto complete for Mage::getSingleton('catalog/product');
Since in magento you use the factory pattern a lot I build my own bundle. What I'm looking for is how many users use magento and what features of a bundle would they like?
The current bundle does the following:
- Auto complete for classes used in factory methods aka Mage::getSingleton({the classes here});
- Takes you to a definition of a class
- Tab trigger for <?php echo $this->__('$1'); ?>$0
The next version will do:
- Show parent inheritance (80% done)
- Auto complete for the Mage class (100% done)
- Take the user to the Magento online class documentation.
Timothy
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
- Mario "Kuroir" Ricalde
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate