1 decade ago
by drhayes
I'm a TextMate fan and I hate typing. So I made a
TextMate bundle for ImpactJS.
It's really bare bones for now, but I expect as I develop on my own projects I'll expand it. Let me know if it's useful or if you have any feature requests.
Genius. I started building my own already, but yours is MUCH better. :P
1 decade ago
by Colin
That's great, thanks so much!
need some assistance...
as a TextMate noob, I downloaded the zip from GitHub, extracted the contents and couldn't find any .tmBundle file. How do I install this bundle?
My primitive TextMate knowledge is based solely on locating .tmbundle files, dragging and dropping them into the folder along with other bundles.
You rename the folder so that it has .tmbundle on the end. :P Remember that, as a bunch of plugins will need you to do that. :)
1 decade ago
by drhayes
Alternately, you can clone the repository directly into your Bundle directory for easy updating.
Open a terminal and try this out:
cd Library/Application\ Support/TextMate/Bundles
git clone https://github.com/drhayes/ImpactJS.tmbundle.git
You might need to create the Bundles directory. After that, you can run
git pull
from within the bundle itself on the command-line and stay up to date. Easy peasy!
ran into another noob issue:
after installing via git clone (thx drhayes),
i tried going to Bundles->ImpactJS->ig.core->ig.module, and got this
ig.module(
'Traceback (most recent call last):
File "/Users/myname/Library/Application Support/TextMate/Bundles/ImpactJS.tmbundle/Support/bin/make_module_name.py", line 17, in <module>
path = sys.argv[1]
IndexError: list index out of range'
)
.requires(
''
)
.defines(function() {
});
anything i need to prep up first?
Crazy. I just built my own Textmate bundle for Impact.
I included a remedial "module" snippet like the one drhayes made, but more importantly, there's an Entity template. So, when you're working in project mode in Textmate, you can create a new file with the Entity template and it should all get set up for you instantly.
ImpactJS.tmbundle
1 decade ago
by drhayes
fugufish: Sorry I didn't respond earlier. I didn't check the forum for a couple of days.
I'm not sure what's going on there... are you typing "igm" in the editor window while in a project? Since it's a tab expansion snippet, it's meant to be used while you are editing a file.
Try opening a folder in TextMate. Go to File->Open and select the whole folder, the base where "index.html" is. Create a new file in lib/game/entities/whatever.js (where whatever is the name of your entity). In that newly created file, type "igm" and then hit Tab. It should expand into the whole thing for you. If it doesn't, please let me know.
paularmstrong: Oh, badass. Your TM module is way more complete than mine. I'm going to explore it a bit and maybe fork it? It'll be a while before I can do any Impact work, but I'll check it out. Thanks!
@drhayes: Thanks! Any fixes and improvements pushed back are always appreciated.
Super useful! Makes creating new modules much easier.
I have nothing really to add other than "thanks for sharing". :)
1 decade ago
by attanze
Thanks for sharing. I will use this bundle with Sublimetext.
1 decade ago
by sleenee
Just a question,
can this only be used in TextMate? That's a mac editor so doesn't anyone have a bundle for any other editor? (notepad++ , komodo, eclipse, ...)
thanks in advance,
Sleenee
I don’t think Komodo needs bundles does it? But yeah, it can only be used on apps that support text mate bundles. The new Chocolat.app does.
Making a plugin for an editor shouldn’t be hard, and viewing the source of the .tmbundle will show you enough of what can be done using it. It’s basically just snippets and stuff.
I’ve got it installed, but I don’t think i’ve ever actually used it as the snippets get melted into your brain after a while. :P
1 decade ago
by Seven
@sleenee you can use this bundle, probably without modification, in sublime text 2 which is available for all platforms. E-texteditor on windows also supports tm bundles.
1 decade ago
by mimik
yeah we need a sublimetext 2 port in the packet mananger there for us cross computer devs :-D
Page 1 of 1
« first
« previous
next ›
last »