For those of you who use TextMate I've edited an existing bundle to include auto-completions for all the functions.
Press the § key (below esc on mac keyboards) and a list of suggestions pop up. Press enter and it'll update and show a tool-tip.
You can also press tab to jump between each argument.
I've added all the functions to the list from the wiki, but not every functions has a tooltip and arguments yet,
if anyone wants to help finish this tedious task the completion list is stored in LOVE.tmbundle/support/completions.rb
it's a ruby hash table but it's pretty self explanatory to edit. Just fork and send a pull request.
Get it here:
http://github.com/perky/love2d-textmate-bundle
TextMate bundle, auto-complete and tooltips.
Re: TextMate bundle, auto-complete and tooltips.
Looks epic to me, too bad I run Notepad++ on Windows..
Re: TextMate bundle, auto-complete and tooltips.
Thank you so much for this!
Makes working with LÖVE even more fun!
Makes working with LÖVE even more fun!
Re: TextMate bundle, auto-complete and tooltips.
Want completion for functions throughout your project?
With class inheritance?
Watch me.
http://www.vimeo.com/10319082
In regards to class inheritance it looks for the statement
which is what MiddleClass uses, if your OO system uses a different function you'll
have to change some regexp (or simply change your function )
Github updated up top.
With class inheritance?
Watch me.
http://www.vimeo.com/10319082
In regards to class inheritance it looks for the statement
Code: Select all
newclass = class( "classname", parentclass )
have to change some regexp (or simply change your function )
Github updated up top.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: TextMate bundle, auto-complete and tooltips.
In your video a saw class:new being recognized, is it always, or did you do some magic in another file? (in the latter case, please add the :new syntax)
Re: TextMate bundle, auto-complete and tooltips.
It's dynamic.
Any function you write will show up.
Any function you write will show up.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: TextMate bundle, auto-complete and tooltips.
I meant that the result of class:new was recognized as a subclass.
Re: TextMate bundle, auto-complete and tooltips.
Ahh, not at the moment.
But you can do that easily with a comment
But you can do that easily with a comment
Code: Select all
-- subclass = superclass
- nevon
- Commander of the Circuloids
- Posts: 938
- Joined: Thu Feb 14, 2008 8:25 pm
- Location: Stockholm, Sweden
- Contact:
Re: TextMate bundle, auto-complete and tooltips.
Aw man, I wish I had something like this for Geany. That would be so slick.
Who is online
Users browsing this forum: No registered users and 1 guest