<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div></div><div></div><div></div><div></div><blockquote type="cite"><div><span class="Apple-style-span" style="font-family: monospace; ">Gaby Vanhegan:</span></div><div><br></div><div><span class="Apple-style-span" style="font-family: monospace; "><blockquote type="cite">I've been working on a PHP Smart Autocompletion / Intellisense for Textmate and I though I would ask a couple of questions to any PHP Developer interested on the idea:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">1. Would you like smart code completion to work only on the included files or in the current project?<br></blockquote><br>Whole project.  FlashDevelop have got this kind of thing right, if you could use that as a model then you'd have an amazing plugin.<br><br><blockquote type="cite">2. What Frameworks for PHP do you use with textmate?<br></blockquote><br>If you can get point 1 right then this doesn't matter.<br><br><blockquote type="cite">3. Do you mind if the bundle creates an extra hidden folder to cache the parsed code?<br></blockquote><br>For me, no.  Provided there was an option to clear that cache somehow.<br><br><blockquote type="cite">When I say Smart Autocompletion, I mean it'll know your classes inheritance, how you call them, the scope, etc.<br></blockquote><br>FlashDevelop goes even further with this, parsing JavaDoc style comments and using them as tooltips in the autocomplete. Very handy.</span></div></blockquote><div><font class="Apple-style-span" face="monospace"><br></font></div><div><font class="Apple-style-span" face="monospace">Gaby, I already got it right. Parsing all the competent files on the project and parsing them accordingly; good to know I'm on the good path.</font></div><div><font class="Apple-style-span" face="monospace"><br></font></div><div><font class="Apple-style-span" face="monospace">It's good to know what Frameworks you work on, yes it does matter. Mostly  because most of them use different naming conventions adding prefixes to the "real classes" and removing them from the loading process. ( for example, new MyClass will load MyFrameWork_MyClass ).</font></div><div><font class="Apple-style-span" face="monospace"><br></font></div><div><font class="Apple-style-span" face="monospace">The PHP Smart Autocompletion is prepared to work with the tooltips with documentation; however, the Textmate provided DIALOG is not good enough to handle this kind of stuff; I'll be adding it later when Joachim finishes his mod.</font></div><div><font class="Apple-style-span" face="monospace"><br></font></div><div></div><blockquote type="cite"><div><font class="Apple-style-span" face="monospace">On Mon, Mar 1, 2010 at 2:33 PM, Gaby Vanhegan wrote:</font></div><div><font class="Apple-style-span" face="monospace"><br></font></div><div><font class="Apple-style-span" face="monospace">I totally agree with Gaby. The same thing is with Flash Builder.<br>If you could get this kind of behavior it would be my YES for still working<br>TextMate - I'm currently checking other editors for code completion.<br><br>Btw. how advanced the progress is? :) When can we expect some preview? :) Or<br>you gonna make it TM2 like - just rumors :)<br>Still TM is my favorite editor and I don't want to switch to other ... :)<br></font></div></blockquote><div><font class="Apple-style-span" face="monospace"><br></font></div><div><font class="Apple-style-span" face="monospace">As I already stated, the behavior can be achieved; it's just a matter of time before Joachim updates his mod for dialog. Also, it's good to know that this bundle will actually make some PHP Developers use TextMate more :)</font></div><div><font class="Apple-style-span" face="monospace"><br></font></div><div><font class="Apple-style-span" face="monospace">About how advanced the bundlee is:</font></div><div><font class="Apple-style-span" face="monospace">I already had a pre-beta, which was a complete mess and was my first try. Doing it wrong with Regular Expressions. It worked, but not with as smart as I wanted it to be. About the current version, here's what I have and what I need to do:</font></div><div><font class="Apple-style-span" face="monospace"><br></font></div><div><ul class="MailOutline"><li><font class="Apple-style-span" face="monospace">PHP Parser, 90% done.<br>It's almost perfect, I just need to make a little tweaking. For instance, I'm thinking about storing definition of class-level variables within a class method. Even if they were not defined during the definition of the class via "public/private/protected/static $var".<br></font></li><li><font class="Apple-style-span" face="monospace">Project Files, 100% done.<br></font></li><li><font class="Apple-style-span" face="monospace">Caching Process, 95% done.<br>Need some tweaking on this. Will leave it for the after-release.</font></li><li><font class="Apple-style-span" face="monospace">Current Scope Identification 10%<br>I need to work more on this, because of the way TextMate handles "words", $this->sad are 3 words, which means I'll need to parse the current line for autocompletion, resolve the variables and scope and then perform the project parsing.</font></li><li><font class="Apple-style-span" face="monospace">Building of the AutoCompletion 80%<br>After resolving the relationship, scope, visibility, etc. The building will come in. I already have this done because of the pre-beta.</font></li></ul><div><font class="Apple-style-span" face="monospace"><br></font></div><div><font class="Apple-style-span" face="monospace">About the release date; I'm not sure. I'm working on it on my free time and today is my birthday; so I won't have a lot of time for me to work with it today. I'll try to keep you posted. If you can please give me any ideas to add it would be great, because this is the best stage for doing that.</font></div><div><font class="Apple-style-span" face="monospace"><br></font></div></div><div><font class="Apple-style-span" face="monospace"><br></font></div></body></html>