useful bundle svn repository URL http://macromates.com/svn/Bundles/trunk/Review/Bundles/
Have you ever run into problems making changes to a TextMate bundle, or updating a bundle, where changes weren’t showing up or being updated? These and a myriad of other “problems” can be explained by having multiple copies of bundles on your drive. Even after a year of using TextMate, I still get confused about how it works, and in what order. On the TextMate Mailing List, Haris Skiadas posted an excellent explanation of the often-confusing bundle situation in TextMate.
The bundle mechanism seems a bit daunting at first, but it is actually fairly logical. There are four locations where bundles/bundle items may reside:
1. Inside the TextMate application
2. In /Library/Application Support/TextMate/Bundles
3. In ~/Library/Application Support/TextMate/Bundles
, where ~
is the current user’s home directory
4. ~/Library/Application Support/TextMate/Pristine Copy/Bundles
TextMate ships with a number of bundles, so that someone could start using it immediately. It contains the current version of those bundles at the time of packaging, and it doesn’t contain all the bundles, just the most often used ones.
If you want a newer version of a bundle, you have the option of checking things out from the repository. It is recommended that you do that in /Library/Application Support/TextMate/Bundles.
Now, each user might edit/add bundle items, and those changes are recorded in ~/Library/Application Support/TextMate/Bundles. This contains typically “delta” files, that record the local differences to the command, for instance if you change a shortcut or something.
And finally we come to the Pristine Copy directory. When you get a new bundle not via the repository, but via downloading a .tmBundle file, then this initial version of this bundle is stored in this directory. It is supposed to be the bundle in its “pristine state”, and any modifications you do to the bundle are recorded in ~/Library/Application Support/TextMate/Bundles. so you could return to that pristine state by removing these local modifications. It is supposed to be used only for bundles not shipping with TM, since there is already a “pristine state” for those bundles inside the TM application.
SNIPPET NAME
### ACTIVATION ### SCOPE SELECTOR
SNIPPET CODE
----------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------
class="" id="" +
### cci ### text, text.html
${1:id="${2:id}"} ${3:class="${4:class}"}
Html Comment ### >> ### text, text.html
<!-- ${0:Comment} -->
Table simple+
### tablee ### text, text.html
<table>
<tr><td>${0:Data}</td></tr>
</table>
TR (Table row)+
### tr ### text, text.html
<tr><td>${0:Data}</td></tr>
TD (Table data cell)+ ### td ### text, text.html
<td>${0:$TM_SELECTED_TEXT}</td>
button_to (controller, action, id) + ### buto ### text.html.ruby, text
<%= button_to "${1:link text...}" ${2:, :action => "${3:action}"} ${4:${5:, :controller => "${6:controller}"} ${7:, :id => "${8:id}"}} %>
form_remote_tag (url, id, submit_tag) +
### remt ###text.html.ruby, text
<% form_remote_tag ${1::url => {:action => :${2:action}${3:, :id => ${4:id}}\}} do %>
${5:<%= submit_tag "${6:Editing...}" %> }
<% end %>
分享到:
相关推荐
基于adsp双核心dsp的图像处理设计文件,希望能对大家有用,我正在研究adsp
为 TextMate 提供包管理的二进制文件。 用法 textmate [COMMAND] [*PARAMS] 安装或卸载操作后,Textmate 包会自动重新加载。 列出可用的远程捆绑包 textmate remote [SEARCH] 列出远程存储库中的所有可用包,可...
VSCode TextMate TextMate定义的语法文件的解释器。 TextMate语法使用oniguruma方言( )。 支持从JSON或PLIST格式加载语法文件。 该库在VS Code中使用。 目前不支持跨语法注入。正在安装npm install vscode-...
海难 Textmate 主题 随意使用、修改和重新分发。 执照 版权所有 (c) 2012-2015 Martin 特此授予任何人免费获得本软件和相关文档文件(“软件”)副本的许可,不受限制地处理本软件,包括但不限于使用、复制、修改...
文友安卓双卡手机短信应用
编辑:您可以在Windows上使用E Text Editor以及ANSYS-Textmate-Bundle。 安装: 要安装TextMate(在terminal.app中):mkdir -p〜/ Library / Application \ Support / TextMate / Bundles cd〜/ Library / ...
适用于Textmate语法原型 改变语法 包含用于生成语法的代码( )。 应该对此文件进行更改。 要更新文本伴侣语法,请运行: cd src/grammar npm i npm run build 测验 使用以下命令运行测试: cd src/tests npm i npm...
反馈您可以在上使用或#textmate IRC频道来查询问题,评论和错误报告。 您也可以 。 在提交错误报告之前,请阅读说明。屏幕截图建造引导程序要引导构建,您需要运行./configure (在源树的根目录中)。 您可以设置...
或者,换句话说:这是一个Homebrew,可让您使用命令行来搜索,安装和卸载TextMate捆绑软件。 三个重要警告 这个水龙头是实验性的 考虑此水龙头未经测试。 除非已经备份了重要数据,否则不要使用它。 欢迎提出问题...
使用 TextMate 添加多个插入点的简单方法,一次进行多项更改、交换代码段以及更多操作都变得微不足道。 选择您要搜索的内容、您要搜索的内容,TextMate 将以一种易于在匹配项之间跳转、提取匹配文本或预览所需替换...
借助TextMate轻松添加多个插入点的简便方法,可以一次进行多个更改,交换代码段以及许多其他操作。 选择您要搜索的内容,要搜索的内容,TextMate将以易于在匹配之间跳转,提取匹配文本或预览所需替换的方式显示结果...
CTags TextMate捆绑包 关于 该捆绑包旨在提供一种灵活的方法,以从TextMate中使用流行的系统。 在发现当前产品不能完全满足我的要求之后,我开始创建它,例如: 允许轻松定义项目的根目录。 支持其他标记文件(即...
###Textmate 1 cd ~/Library/Application\ Support/TextMate/Bundles git clone git://github.com/jameswomack/Stylus-TextMate-Bundle Stylus.tmbundle osascript -e '告诉应用程序“TextMate”重新加载包' ...
数据库同步的操作步骤
coffeescript-react.tmbundle 用于 CJSX 的 Textmate 2 Bundle( ) 基本语法高亮手动安装克隆这个存储库并使 TextMate 重新加载它的包。 对于 TextMate 2: mkdir -p ~/Library/Application\ Support/Avian/...
根据宝钢在线的做了一个小分析,内容包括、宝钢在线、宝时达现货资源系统、东方钢铁在线等
Symfony2 的 TextMate 包这个包在 TextMate 和 Sublime Text 中提供了 symfony2 的基本片段。变更日志[2013-06-02] 添加“跳转到文件”功能。安装如果不存在,则在您的家中创建一个捆绑目录并在那里 cd。 文本伴侣1...
DHH Ruby TextMate捆绑包安装 git clone git://github.com/dhh/textmate-rails-bundle ~/Library/Application\ Support/TextMate/Bundles/dhh-ruby.tmbundle
微信 v2.6.6.25,版本更新会继续更新的,一个小玩意儿,希望大家喜欢
TextMate