Sharing Custom TextMate Bundles with Subversion
19 comments Latest by aaaa Thu, 18 Mar 2010 02:03:39 GMT
Early last year, I began to start creating a bunch of snippets and such for TextMate, all of which were lost several months ago due to Hurricane iSight. I recently decided to start building some again, especially some that sped up my RSpec writing. After creating a few, I wondered, “would anybody else on my team want to help me write some?” So, I thought that it was time to figure out how to share my bundle with others and allow them to add stuff to it… which seems like a good job for Ms. Subversion.
I couldn’t find a quick walk-through online and found myself in the #textmate IRC channel getting proper instructions. (thank you Allan!)
Create Your Bundle
In TextMate, you can open up the Bundle Editor and create a new bundle. Let’s call our custom bundle, RSpec. Go ahead and begin adding some snippets, commands, etc to your new custom bundle. Once you have something in your Bundle, you’ll want to reload your bundles, by going to Bundles > Bundle Editor > Reload Bundles. This will write your new bundle to disk to ~/Library/Application\ Support/TextMate/Bundles/.
$ ls -al ~/Library/Application\ Support/TextMate/Bundles/
total 0
drwxr-xr-x 5 robbyrus robbyrus 170 Feb 11 21:10 .
drwxr-xr-x 4 robbyrus robbyrus 136 Feb 11 20:11 ..
drwxr-xr-x 5 robbyrus robbyrus 170 Jan 12 16:58 PLANET ARGON.tmbundle
drwxr-xr-x 3 robbyrus robbyrus 102 Feb 11 21:10 RSpec.tmbundle
drwxr-xr-x 4 robbyrus robbyrus 136 Oct 21 13:38 Robby Russell???s Bundle.tmbundle
Importing your Bundle into Subversion
You’ll want to first import your new bundle into Subversion.
$ cd ~/Library/Application\ Support/TextMate/Bundles/
$ svn import RSpec.tmbundle/ -m "Initial import of RSpec (test) bundle" http://{respository_url}/{repository_name}/RSpec.tmbundle/
Adding RSpec.tmbundle/info.plist
Adding RSpec.tmbundle/Snippets
Adding RSpec.tmbundle/Snippets/new specification.tmSnippet
Great, now it’s in Subversion. Now, you’ll want to check it back out so that TextMate is running off of the version from Subversion.
The simplest way to do this is to delete your local copy and checkout the latest from Subversion.
$ rm -rf RSpec.tmbundle/; svn co http://{respository_url}/{repository_name}/RSpec.tmbundle/
A RSpec.tmbundle/Snippets
A RSpec.tmbundle/Snippets/new specification.tmSnippet
A RSpec.tmbundle/info.plist
Checked out revision 5.
All that you need to do now, is relaod your bundles again. Now that you know where the bundle files are stored, you can commit any changes as they are made.
Committing Bundle Changes
When you make changes to your TextMate bundle, you can do the following to commit your updates to the Subversion repository.
See Your Pending Changes
You can change directories to your custom bundle and run svn status.
$ cd ~/Library/Application\ Support/TextMate/Bundles/RSpec.tmbundle/
$ svn status
? Snippets/new context.tmSnippet
You’ll see that the new snippet that I created needs to be added to Subversion.
$ svn add Snippets/new\ context.tmSnippet
A Snippets/new context.tmSnippet
Now, let’s commit it to the repository.
$ svn ci -m "Adding new context snippet"
Adding Snippets/new context.tmSnippet
Transmitting file data .
Committed revision 6.
At this point, all Subversion tips and tricks apply… so… it’s time to leave it to you to figure out the rest. :-)
TIP: Always reload your bundles before and after running svn update or svn commit
...and there you have it! You and your friends can (with a little work) share and develop your own custom bundles for TextMate. I’m hoping to get my teammates at PLANET ARGON to help me build a bunch for RSpec, which I’ll try to release into the wild soon. If anybody is already working on RSpec snippets and other TextMate hacks, please let me know.
UPDATE
Aslak kindly commented on this post and has pointed me to bundle available in the RSpec subversion repository, which I blogged about.) :-)
Happy hacking!
Enjoying the content? Be sure to subscribe to my RSS feed.






