On Mar 24, 2009, at 11:04 AM, Dennis Benkert wrote:
>
> Hey all,
>
> I just wanted to inform you about the state of the bundle. I did some
> refactoring on the tab shortcuts and they are much shorter now. To
> give you a little teaser I will list some of them:
>
> 'gro' + tab: will produce $this->getRoute()->getObject();
> 'gp' + tab: will produce $this->getRequest()-
> >getRequestParameter('id');
> 'rgp' + tab: will produce $request->getParameter('id');
> 'user' + tab: will produce $this->getUser()
Nice. Much easier to invoke. FWIW, I've mapped getRequestParameter()
to ^P to match the Rails bundle. It's such a common thing that it
deserves to be easy to insert. Ideally, the bundle would detect sf >=
1.1 and automatically use $request->getParameter() instead of $this-
>getRequest()->getParameter().
>
> There are of course even more shortcuts for different parts of symfony
> (actions, models, views, forms, etc.). Maybe i can give you a full
> list of them after the next weekend.
>
>> How about some command to run sf command line from within Textmate?
> I'm working on this already. My idea is to execute the common symfony
> tasks within textmate (e.g. symfony cc) and show the output as a nice
> html popup. As for now you can run 'cc', '-V', 'test:all',
> 'propel:build-all', 'propel:build-model' and 'propel:build-forms' via
> the key binding 'strg' + 's'.
>
strg? is that command?
>> Also, a larger task might be doing an autocomplete of model getter
>> and
>> setter functions.
> I'm not sure if textmate has the functionality to do that and i'm also
> not sure if textmate is the right editor for this feature. :)
There is a php code completion bundle already available. I've never
used it though. All in all, TM just doesn't seem to have very good
support for code completion.
>
> To give you all access to my working copy I'm also thinking about
> putting the bundle on github. Are there any concerns about this? If
> you have any other suggestions (even for key bindings or tab
> shortcuts) feel free to post them here.
Please do. I'll probably send a couple of pull requests your way.
The other option is to try and get it into the macromates svn
repository. I don't know the process for that though.
>
> - Dennis
>
> 2009/3/24 Gareth McCumskey <[email protected]>:
>>
>>
>> On Mon, Mar 23, 2009 at 8:43 PM, hsteckylf <[email protected]> wrote:
>>>
>>>
>>> Also, a larger task might be doing an autocomplete of model getter
>>> and
>>> setter functions.
>>>
>> You mean just like Eclipse PDT can already do? :P
>>
>>>
>>
>
> >
--
Jacob Coby
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---