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: 444
Joined: Tue Jul 15, 2014 12:04 pm
Location: Germany
Contact:

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

Post by rmcode » Sun Jan 24, 2016 1:32 pm

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: 444
Joined: Tue Jul 15, 2014 12:04 pm
Location: Germany
Contact:

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

Post by rmcode » Sat Oct 15, 2016 2:14 pm

Updated the package with the latest wiki changes.

User avatar
MadByte
Party member
Posts: 457
Joined: Fri May 03, 2013 6:42 pm
Location: Germany

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

Post by MadByte » Sat Oct 15, 2016 4:00 pm

Thanks for the updates.

User avatar
Positive07
Party member
Posts: 999
Joined: Sun Aug 12, 2012 4:34 pm
Location: Argentina

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

Post by Positive07 » Sun Oct 16, 2016 12:22 am

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/Positive07)

User avatar
rmcode
Party member
Posts: 444
Joined: Tue Jul 15, 2014 12:04 pm
Location: Germany
Contact:

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

Post by rmcode » Sun Oct 16, 2016 12:33 am

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: 999
Joined: Sun Aug 12, 2012 4:34 pm
Location: Argentina

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

Post by Positive07 » Sun Oct 16, 2016 1:24 am

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/Positive07)

User avatar
rmcode
Party member
Posts: 444
Joined: Tue Jul 15, 2014 12:04 pm
Location: Germany
Contact:

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

Post by rmcode » Sun Oct 16, 2016 2:07 am

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: 999
Joined: Sun Aug 12, 2012 4:34 pm
Location: Argentina

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

Post by Positive07 » Sun Oct 16, 2016 2:31 am

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/Positive07)

User avatar
rmcode
Party member
Posts: 444
Joined: Tue Jul 15, 2014 12:04 pm
Location: Germany
Contact:

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

Post by rmcode » Sat Oct 22, 2016 11:42 pm

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: 251
Joined: Mon Mar 04, 2013 9:31 am
Location: The Netherlands
Contact:

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

Post by Sheepolution » Sun Oct 23, 2016 7:03 pm

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: Google [Bot] and 6 guests