textmate

CoffeeScript TextMate Run Command

邮差的信 提交于 2019-12-10 11:29:42
问题 Can anyone assist with the TextMate Run command? I am not sure how to set the variable and its value in the TextMate in order to Run command + R and get the result of CoffeScript file. Many thanks. 回答1: After you install the tmbundle, as described in the first answer, in Preference Panel, select the Advanced tab and under TM_PATH add the path to coffee. To find out the path, type: which coffee at the command line. If you installed using Homebrew, you'll get something like this for your path:

How can I use specific protocol (in my case : txmt) with Org mode?

放肆的年华 提交于 2019-12-10 10:57:19
问题 I have TextMate running on Mac, and it has txmt protocol, that I can use as on web browser such as txmt://open/?url=file:///Users/smcho/smcho/bin/rst2html . I can use TextMate for editing rst2html. However, when I tried to use this protocol with Org-mode as [txmt://open/?url=file:///Users/smcho/smcho/bin/rst2html] , instead of opening TextMate, the rst2html binary is running. I tried (setq org-link-abbrev-alist '( ("edit" . "txmt://open/?url=file://%s") )) to use [edit:/Users/smcho/smcho/bin

Completely uninstall/restore Textmate 2

自作多情 提交于 2019-12-10 04:34:01
问题 I accidentaly misconfigured the bundles settings of Textmate 2. Now I want to restore the default setting. I tried to remove the following directories: rm -r /Library/Application\ Support/Textmate rm /Library/Preferences/com.macromedia.* I also use cleanmymac 2 to properly uninstall it. But STILL everytime I reinstall textmate I always go back with my previous settings. Where the hell is it saving them? WHERE ARE THEY? Please help I'm desperate. I probably will have to change text editor and

Formatting the date in unix to include suffix on day (st, nd, rd and th)

会有一股神秘感。 提交于 2019-12-09 10:38:35
问题 How can I add the suffix on the day number of a unix date? I'll explain. I have a TextMate bundle snippit that writes out today's date. It uses unix date and formatting. Here is the code: `date +%A` `date +%d` `date +%B` `date +%Y` It outputs: Monday 22 March 2010 I would like to add the suffix to the day ( st , nd , rd and th ) like so: Monday 22nd March 2010 As far as I can see, there is no native function in the unix date formatting, like there is in PHP (j). How would I achieve this in

.vim syntax highlighting to textmate or sublime text 2 [closed]

不想你离开。 提交于 2019-12-09 09:44:53
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I have a .vim script for highlighting a specific program's syntax (Mplus SEM software). I am wondering if there is an easy way to convert this to textmate or sublime text 2 or do I need to write my own. Best and thanks in advance. Vim script Note: I did not write this script, but

How do I highlight the current TextMate document in the project drawer?

有些话、适合烂在心里 提交于 2019-12-09 05:55:09
问题 I keep forgetting where to find this in the menus. I often open a document using (for example) Find in Project… and then want to know where it is in the project drawer (especially when it's buried deep down in the folder hierarchy. How do I highlight the current document in the project drawer? 回答1: TexMate 1 It's "hiding" in the File menu as "Reveal in Project" (with the keyboard shortcut control ⌘ R ). TextMate 2 It's "hiding" in the Go menu as "Current Document" (with the keyboard shortcut

Is it possible to hook a git commit to the save on Textmate?

若如初见. 提交于 2019-12-09 01:53:54
问题 The one feature that has kept me an Eclipse user is that each time you hit save, a copy of it goes into the Eclipse local history. Then you can do a diff on local history. Still, I'd like to use Textmate since I heard such great things about it. I know there's a feature request for a future version...but I'm wondering if someone has found a plugin, or some other way to get this functionality shoehorned into Textmate now? I know it's a longshot but never hurts to ask. Thank you. UPDATE!

How to open an app in terminal and passing the current working directory?

旧街凉风 提交于 2019-12-08 14:44:27
问题 I often want to open the entire directory I'm working in by using the mate command, but how do I pass in the working directory itself? For example, if I'm working in a rails app and I want to open the app folder into the TextMate tree, I would do mate app , but how could I pass in the working directory itself (i.e. open the entire rails app in the tree)? 回答1: mate . will open the currently directory. I use the . directory a lot, for example open finder for the current directory open . . 回答2:

How do I add another tag to be parsed as embedded JS in a tmLanguage file?

风格不统一 提交于 2019-12-08 06:09:07
问题 Back Story (not really important but it frames the question) I have a TagLib in a JSP that takes its contents and wraps its containing code in a script block (it does much more but for the sake of the question it is not important). For example: <aui:script use="some-module"> //my code </aui:script> will be served as <script type="text/javascript> AUI().use('sub-module', function(A) { // my code } </script> The Question I would like all the code in between <aui:script use="things"></aui:script

How to change file associations in Mac OS X

一曲冷凌霜 提交于 2019-12-08 06:01:39
问题 So I used Xcode and all. Now, whenever I open my text files it opens automatically with Xcode. How do I undo this? 回答1: RightClick on the file name -> Open With -> Choose the editor you wish to open with this kind of file. And that sets to be default editor for opening files with that particular file extension ( i.e., .txt ) when opened in future. Edit: The above procedure is not a permanent one. Try this - Right click on the file name. Choose Get Info Choose one from the Open With drop down.