Page 2 of 3

Re: SublimeText plugin for Love

Posted: Wed May 09, 2012 3:11 pm
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!

Re: SublimeText plugin for Love

Posted: Wed May 09, 2012 3:29 pm
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.

Re: SublimeText plugin for Love

Posted: Wed May 09, 2012 3:42 pm
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.

Re: SublimeText plugin for Love

Posted: Wed May 09, 2012 3:51 pm
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.

Re: SublimeText plugin for Love

Posted: Wed May 09, 2012 10:18 pm
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?

Re: SublimeText plugin for Love

Posted: Wed May 09, 2012 10:29 pm
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.

Re: SublimeText plugin for Love

Posted: Thu May 10, 2012 1:33 pm
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.

Re: SublimeText plugin for Love

Posted: Thu May 10, 2012 2:05 pm
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.

Re: SublimeText plugin for Love

Posted: Fri May 11, 2012 2:17 am
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.

Re: SublimeText plugin for Love

Posted: Tue May 15, 2012 4:38 am
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