Page 1 of 1

Introducing GËL (Beta) = Gedit + LÖVE

Posted: Wed Jan 08, 2014 12:34 am
by OttoRobba
Newest build: 2014-13-01
Fixed a glaring mistake with the keyboard snippets, they were love.image instead of love.keyboard. Oops.

GËL is an advanced LÖVE snippet system along with syntax highlighting & custom commands for Gedit.

- Add brackets around selected code

Code: Select all

isGorgeous 	>> ({"['isGorgeous']"})

- Input functions & commands through shorthand and tab

Code: Select all

point + tab	>> love.graphics.point(x, y)

- Edit functions by tabbing through them (dollar sign represent caret position)

Code: Select all

love.graphics.point($x, y) + tab >>  love.graphics.point(x, $y)

- Helpful definitions that you can tab through when using snippets

Code: Select all

newquad + tab >> love.graphics.newQuad(x, y, width, height, width_of_the_image, height_of_the_image)

- View all of LÖVE's possible commands with:

Code: Select all

Ctrl+Spacebar

- Run the game from Gedit with a shortcut

Code: Select all

Ctrl+L 	>>  Your_Game :D

- Run the script using Lua from Gedit with a shortcut

Code: Select all

Shift+Ctrl+L 	>>  Lunar Power! :D

- Search LÖVE's wiki in a browser from Gedit with a shortcut

Code: Select all

Select code >> Ctrl+Shift+F 	>>  Wiki Search :D

- Proper LÖVE syntax highlighting

Now available on Github!

There is bound to be bugs and better ways to do things so be sure to report things and whatnot :)

Re: Introducing GËL = Gedit + LÖVE

Posted: Fri Jan 10, 2014 8:30 pm
by T-Bone
That looks really nice. I've done a lot of LÖVE coding in Gedit and this seems like it could be really helpful.

Re: Introducing GËL = Gedit + LÖVE

Posted: Sat Jan 11, 2014 2:29 pm
by Germanunkol
Nice work!

I was looking for something like this a few months back..

Re: Introducing GËL = Gedit + LÖVE

Posted: Sun Jan 12, 2014 1:22 am
by OttoRobba
Glad to know it is helpful folks :)

Fixed some indentation and whatnot a couple of days ago, if you downloaded it before that, I recommend cleaning the snippets related to Lua and re-importing them. I'll find a way to make it more streamlined in the future :)

[]

Posted: Mon Jan 13, 2014 11:46 am
by bekey
-snip-

Re: Introducing GËL = Gedit + LÖVE

Posted: Mon Jan 13, 2014 12:41 pm
by OttoRobba
Aye, that is true. I think it is the same with OSX? Not sure.
I'll also have to check where to store the lua.lang file in those two platforms as well.

The brackets shortcuts along with the snippets should all work with all platforms though :)

Glad this is helpful :D

Re: Introducing GËL (Beta) = Gedit + LÖVE

Posted: Mon Jan 13, 2014 11:25 pm
by OttoRobba
Updated the snippets collection today. I went ahead and removed every single exception, I now leave it to the user and Gedit's default tool behaviour to select what is best. Basically, if a conflict between snippets exist, just use Ctrl+Spacebar and select the one you wanted.

This behaviour is more consistent, easier to remember and works better with Gedit's plugin. Hooray!

I'm thinking of adding a few "skeleton" snippets, things like common keyboard input (like wasd/arrow keys). Do you guys have any good ideas for skeleton functions?