Have you seen the RSpec.tmbundle that sits in the RSpec subversion? It’s quite mature, but we’d love to get some more feedback on it.
http://rspec.rubyforge.org/tools/extensions/editors/textmate.html
Just beware that the URL on that page is wrong. The correct URL is svn://rubyforge.org/var/svn/rspec/trunk/RSpec.tmbundle
(the svn URL typo will be fixed when we release the next RSpec)
Aslak,
Thanks for pointing that out! I hadn’t heard of that. Do you know who I should talk to about getting the URL updated on that page? I’m going to update this post and point out this bundle.
Robby, maybe you can explain for me something that I’m still unclear on…
Where/how are the bundles stored, exactly? When I select “reload bundles,” as described here, it looks like files in ~/Library/Application\ Support/TextMate/Bundles/ are not touched (based on the date).
This issue is not covered well in the TextMate help, nor in the Pragmatic Programmers’ TextMate book—so I’m curious for information from someone who understands this more deeply than me.
Thanks for the great post, btw :-) Cool stuff.
>Where/how are the bundles stored, exactly?
I’m interested too, can you explain this point better ? Thank you
maclaren stroller | bugaboo stroller | combi stroller | jeep stroller | peg perego stroller | umbrella stroller
Hey thanks Robby – of course everything after the first checkout, I use the (built-in) SVN Bundle for… so meta, I know :-)
Like the first time you type
res://msxml.dll/defaultss.xslinto the addressbar of Internet Explorer and realize what is going on…ベネフィットライフなら首都圏の不動産仲介手数料が最大無料でお得!コストダウンの味方「オプティマキッドの激安格安 名刺」は両面カラー・高級厚紙・ラミネート防水加工のハイクオリティです
不動産 不動産投資 ホームページ制作 広島 不動産 松山市 不動産 香川県 不動産 徳島 不動産 高知 不動産 高松 不動産 労働問題 広島 不動産 結婚相談所 東京 本庄市 不動産 ケータリング 東京 インプラント 矯正歯科 名古屋 静岡 不動産 会社設立 脱毛 結 婚相談所 大坂 貸事務所 愛知県 葬儀 京都 マンスリーマンション 尾道 賃貸 婚活 京都 賃貸 電話代行 ウィークリーマンション 京都 ナショナル 照明 松下 照明 コイズミ 照明 照明器具 激安 浅虫 温泉 ネイルスクール 福山 賃貸 労 働審判 札幌 インプラント 賃貸 大阪 福岡 中古車 杉並区 不動産 中野区 不動産 ビジネスフォン 足立区 不動産 飛騨高山 温泉 札幌 不動産 仙台 不動産 大阪 不動産 横浜 不動産 名古屋 不動産 広島 不動産 福岡 不動産 京都 不動産 埼玉 不動産 千葉 不動産 静岡 不動産 神戸 不動産 浜松 不動産 堺市 不動産 川崎市 不動産 相模原市 不動産 姫路 不動産 岡山 不動産 明石 不動産 鹿児島 不動産 北九州市 不動産 熊本 不動産
敷金 粘弾性 さいたま市 矯正歯科 矯正歯科 浦和 宇奈月温泉 八王子 賃貸 異業種交流会 表参道 結婚 品川 まつ毛エクステ 中古トラック 伊勢志摩 信州 温泉 建設業許可 大阪 大阪 賃貸事務所 古着 買取 照明器具 猫 腎不全 キャバクラ 求人 二次会 幹事 広島 不動産 プチギフト フォトスタジオ パソコン教室 稲沢 腕時計 札幌 写真館 成人式 成人式 振袖 流動解析 インプラント 広島 安佐北区 ホテル 過払い 大阪 呉 ホテル 広島 インプラント 照明 激安 照明器具 販売 大光電気 照明 プリザーブドフラワー ギフト 不動産 本庄市 不動産 伊勢崎市 不動産 熊谷市 不動産 前橋市 不動産 桶川市 不動産 太田市 不動産 小山市 不動産 坂戸市 不動産 高崎市 不動産 宇都宮市 Tokyo Furniture Tokyo Rent Tokyo Real Estate Tokyo Apartments Tokyo Furnished Apartments
証明写真 広島市 不動産 ミステリーショッピング 覆面調査 通 販 ファッション通販 消費者金融 ショッピング 消費者金融 比較 ネットショップ 開業 ECサイト ネットショップ開業
愛川 不動産 東京都町田市 不動産情報 古淵 不動産 相模原市橋本 不動産 上溝 不動産 座間市 不動産 町田市 不動産情報 相模大野 不動産 原当麻 不動産 城山 不動産 相模原 グルメ 相模原 ラーメン 相模原市 学区 相模原 不動産売却 住宅ローン 計算 相模原 不動産検索 相模原 物件情報 相模原 新築一戸建て 相模原 中古住宅 相模原 土地 建築条件無し 相模原 不動産業者 橋本 新築一戸建て 相模原 中古マンション 鎌倉 不動産屋 北鎌倉 住宅 北鎌倉 マンション 北鎌倉 土地 鎌倉 高級マンション 鎌倉 邸宅 北鎌倉 不動産 由比ヶ浜 住宅 由比ヶ浜 マンション 由比ヶ浜 土地 由比ヶ浜 不動産 鎌倉市 住宅 鎌倉市 マンション 鎌倉市 土地 鎌倉市の不動産 雪の下 住宅 雪の下 土地 雪の下 不動産 海の見える物件 海に近い物件 海が見える 土地 海が見える マンション 二階堂 住宅 二階堂 マンション 二階堂 土地 二階堂 不動産 材木座 住宅 材木座 マンション 材木座 土地 材木座 不動産
厚木 不動産 愛川 不動産 古淵 不動産 相模原 リフォーム 橋本 不動産 登戸 不動産 川崎市多摩区 不動産 横浜 土地 戸塚 不動産 新百合ヶ丘 不動産 麻生区 不動産 相模原市 不動産 町田市 不動産 子供用マスク 簡単 ダイエット 産後 ダイエット ホームページ作成 神奈川 ホームページ制作 神奈川 電子タバコ 住宅 建築 住宅 建設 相模原市 不動産 町田市 不動産 インフルエンザ マスク 新型インフルエンザ マスク 平塚 不動産 茅ヶ崎 不動産 不動産 町田 不動産 相模原 藤沢 不動産 注文住宅 輸入住宅 仲介手数料 鎌倉 不動産 相模原 不動産 藤沢 不動産 神奈川 注文住宅 保土ヶ谷 不動産 東戸塚 不動産 相模原の不動産 大井町 土地 足柄上郡大井町 土地 平塚 不動産 小田原 一戸建て 名刺 印刷 名刺 激安 仲介手数料無料 仲介手数料無料 横浜 慰謝料請求 平塚 不動産 小田原 不動産 相模原 不動産
回春 ソープランド 吉原 ソープランド
this blog is kawaii XD チラシ 印刷 I am sorry for doing this lol I like to drinkコーヒー these days. you know肴? its food for sake.
you know評判管理?
you know[url=http://f-sons.com/]評判管理[/url]?
抜け毛 予防 薄毛 対策 AGA 検査 抜け毛 対策 男性型脱毛症 対策 薬用柿渋石鹸 柿渋石鹸 加齢臭 体臭 加齢臭 予防 セルビック 美容液 EGF FG スキンケア EGF FGF 美容液 スポーツ選手 視力回復 コンタクト 視力回復 レーシック 失敗 富士フィルム スキンケア コエンザエムq10 トライアルセット スキンケア 抗酸化 下半身引き締め 部分痩せ 毛穴 黒ずみ ビーグレン 小顔 ビーグレン 大人のニキビ ビーグレン 効果 ビーグレン スキンケア 透明肌 ビーグレン アンチエイジング 加齢臭 予防 サプリ
Useful information,thanks.
ed hardy clothing wholesale ed hardy ed hardy boots
drinking紅茶is one of my favorite. I also learn 英単語and loveフローライトso much. パワーストーンis mysterious things.
there are many kinds of お茶. When you study 英語, you should hold 蛍石 because it will help you to concentrate 誕生石 yes we love パワーストーン