![]() Once we have done this we are presented with our Shiny New Bundle, for me this is called Chris's Bundle. Nicely the first thing that shows in the dropdown is Bundle, and this is what we want, so click create and off we go. There is no menu item for this that I could see, but our trusty Command+N comes to the rescue here, and we are presented with some options. You will then be presented with a screen like so.Įxcellent, now we need to create a new Bundle. Not wanting to have to learn how to do two things at once, this is the process I used, and it works!įirst you want to get to your Bundle editor, very easy, clicking Bundles in the Menu, then on Edit Bundles, or for those of us Keyboard inclined, Control+Option+Command B. There was some talk of macros, and this may be the way really to get this done, but I needed to find out how to make a Bundle, as TextMate 2 seems to be currently taking away bundle modifications on update during the Alpha, except for ones that are your own. In the text bundle there is a command, Remove Trailing Spaces in Document / Selection.Įxcellent, I wish I had known about this sooner, but now how do I get this run everytime that I save my code. But some talking to other folks I discovered that all was not lost, and I had indeed had the power to rid myself of this, as I had done in the past without knowing it. I started it up, and oh no, again I found myself confronted with trailing whitespace that had plauged me all through my TextMate usage. Being the excitable fellow that I can be, I of course jumped on this the absolute moment that I could, closed down my MacVim instance and downloaded TextMate 2. You can see the results by looking at the source code for this post.So as you may know, the long awaited arrival of TextMate 2 is upon, albeit in alpha form. It’s a simple thing, but it works very nicely and requires very little effort from me. Hitting tag again moves the cursor after the closing anchor (where the $0 is), and it’s ready for me to add another tag. I type in the tag name and it’s automatically put at the other $1 spot. The boilerplate is inserted, and the cursor is set at the first $1. I create each individual tag by typing “ttag” and hitting the Tab key. The Bundle Editor window should now look like this I call this snippet “Technorati tag” and give it a Tab Trigger Activation of “ttag,” but feel free to use whatever will be easy for you to remember. Now make another snippet and paste this into the right pane: $1$0 The HTML comments before and after the paragraph are probably not necessary, but I’m modeling this on how ecto handles Technorati tags, and ecto puts the tag paragraph between comments. It sets the font to a smaller size and right-justifies the paragraph. You’ll notice that the paragraph is assigned the “tags” class, which is a class I created in my Movable Type CSS stylesheet. The snippet text is inserted and the cursor is left between the opening and closing paragraph tags (where the $0 is), ready for the individual tags to be inserted. When I’m done with my post, I go to the bottom and type “gtag” followed by a tab. (Click on the image to see it at full size.) I used a Tag Trigger called “gtag.” when you’re done, the Bundle Editor window should look like this I called it “Technorati tag group.” Then set the Activation to a Key Equivalent or a Tag Trigger that’s easy for you to remember. (You could probably put this in the HTML section or the Plain Text section if that’s how you write your posts, but I haven’t done it that way myself.) Paste the following text into the right pane, Īnd give the snippet a name that means something to you. Open the Bundle Editor window (menu item Window:Show Bundle Editor) and create a new snippet in the Markdown section. ![]() The first creates the paragraph into which the tags will go, and the second creates the tags themselves. ![]() My goal was to add tags like this to the ends of my posts (you can scroll down now to see what they look like) with as little typing as possible. With this in your post, you should be able to find it on Technorati’s site by asking for the “blogging” tag. To get Technorati to recognize tags in your post, you must add HTML that looks like this: blogging I write the posts using the Markdown plain-text format, which accepts-and doesn’t mess with-embedded HTML. Next post Previous post Technorati tags in TextMateĪs promised in my last post, here’s how I add Technorati tags to my posts using TextMate.įirst, you should understand that I write my posts in TextMate and then copy the text and paste it into the Movable Type “New Entry” web page.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |