SublimeText plugin for Love

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
Charles Randall
Prole
Posts: 34
Joined: Wed May 09, 2012 2:52 pm

Re: SublimeText plugin for Love

Post by Charles Randall »

TechnoCat wrote:
Charles Randall wrote:Hey, so, before seeing this I ended up making my own plugin for Sublime Text 2 with two purposes in mind:

1) To create new love2d projects simply and easily
2) To add robust build rules.

https://github.com/mrcharles/sublove2d
You should add it to the ST2 package manager.
http://wbond.net/sublime_packages/package_control
Oh hey, I didn't even know that existed. I'll look into it tonight, thanks!
coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: SublimeText plugin for Love

Post by coffee »

TechnoCat wrote:Lots of people use SublimeText and Lua it seems here.
I haven't had a problem with block comments, but I have problems with the base Lua and elseif statements. It never unindents them correctly!
Indentation with me also don't work always so perfect but that I didn't care much because I thought that was perhaps still being adjusted by dev. However if you tell me that block comments working well without the need of adjustments in files I will check then what's wrong. I will install it also in Windows or do a fresh reinstall in OSX deleting all settings. Thank you for feedback.

Robin, thank you I got confused because in PIL http://www.lua.org/pil/1.3.html examples with:
--[[
print(10) -- no action (comment)
--]]
and also ST was dealing well with --]]

EDITED: BTW new 0.8 love commands should be missing in package too.
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

Re: SublimeText plugin for Love

Post by TechnoCat »

I was confused on what you meant by ST2 not working with block comments. You cannot block comment in Lua with a shortcut. I thought you were talking about syntax highlighting for some reason.
coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: SublimeText plugin for Love

Post by coffee »

TechnoCat wrote:I was confused on what you meant by ST2 not working with block comments. You cannot block comment in Lua with a shortcut. I thought you were talking about syntax highlighting for some reason.
No, we can't because Lua package settings are incomplete I think. Edit>Comment>Enable Block Comment should --[[ ... ]] the selected block and not single-comment every line. If you do the change I did in Lua package block comment command starts to work (either by menu or shortcut).

For me in OSX: CMD+ALT+/ do comment blocks. CMD+/ do single comments.
User avatar
Trappingnoobs
Citizen
Posts: 95
Joined: Tue Oct 12, 2010 8:52 pm

Re: SublimeText plugin for Love

Post by Trappingnoobs »

Not sure if I installed it wrong but it stopped highlighting some Lua functions and things I defined and such, (Intellisense worked though for Love2D) any chance you're fixing this?
coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: SublimeText plugin for Love

Post by coffee »

Trappingnoobs wrote:Not sure if I installed it wrong but it stopped highlighting some Lua functions and things I defined and such, (Intellisense worked though for Love2D) any chance you're fixing this?
Don't you use Package Manager (http://wbond.net/sublime_packages/package_control) to auto-control new installs? Also manually should only be grab the Love folder and drop it in same root folder than other packages. It's hard that LOVE package ruined Lua functions. However working in LOVE/Lua mode can relegate perhaps some functions to be more "bellow the line" than you were used in pure Lua mode.
User avatar
Charles Randall
Prole
Posts: 34
Joined: Wed May 09, 2012 2:52 pm

Re: SublimeText plugin for Love

Post by Charles Randall »

TechnoCat wrote:
Charles Randall wrote:Hey, so, before seeing this I ended up making my own plugin for Sublime Text 2 with two purposes in mind:

1) To create new love2d projects simply and easily
2) To add robust build rules.

https://github.com/mrcharles/sublove2d
You should add it to the ST2 package manager.
http://wbond.net/sublime_packages/package_control
Opened a pull request with them last night, hopefully they'll approve it soon.
coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: SublimeText plugin for Love

Post by coffee »

Charles Randall wrote:Opened a pull request with them last night, hopefully they'll approve it soon.
I think it's great you trying to add JIT compiling settings but perhaps you could join minism project instead and help develop existing package because exist 2 Love packages could be conflicting or a pure lost of synergy.

Other aspects in your project:
You want to create a "New Love project" entry in menu? I don't get why.
Project -> New Love2d Project. Save this new project file whereever your main.lua is (or will be).
Open the project. You will see all your lua files in the sidebar.
But this isn't actually what all projects do by default?

Also release a package that you designate everywhere as "Love2d" in title and in instructions only will raise misuse of real framework name.
User avatar
Charles Randall
Prole
Posts: 34
Joined: Wed May 09, 2012 2:52 pm

Re: SublimeText plugin for Love

Post by Charles Randall »

I considered merging but minism does a bunch of stuff I don't want. As for the project thing, it's what I wanted. I'm just sharing my work so others can benefit or not.
Jemmadz
Prole
Posts: 1
Joined: Tue May 15, 2012 4:30 am

Re: SublimeText plugin for Love

Post by Jemmadz »

coffee wrote:
TechnoCat wrote:Lots of people use SublimeText and Lua it seems here.
I haven't had a problem with block comments, but I have problems with the base Lua and elseif statements. It never unindents them correctly!
Indentation with me also don't work always so perfect but that I didn't care much because I thought that was perhaps still being adjusted by dev. However if you tell me that block comments working well without the need of adjustments in files I will check then what's wrong. I will install it also in Windows or do a fresh reinstall in OSX deleting all settings. Thank you for feedback.

Robin, thank you I got confused because in PIL http://www.lua.org/pil/1.3.html examples with:
--[[
print(10) -- no action (comment)
--]]
and also ST was dealing well with --]]

EDITED: BTW new 0.8 love commands should be missing in package too.
I think its because of the else if statement It must have done something wrong with the statement
:x
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 248 guests