textmate

Set TextMate as the default text editor on Mac OS X

三世轮回 提交于 2019-11-30 06:15:37
问题 How can I set TextMate as default text editor on Mac OS X? I've tried it with ln -s /Applications/TextMate.app/Contents/Resources/mate ~/bin/mate export EDITOR='mate -w' but that doesn't work. 回答1: Just right (or control) click a file of the type you want to change and: "Get Info" -> "Open with:" -> (Select TextMate) -> "Change All" 回答2: The method through Finder is not practical. If you're a developer, your files likely include .profile, .gitconfig, .bashrc, .bash_profile, .htdocs, etc. The

Wrapping selecting text in enclosing characters in Emacs

爱⌒轻易说出口 提交于 2019-11-30 00:04:39
In Textmate I can wrap enclosing characters ('(', '[', '"', etc.) around text by selecting it and hitting the opening character. For example, if I select word and hit ( , it will become (word) . What does Emacs call this feature and how do I enable it? For parens you can do M-( . For brackets/braces/quotes you could do: (global-set-key (kbd "M-[") 'insert-pair) (global-set-key (kbd "M-{") 'insert-pair) (global-set-key (kbd "M-\"") 'insert-pair) Note that if you don't have a region highlighted, it will just insert the pair of whatevers and put the cursor in between them. Also handy for deleting

Textmate tab and de-tab selected block

余生颓废 提交于 2019-11-30 00:02:58
Recently switched to Textmate on Mac for coding. On PC when ever I want to tab in or out a block of code I just highlight and press tab or shift+tab to move it in our out. It's very useful when you are adding an extra loop or conditional statement to a block of code to keep everything tidy and neatly indented. On Textmate however when I try this it just replaces my selected text with a tab. So is there a way to do tab and de-tab lines of code in textmate? Indent: Alt+Tab Un-Indent: Shift+Alt+Tab the hotkey is command-left bracket to move left and command-right bracket to move right (the

Compile CoffeeScript on Save?

人盡茶涼 提交于 2019-11-29 22:07:42
Is there anyway to easily compile CoffeeScript on save? I'm using TextMate or Sublime Text 2. Coffeescript has a 'watch' feature. You could set up, as a semi-permanent process: coffee –wc -o media/js/ src/coffee/*.coffee And for every file with an extension ".coffee", the corresponding compiled ".js" file will be put into the target directory every time you save. That said, I use a makefile and a fabfile, because my HTML is HAML, my CSS is LessCSS, and my development directory is not my test path, so I needed something smart enough to "build and deploy." If your machine supports inotify, you

Emacs recursive project search

自闭症网瘾萝莉.ら 提交于 2019-11-29 20:43:54
I am switching to Emacs from TextMate. One feature of TextMate that I would really like to have in Emacs is the "Find in Project" search box that uses fuzzy matching. Emacs sort of has this with ido , but ido does not search recursively through child directories. It searches only within one directory. Is there a way to give ido a root directory and to search everything under it? Update: The questions below pertain to find-file-in-project.el from Michał Marczyk's answer. If anything in this message sounds obvious it's because I have used Emacs for less than one week. :-) As I understand it,

TextMate, rvm and TM_RUBY

回眸只為那壹抹淺笑 提交于 2019-11-29 15:11:55
问题 In the TextMate RVM instructions the text it says to set TM_RUBY to /Users/wayne/.rvm/bin/textmate_ruby and in the image it shows it set to rvm-auto-ruby . I decided to set it to rvm-auto-ruby thinking that it would use RVM's default Ruby version. When running Command R in the RSpec.bundle having TM_RUBY set to rvm-auto-ruby will result in a load error. When you set it to textmate_ruby it works. The only problem here is that TextMate doesn't always use the default version of Ruby since it's

How can I send selected text (or a line) in TextMate to R running on Terminal

旧巷老猫 提交于 2019-11-29 09:40:10
问题 I just started using R on Terminal because its tab function. But I have no idea how to send the selected text in TextMate to the Terminal. Could expertise show me how to write the Command in TextMate? Thanks! 回答1: Here is the exact TextMate command that I currently use. Hope it helps! rawText="$(cat | sed 's/ / /g;')" osascript -e 'on run(theCode)' \ -e ' tell application "Terminal"' \ -e ' do script theCode in window 1' \ -e ' end tell' \ -e 'end run' -- "$rawText" open "txmt://open?line=$((

Setting Shortcut Keys in Textmate

萝らか妹 提交于 2019-11-28 23:48:36
I am switching to textmate and there are a few things I want to change. I have tried Googling for the answer, but haven't found a simple explanation for how to rebind shortcuts globally. First, tab switching doesn't work with Cmd+Shift+{ and Cmd+Shift+} This works in nearly every other application (FF, Terminal, etc.) How do bind those keys to switch tabs? Second, I would like Ctrl+j/k/l/; to move the cursor, it it possible to rebind that command to the arrow keys? Thanks in advance. Yes. For the arrow keys, you can record a macro (Bundles > Macros > Start Recording, [press an arrow], Stop

TextMate for Mac(Mac文本编辑器)

我只是一个虾纸丫 提交于 2019-11-28 21:45:10
TextMate for Mac是专为Mac用户设计,功能强大的Mac文本编辑器。TextMate Mac破解版非常适合程序员使用,为您准备了各种功能,能够帮助用户提高开发速度。TextMate for Mac操作简单,无论是新手还是专业人员,都能轻松上手。TextMate 破解版是代码和标记的制作最方便的一款软件! 点击下载TextMate for Mac(Mac文本编辑器) TextMate for Mac软件介绍 TextMate for Mac将Apple的操作系统方法带入了文本编辑器的世界。通过桥接UNIX基础和GUI,TextMate可以为两位专家提供最佳选择,让专家脚本和新手用户都受益。 TextMate Mac版可用于编辑纯文本和其他类型的数据,但也允许您处理和突出显示大量脚本语言的语法,例如Apache,Apple Script,C,C ++,CSS,Diff,Git,HTML, javascript,JSON,Lua,Objective-C,PHP,Python,Ruby等。 TextMate 破解版使用强大的搜索工具(“grep”命令)和强大的宏或片段,以帮助您自动化重复性任务。最好的部分是你可以录制自己的宏。 TextMate 破解版功能特色 多重插入 使用TextMate添加多个插入点的简单方法,可以一次进行多项更改,交换代码片段以及更多内容。 文件搜索

Compile CoffeeScript on Save?

拈花ヽ惹草 提交于 2019-11-28 18:26:22
问题 Is there anyway to easily compile CoffeeScript on save? I'm using TextMate or Sublime Text 2. 回答1: Coffeescript has a 'watch' feature. You could set up, as a semi-permanent process: coffee –wc -o media/js/ src/coffee/*.coffee And for every file with an extension ".coffee", the corresponding compiled ".js" file will be put into the target directory every time you save. That said, I use a makefile and a fabfile, because my HTML is HAML, my CSS is LessCSS, and my development directory is not my