Oh hey, I didn't even know that existed. I'll look into it tonight, thanks!TechnoCat wrote:You should add it to the ST2 package manager.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
http://wbond.net/sublime_packages/package_control
SublimeText plugin for Love
- Charles Randall
- Prole
- Posts: 34
- Joined: Wed May 09, 2012 2:52 pm
Re: SublimeText plugin for Love
Re: SublimeText plugin for Love
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.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!
Robin, thank you I got confused because in PIL http://www.lua.org/pil/1.3.html examples with:
and also ST was dealing well with --]]--[[
print(10) -- no action (comment)
--]]
EDITED: BTW new 0.8 love commands should be missing in package too.
- TechnoCat
- Inner party member
- Posts: 1612
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: SublimeText plugin for Love
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
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).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.
For me in OSX: CMD+ALT+/ do comment blocks. CMD+/ do single comments.
- Trappingnoobs
- Citizen
- Posts: 95
- Joined: Tue Oct 12, 2010 8:52 pm
Re: SublimeText plugin for Love
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
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.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?
- Charles Randall
- Prole
- Posts: 34
- Joined: Wed May 09, 2012 2:52 pm
Re: SublimeText plugin for Love
Opened a pull request with them last night, hopefully they'll approve it soon.TechnoCat wrote:You should add it to the ST2 package manager.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
http://wbond.net/sublime_packages/package_control
Re: SublimeText plugin for Love
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.Charles Randall wrote:Opened a pull request with them last night, hopefully they'll approve it soon.
Other aspects in your project:
You want to create a "New Love project" entry in menu? I don't get why.
But this isn't actually what all projects do by default?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.
Also release a package that you designate everywhere as "Love2d" in title and in instructions only will raise misuse of real framework name.
- Charles Randall
- Prole
- Posts: 34
- Joined: Wed May 09, 2012 2:52 pm
Re: SublimeText plugin for Love
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
I think its because of the else if statement It must have done something wrong with the statementcoffee wrote: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.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!
Robin, thank you I got confused because in PIL http://www.lua.org/pil/1.3.html examples with:and also ST was dealing well with --]]--[[
print(10) -- no action (comment)
--]]
EDITED: BTW new 0.8 love commands should be missing in package too.

Who is online
Users browsing this forum: No registered users and 5 guests