textmate

Vim: Find in Buffers capabilities that resembles those in TextMate

允我心安 提交于 2020-03-03 05:32:08
问题 In TextMate you can drag one or more files onto the icon and use "Find in Project" to search those files, can this be replicated for the current open buffers in Vim? 回答1: grep lgrep vimgrep lvimgrep These commands might help you. Check here, If this is what you are looking for. http://vim.wikia.com/wiki/Find_in_files_within_Vim 回答2: I like LustyExplorer which has a very fast and easy to use "search in buffers" function. Ack.vim works in a sort-of-similar way but is file-system based. 回答3: Out

Remove Textmate Git Bundle

[亡魂溺海] 提交于 2020-01-23 22:05:57
问题 I don't want to use the git bundle! I removed it but I still see files under "Uncommitted Changes" and "Untracked Items" I don't know how to clean those. 回答1: The page on "RevertToDefaultBundles" does mention: If you have ever done a svn checkout of bundles it would most likely have been done to: /Library/Application Support/TextMate/Bundles Third party bundles installed via double-clicking or dragging to TextMate would be installed in: ~/Library/Application Support/TextMate/Pristine Copy

Remove Textmate Git Bundle

落花浮王杯 提交于 2020-01-23 22:03:26
问题 I don't want to use the git bundle! I removed it but I still see files under "Uncommitted Changes" and "Untracked Items" I don't know how to clean those. 回答1: The page on "RevertToDefaultBundles" does mention: If you have ever done a svn checkout of bundles it would most likely have been done to: /Library/Application Support/TextMate/Bundles Third party bundles installed via double-clicking or dragging to TextMate would be installed in: ~/Library/Application Support/TextMate/Pristine Copy

Textmate/Regex: Strip whitespace from beginning/end of file

青春壹個敷衍的年華 提交于 2020-01-22 08:16:26
问题 I'm trying to add a macro/command to Textmate for some file cleanup and the last tidbit I haven't figured out is simply to remove blank lines from the beginning and end of a file -- does anyone know how to do this? I know some Textmate or regex trick must exist, just not sure what... 回答1: For the tasks you mentioned, you can use built-in commands from the "Text" Bundle. Even if you just want to script your own, i would suggest using these as templates for your own efforts. To access these:

Textmate/Regex: Strip whitespace from beginning/end of file

可紊 提交于 2020-01-22 08:16:11
问题 I'm trying to add a macro/command to Textmate for some file cleanup and the last tidbit I haven't figured out is simply to remove blank lines from the beginning and end of a file -- does anyone know how to do this? I know some Textmate or regex trick must exist, just not sure what... 回答1: For the tasks you mentioned, you can use built-in commands from the "Text" Bundle. Even if you just want to script your own, i would suggest using these as templates for your own efforts. To access these:

Textmate Tab browsing

懵懂的女人 提交于 2020-01-17 01:15:12
问题 Something that I have always wanted in TextMate was a different way to open files. For instance, when I open a file in TextMate, I would love the active tab to default in position 1. Then when I open another tab, that tab should take over position 1, and the rest will shuffle down the list. Are there any plugins for TextMate that provide this type of functionality? 回答1: I don't believe such a plugin exists. There are two plugins providing supercharged alternatives to the project drawer:

Getting Textmate to recognize Ruby version upgrade

若如初见. 提交于 2020-01-13 14:11:17
问题 I used the instructions at http://bparanj.blogspot.com/2010/06/installing-ruby-191-on-snow-leopard.html to install Ruby version 1.92 on my Mac running Snow Leopard. The only deviation is in step 3, which calls for .bash_profile to be updated. I have .profile, but not .bash_profile, in my home directory, so I added the export command to the last line of .profile. The installation completed successfully (with the same two warning messages as mentioned, which I too disregarded), as Ruby -v in a

Getting Textmate to recognize Ruby version upgrade

不羁的心 提交于 2020-01-13 14:02:12
问题 I used the instructions at http://bparanj.blogspot.com/2010/06/installing-ruby-191-on-snow-leopard.html to install Ruby version 1.92 on my Mac running Snow Leopard. The only deviation is in step 3, which calls for .bash_profile to be updated. I have .profile, but not .bash_profile, in my home directory, so I added the export command to the last line of .profile. The installation completed successfully (with the same two warning messages as mentioned, which I too disregarded), as Ruby -v in a

Textmate Regex: Find word based on a pattern that only exists in declaration

谁说我不能喝 提交于 2020-01-07 00:57:50
问题 Is it possible to have a regex expression match with a pattern that finds a word and then also matches with any other occurrences of that word? To be more explicit, lets say I have some language that declares variables with a # like #varName I also have the regex expression (?<=#)\w* to locate such words. However, in another part of my code I use varName without the # and thus cannot identify it using the same method. So my question is, can I write one regex expression to locate varName in

Is there a method to update all of my textmate bundles at once from the git repository?

狂风中的少年 提交于 2020-01-06 03:27:05
问题 I am trying to update all of my Textmate bundles to the most current version. Is there a way to do this without doing each bundle individually? If not how do I update an individual bundle? I don't know how to use svn so I would prefer to use the git repository. Thanks for helping a noob! :) 回答1: You can install the "Get Bundles" (with an "s" not "Get Bundle"--that's a different Bundle) Bundle To install: cd ~/Library/Application\ Support/TextMate/Bundles svn co http://svn.textmate.org/trunk