Part of the EllisLab Network
   
1 of 2
1
Mac Users - TextMate CodeIgniter Bundle v0.1
Posted: 24 April 2006 06:11 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  64
Joined  04-10-2006

I’ve started a basic CodeIgniter bundle for the excellent Mac OSX text editor TextMate. I know that the forum user iworx was working on something here, but since I’d not seen anything yet I thought I’d have a go myself. Apologies if I’m stealing anyones thunder! Please feel free to add to this - it’s far from complete.

————————————————————————————
Here’s a demo movie that shows what it does
————————————————————————————
For those new to bundles, here’s a quick overview.

What does a Textmate bundle do?
Allows you to write code really quickly by reducing the amount of keystrokes you need to type commands and saving you from memorising everything.

How does it work?
By typing a keyword or ‘trigger’ followed by tab. At present, the classes with triggers are as follows:
Active Record - type ciar followed by tab
Benchmark - type cibench followed by tab
Calendar - type cical followed by tab
Config - type ciconf followed by tab
Load - type ciload followed by tab

I’ve used the trigger format suggested by iworx - these should be pretty easy to remember, though it might help if you get into the habit of thinking “code igniter load” as you type ciload, for example. Once you’ve hit tab the first time, you can press tab again to move between editable fields.

How do I use it?
1) First you need to be running OSX and have Textmate installed.
2) Next, download the bundle, unzip it and double click it to install.
3) Open up Textmate and browse to a php file in one of your CodeIgniter projects.
4) Type one of the triggers above, followed by tab. (You must be typing between the php <? and ?> tags.)

I look forward to your comments, bug reports and additions!

Profile
 
 
Posted: 24 April 2006 09:07 PM   [ Ignore ]   [ # 1 ]  
Grad Student
Rank
Total Posts:  68
Joined  04-02-2006

This would be awesome if I weren’t stuck with this hunk of junk windows box.  Does anyone know of an editor like TextMate available for Windows or Linux?

Profile
 
 
Posted: 24 April 2006 09:13 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  886
Joined  03-06-2006

You might take a look at jedit.

I downloaded the Linux version and it seems pretty nice. I like gvim better, but jedit would be much more like the screenshots I have seen for TextMate.  I think there is a Windows version also.

 Signature 

Corozal, Belize | Linux.bz | Using Kubuntu Linux 7.10 | CodeIgniter 1.5.3

Profile
 
 
Posted: 24 April 2006 10:10 PM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  378
Joined  04-03-2006
linuxbz - 24 April 2006 09:13 PM

You might take a look at jedit.

I downloaded the Linux version and it seems pretty nice. I like gvim better, but jedit would be much more like the screenshots I have seen for TextMate.  I think there is a Windows version also.

If you like Jedit, you might also like Jext. Both these editor are open source Java

 Signature 

UserAuth Mini-App

Profile
 
 
Posted: 02 May 2006 11:43 PM   [ Ignore ]   [ # 4 ]  
Summer Student
Avatar
Total Posts:  2
Joined  02-26-2006

I can’t view the movie or download the bundle. I take it you’re having some server trouble?

Profile
 
 
Posted: 03 May 2006 03:18 AM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  495
Joined  03-08-2006

Java? Why slow your system down and sacrifice all available system RAM…. ScITE is a brilliant cross-platform open-source text editor smile

 Signature 

Flickr | Last.fm | Del.icio.us

Profile
 
 
Posted: 03 May 2006 04:24 AM   [ Ignore ]   [ # 6 ]  
Grad Student
Rank
Total Posts:  64
Joined  04-10-2006
Crusty - 02 May 2006 11:43 PM

I can’t view the movie or download the bundle. I take it you’re having some server trouble?

Yup. It seems my webhost had a ‘serious hardware failure’. Sorry about this - I’ll try to host the files somewhere else and let you know when it’s back up and running.

Profile
 
 
Posted: 03 May 2006 02:37 PM   [ Ignore ]   [ # 7 ]  
Grad Student
Rank
Total Posts:  64
Joined  04-10-2006

Just moved the files to another server - the links above should work now. Check out the movie, download the bundle and let me know your thoughts all you Textmate heads.

Profile
 
 
Posted: 04 May 2006 03:10 PM   [ Ignore ]   [ # 8 ]  
Grad Student
Avatar
Rank
Total Posts:  75
Joined  03-06-2006

impressive, maybe i should get a mac afterall…

Profile
 
 
Posted: 09 May 2006 09:12 AM   [ Ignore ]   [ # 9 ]  
Summer Student
Total Posts:  2
Joined  05-09-2006

This works great. Now, if only there were some documentation to tell you all the shortcuts.

Ah, what ever hit me with a stick. I can just edit the snipplets and add my own keywords. I forgot. Sorry, my bad.

BTW keep us updated.

Profile
 
 
Posted: 09 May 2006 10:10 AM   [ Ignore ]   [ # 10 ]  
Grad Student
Rank
Total Posts:  64
Joined  04-10-2006

Glad to hear it’s useful for you unimatrix. I’ll do my best to keep it updated, but it’s quite a task keeping up with all the features of CI! If anyone gets round to updating it or adding new triggers before me, please drop me a note and I’ll include it in the main release and relink the file above.

As far as remembering the shortcuts goes - do feel free to modify them to something that suits you, and please suggest alternatives that might work better than my version -  I’ll change it in the main release if we find something that’s more logical. Personally I’ve printed out the cheatsheet and just scribbled the tab triggers next to each section, just in case I forget. After a little while using them it feels pretty natural really, and saves a lot of typing.

Do choose your shortcuts carefully though - you don’t want your keyboard to look like Rick’s one, after all. wink

Profile
 
 
Posted: 04 June 2006 10:03 PM   [ Ignore ]   [ # 11 ]  
Summer Student
Total Posts:  9
Joined  05-31-2006

exactly what I was looking for.
thanks Nick!

Profile
 
 
Posted: 27 July 2006 04:05 PM   [ Ignore ]   [ # 12 ]  
Summer Student
Avatar
Total Posts:  5
Joined  05-29-2006

I just came across Scribes ( http://scribes.sourceforge.net/ ) a few days ago.  I’ve never used Textmate but scribes has the ability to set template clips to keywords and autofill the data after you insert the template.  Wish it had a tabbed interface but other than that it saves ALOT of time.

Brian

Profile
 
 
Posted: 16 January 2007 08:18 AM   [ Ignore ]   [ # 13 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  514
Joined  12-05-2006

Do you guys know PsPad?

It’s super cool!

Dan

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 16 January 2007 08:39 AM   [ Ignore ]   [ # 14 ]  
Summer Student
Total Posts:  8
Joined  01-02-2007

I have been a huge fan of ScITE for many years. What I liked the most if the “auto save” feature.
Some time ago I started trying Scribes. It also has auto save, plus a lot more.
Snipets out of the box (you can configure ScITE to use snipets, but that’s hard and complicated).
But the dream is s MacBook pro 17-inch with Textmate… as soon as boss or wife gives in.

Profile
 
 
Posted: 14 February 2007 12:33 PM   [ Ignore ]   [ # 15 ]  
Summer Student
Total Posts:  9
Joined  02-09-2007

I’m surprised no one’s mentioned Intype in here. It’s an up and coming Textmate-like editor for windows. Right now it’s in early Alpha, but it’s surprisingly good.

If you have Textmate envy like me, you would do well to keep your eye on Intype, it’s going to be indispensable soon.

Profile
 
 
   
1 of 2
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 77497 Total Logged-in Users: 23
Total Topics: 101522 Total Anonymous Users: 1
Total Replies: 544265 Total Guests: 207
Total Posts: 645787    
Members ( View Memberlist )