![]() I also ssh to a lot of virtual servers to edit and maintain them. Then you can just type mate to open a file for editing from anywhere. To install the mate command, open Preferences…, click on the Terminal tab and click install. Since I spend most of my day in the shell, I use the mate command a lot to open and edit files in TextMate 2. Note that in the current alphas of TextMate 2, you need to restart the application for the favorites to be updated. Next time you want to open an project, just press ⇧⌘O (O not zero) to open the Open Favorite dialog, then type or click to open the project. Then, to create a favorite, right click on the project folder and choose “Add to Favorites”. To set up a favorite, use the file browser in TextMate 2 to navigate to the folder above your projects. In TextMate 2, the Favorites feature works better for me. to open the project folder (and then created TextExpander scripts to do this, see TextExpander in Terminal). So I used to open projects by opening a terminal, cd to the project folder and type the command mate. In TextMate 1 we had project files, but I never really used them. I find myself opening the same projects over and over again in TextMate 2. To set the default file type, open Preferences… and on the Files tab, set your preferred new document type. ![]() I set it to my most common format, Ruby, as most of the time, that’s what I need. In TextMate 2, the shipped default is a plain text file which really makes no sense in a programmer’s editor. ⌘N is a programmer’s friend, it creates a new file in any editor. That is how I found the available snippets and keystrokes that I use every day. Type in what you think could exist or what it may be called, and chances are, there it is. Or best of all, use ⌘⌃T to bring up the bundle search dialog to find what’s there. Or you could click on the gear menu (see image right) at the bottom of an opened file to see what’s available. You could go to the Bundle / Edit Bundles… menu (or press ⌃⌥⌘B) and then click on a bundle to see its contents. There are many ways to learn about what’s in a bundle. Or just open an unrecognized file and TextMate 2 will recommend a bundle to install. Check a bundle to install, uncheck to remove. To install a language or feature bundle, open Preferences… or press ⌘, and click on Bundles. In the good old days when TextMate 1 was still growing, this prevented keystroke and scope conflicts. I don’t install all the bundles, I only install them as needed (and remove the ones I do not need). There are bundles for programming languages, build systems, source code control, testing languages and odd file formats. Whether you code in Ruby and Shell like I do, or in some esoteric language, chances are that there is a bundle that will not only provide syntax highlighting for that language but include a whole bunch of snippets to make programming easier. The true power of TextMate can be found in its bundles. ![]() I’ll assume you know the platform keys and features and move on to the TextMate features straight away. It uses all of the standard Apple keystrokes and text features so that I do not have to know another set. Note that it all starts with the fact that TextMate 2 is the most Mac-like of programmer’s editors. So here are the basic parts of TextMate 2 that I use regularly. I’ve been speaking with users of other awesome programmer’s editors and they wanted to know what it is in TextMate that I love so much and keeps me using it. That was worth a swag at it, and some attempts to learn the keysets and get myself all experty at it.I have been using TextMate for years as my primary programmer’s editor, but it turns out that I only use a subset of its amazing features. BBEdit was going to run me $99 at best, and TextMate converted out to roughly $50 with the exchange rate. People have been talking up TextMate pretty effectively, and having a Django text bundle didn’t hurt. I stopped upgrading BBEdit a few versions back, simply because I wasn’t doing anything brilliant with it. There’s clearly a lot you can do with this critter, but I think it’ll be a bit before I’ve really laid down the finger-muscle-memory to actually make it more efficient than where I was before. Anyway, that part is cake.Ĭommand-J isn’t “go to line” though. Checking them out of subversion directly into the Application Support/TextMate directory is what I’d definitely class as “geeky”. Getting the Django and DjangoTemplate bundles installed was pretty easy, in a geeky sort of way. First thing I did after I had it legally was go snag up the Django and DjangoTemplate bundles form their repository and fire it up.Īnd my first thought was “Yup, this one’s going to have a learning curve”. Last night, I became TextMate user # 13348 when I paid up my euro’s to the TextMate payment engine. I guess its that time for trying out those things that you said you would, but hadn’t gotten around to. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |