textmate

TextMate's Jump to Function in VIM?

心不动则不痛 提交于 2019-12-04 10:55:16
Recently I've been trying my hand at using vim instead of TextMate and one of the features that I've missed most in VIM is TextMate's jump to method function (CMD + Shift + T for those who don't know). From looking around I havn't seen any particular way to emulate this functionality and was wondering if anyone here has had experience with this sort of functionality in VIM. Thanks in advance for any answers Patrick Chris J You're looking for vim's 'tags' functionality ... I answered a similar question about tags here: How to implement own tag jump in VIM with CTRL-]? This functionality has

how to move the textmate file explorer to the right side?

不想你离开。 提交于 2019-12-04 10:19:05
问题 how to move the textmate file explorer to the right side? 回答1: You can move textmate to the left edge of the screen and close and open the panel. ie. ctrl, alt, cmd + d. 回答2: Update: For later versions of textmate, see this answer For Textmate 2 (released long after this question was answered) the accepted answer doesn't appear to work anymore. This is what did it for me: To change it to the right on OSX, open up your terminal and run the command: defaults write com.macromates.TextMate

Thinking of moving from TextMate to vim for Rails dev. What do I need?

女生的网名这么多〃 提交于 2019-12-04 07:27:19
问题 I do Ruby on Rails development pretty much exclusively. I currently develop in OS X using TextMate. I have a virtual machine running to emulate as closely as possible the environment my app will be deployed into, and I mount the code on a Samba share into OS X from the VM guest. From there I open with TextMate and code away. I'm beginning to think that with the proper plugins and time spent learning, I could be much more productive in vim directly on the VM. Right now my TextMate is basically

Replacing with backreference in TextMate issue

这一生的挚爱 提交于 2019-12-04 07:14:43
问题 I am using TextMate to replace expression [my_expression] consisting in characters between open and closed brackets by {my_expression} ; so I tried to replace \[[^]]*\] by {$1} The regex matches the correct expression, but the replacement gives {$1} , so that the variable is not recognised. Can someone has an idea ? 回答1: You forgot to escape a character, [^]] should be [^\]] . You also need a capture group. $1 is back-referencing the 1st Capture Group , and you had no capture groups, so use

Using RVM with different gemsets in TextMate

时间秒杀一切 提交于 2019-12-04 07:09:46
I have set up RVM and made individual gemsets for my projects as per the RVM best practices . Now running a test file in TextMate dosen't work and I have read here what to do. The problem is that it won't work because the guide expects me to have just one gemset (they call it "Rails3"). I normally have 2-3 projects open at a time (using different gemsets) so I can't effectively use this approach. Have any of you solved that problem? I've found the RVM wrappers method to be very buggy, and as you've discovered it doesn't work at all with gemsets unless you do a lot of tedious setup. I've had

How may I apply double quotes around every value of csv file using TextMate?

我的未来我决定 提交于 2019-12-04 05:53:17
I have a csv file with the following format: example csv: bear,brown,mean,large ant,black,strong,tiny cat,yellow,moody,small How may I apply double quotes around every value? How may I accomplish this using regex? I am using TextMate (text editor) to do the find/replace w/ regular expression. Here are the important portions of the regex. Hopefully I got it right when I converted to textmate format: Search - ([^,]*)(,|$) Replace - "$1"$2 Search explanation: Find every character that is not a comma, up until we reach a comma, or the end of the line. Capture the match for string to be quoted in

Rspec bundle is broken in TextMate and rvm

[亡魂溺海] 提交于 2019-12-04 04:27:23
I've had a difficult time since I started using rvm. I've done all the rvm/textmate set up and have the latest bundles but I still can't run Rspec test from textmate . I have the latest bundle from github.com/rspec/rspec-tmbundle.git and it's installed in ~/Library/Application\ Support/TextMate/Bundles/ RSpec.tmbundle RVM default is using the system ruby 1.8.6 Rspec gem versions gem list --local | grep spec blue_light_special (0.2.0) rspec (2.2.0) rspec-core (2.2.1, 2.0.1) rspec-expectations (2.2.0, 2.0.1) rspec-mocks (2.2.0, 2.0.1) rspec-rails (2.0.1, 1.3.2) TextMate TM_RUBY=/Users/jspooner/

Textmate 2 Alpha showing references for deleted files

好久不见. 提交于 2019-12-04 03:45:27
问题 I know it's an Alpha product, but I think this is a setting rather than a bug. When I delete files from with textmate file manager, the file is deleted but remains in the project with a red 'X' through it. See the image below. I have checked on the file system and it is not there, and have also git commited and pushed the changes to my github repo. Any ideas? EDIT Cross-posted to the Textmate mailing list. No answers so far. http://textmate.1073791.n5.nabble.com/Textmate-2-Alpha-and-deleting

Show 80-character margin line in TextMate

一曲冷凌霜 提交于 2019-12-03 22:12:21
Is it possible to display a right-margin line at 80 characters in TextMate? (i.e. the right-margin line in eclipse, gedit, etc.) If so, how can I configure that? Figured it out: In the View menu, uncheck 'Soft Wrap'. Then, go to View -> Wrap Column -> Other... and select the column at 80 chars in your editor window. This will show the line at 80 characters, but won't force wrapping at 80 chars. (Turning 'Soft Wrap' back on will force wrapping.) What about Visual Ornaments/Show right margin indicator in Preferences? For TextMate 2 it looks like this has moved to View -> Show Wrap Column. So the

How do I get Textmate to use MacRuby?

廉价感情. 提交于 2019-12-03 17:26:21
So, how do I get Textmate to use MacRuby, a branch of 1.9.2, instead of the default Ruby in OSX, 1.8.7? Simpler answers: Install MacRuby Go to TextMate->Preferences->Advanced->Shell Variables and add a variable named TM_RUBY set to /usr/local/bin/macruby . Alternatively, edit the PATH variable to include /usr/local/bin/ and just set TM_RUBY to macruby . If you have installed MacRuby through RVM , then instead: Generate stable wrapper: rvm wrapper macruby-0.8 macruby # creates ~/.rvm/bin/macruby Set TM_RUBY to /Users/yourusername/.rvm/bin/macruby (must be the absolute path). Alternatively, edit