Love-Atom (Smart autocompletion for Atom)

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
rmcode
Party member
Posts: 454
Joined: Tue Jul 15, 2014 12:04 pm
Location: Germany
Contact:

Re: LÖVE-Atom (autocomplete package for Atom)

Post by rmcode »

Pushed a new update which adds snippets for submodule functions (SpriteBatch:add, File:close, etc.).

Unfortunately I can't make the first part of the snippets a variable (so it can be easily replaced after the snippet has been placed in the editor). I'll have to wait until this enhancement is implemented (*fingers crossed*).
User avatar
rmcode
Party member
Posts: 454
Joined: Tue Jul 15, 2014 12:04 pm
Location: Germany
Contact:

Re: LÖVE-Atom (autocomplete package for Atom)

Post by rmcode »

Updated the package with the latest wiki changes.
User avatar
MadByte
Party member
Posts: 533
Joined: Fri May 03, 2013 6:42 pm
Location: Braunschweig, Germany

Re: LÖVE-Atom (autocomplete package for Atom)

Post by MadByte »

Thanks for the updates.
User avatar
Positive07
Party member
Posts: 1014
Joined: Sun Aug 12, 2012 4:34 pm
Location: Argentina

Re: LÖVE-Atom (autocomplete package for Atom)

Post by Positive07 »

Hey rmcode is there a way to fix these
Image
Image
So that I can press enter after a for loop or a if statement and actually get the expected result? without ending up with Thread:isRunning instead of then and those things?

I usually have to use my mouse or press left right enter in order to make the pop-up dissappear. I don't know if there is a better way.
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
User avatar
rmcode
Party member
Posts: 454
Joined: Tue Jul 15, 2014 12:04 pm
Location: Germany
Contact:

Re: LÖVE-Atom (autocomplete package for Atom)

Post by rmcode »

It should be fixable by improving the way the plugin searches for completions (it's been on my todo list for a long time ... https://github.com/rm-code/love-atom/issues/3). I hacked this plugin together mostly by trial and error and by looking at some of the default packages and there is a lot of room for improvement.

I'll take a look at it once I have more time (I have exams coming up in a week :cry:).
User avatar
Positive07
Party member
Posts: 1014
Joined: Sun Aug 12, 2012 4:34 pm
Location: Argentina

Re: LÖVE-Atom (autocomplete package for Atom)

Post by Positive07 »

Oh! It's fine I can wait. I just wanted to ask for it and maybe see if I can help with it. Thanks
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
User avatar
rmcode
Party member
Posts: 454
Joined: Tue Jul 15, 2014 12:04 pm
Location: Germany
Contact:

Re: LÖVE-Atom (autocomplete package for Atom)

Post by rmcode »

I just pushed a feature branch to the repo which uses fuzzaldrin directly to score the current LOC against the snippet database. If you have some time to spare it would be cool if you could give it a spin (https://github.com/rm-code/love-atom/tr ... stomPrefix).

It should now also provide auto-completion for prefixes containing periods and colons - so we could finally write love.gr.arc instead of lovegrarc.
User avatar
Positive07
Party member
Posts: 1014
Joined: Sun Aug 12, 2012 4:34 pm
Location: Argentina

Re: LÖVE-Atom (autocomplete package for Atom)

Post by Positive07 »

I'm totally gonna try this out when I have time (hopefuly soon, I'm close to a few exams too) and report back. Thanks for the fast response
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
User avatar
rmcode
Party member
Posts: 454
Joined: Tue Jul 15, 2014 12:04 pm
Location: Germany
Contact:

Re: LÖVE-Atom (autocomplete package for Atom)

Post by rmcode »

Released 2.4.0 which features the custom fuzzy logic sorting. So far I like how it behaves.

Feedback is highly appreciated.
User avatar
Sheepolution
Party member
Posts: 264
Joined: Mon Mar 04, 2013 9:31 am
Location: The Netherlands
Contact:

Re: LÖVE-Atom (autocomplete package for Atom)

Post by Sheepolution »

Is there a way to get LÖVE's output to show in Atom like with Sublime Text? I can't seem to find it anywhere if it is already doing that.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest