textmate2

Disable auto-pairing of characters in Textmate 2?

*爱你&永不变心* 提交于 2019-12-20 09:55:09
问题 TextMate 1 had a preference called "Auto-pair characters (quotes etc.)" that would allow you to enable or disable the auto pairing functionality. Is it possible to disable this feature in TextMate 2? 回答1: You can disable it for a given bundle as explained in this issue on GitHub. Basically you have to edit an option file of the bundle and add smartTypingPairs = ( ); near the end of the file. I don't know if this can be generalized using the .tm_properties files but you are welcome to try (and

Use alternate syntax highlighting in middle of TextMate2 comment

被刻印的时光 ゝ 提交于 2019-12-11 11:57:44
问题 By the very nature of a comment, this might not make sense. On the other hand, what I'm trying to achieve is not too different from an escape character. As a simple example, I want # comment :break: comment to show up more like like #comment "break" # comment would, but without the second # , everything is on the same line, and instead of quotes I have some other escape character. Although, like quotes (and unlike escape characters that I'm familiar with [e.g., \ ]), I intend to explicitly

Different syntax highlighting for sub-types of comments (?)

≯℡__Kan透↙ 提交于 2019-12-10 18:52:09
问题 I'm working in TextMate2, but this question may apply to other text editors as well. My script is in R. I intend to use rmarkdown::render() on the script to create a "report". The clever part of these reports is that they distinguish between the standard comment symbol in R ( # ), and the following: #' indicates markdown, like in roxygen , #+ indicates that a knitr code chunk will follow I suck at editing TextMate2 bundles. I managed to get hotkeys set up to comment out lines with #' and #+ ,

How can I remove SCM file status from the project drawer in Textmate 2

末鹿安然 提交于 2019-12-07 04:37:02
问题 Can I remove these status icons from the files in my project drawer? (i.e. the red x's and green +'s in the image below) I tried removing some SCM bundles from Textmate but that didn't do the trick... I'm using the latest version of Textmate 2 回答1: You can add scmStatus = false to your TextMate properties file ( ~/.tm_properties ), that should do the trick. Source: TextMate's Github issue #1051: "Disable SCM badges". 来源: https://stackoverflow.com/questions/17620541/how-can-i-remove-scm-file

Has anyone managed to use older Textmate bundles with Textmate2?

左心房为你撑大大i 提交于 2019-12-06 23:30:52
问题 I specifically want to be able to use Ackmate bundle, peepcode (the new 'Go to file' seems good enough) and some other custom bundles with TM2. I tried moving the existing bundles to a location ~/Library/Application Support/TextMate/Managed/Bundles/Managed which seem to contain all the new installed bundles, and a few other hack. But no luck yet. I did manage to get the older themes working with TM2 though, with an approach similar to the one above. EDIT: I found this article on the topic.But

How can I remove SCM file status from the project drawer in Textmate 2

☆樱花仙子☆ 提交于 2019-12-05 11:41:56
Can I remove these status icons from the files in my project drawer? (i.e. the red x's and green +'s in the image below) I tried removing some SCM bundles from Textmate but that didn't do the trick... I'm using the latest version of Textmate 2 You can add scmStatus = false to your TextMate properties file ( ~/.tm_properties ), that should do the trick. Source: TextMate's Github issue #1051: "Disable SCM badges" . 来源: https://stackoverflow.com/questions/17620541/how-can-i-remove-scm-file-status-from-the-project-drawer-in-textmate-2

Has anyone managed to use older Textmate bundles with Textmate2?

亡梦爱人 提交于 2019-12-05 02:01:53
I specifically want to be able to use Ackmate bundle, peepcode (the new 'Go to file' seems good enough) and some other custom bundles with TM2. I tried moving the existing bundles to a location ~/Library/Application Support/TextMate/Managed/Bundles/Managed which seem to contain all the new installed bundles, and a few other hack. But no luck yet. I did manage to get the older themes working with TM2 though, with an approach similar to the one above. EDIT: I found this article on the topic.But still not able to get some older bundles to work. http://blog.macromates.com/2011/locating-bundles/

IN TextMate I can't create partials with Rails tmbundle

一曲冷凌霜 提交于 2019-12-05 00:15:50
问题 /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:355:in `to_plist': An object in the argument tree could not be converted (ArgumentError) from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:355:in `request_string_core' from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:193:in `request_string' from /Users/pma/Library/Application Support/TextMate/Bundles/Ruby on Rails.tmbundle/Support/bin/create_partial_from_selection.rb:23:in `<main

IN TextMate I can't create partials with Rails tmbundle

青春壹個敷衍的年華 提交于 2019-12-03 15:50:11
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:355:in `to_plist': An object in the argument tree could not be converted (ArgumentError) from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:355:in `request_string_core' from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:193:in `request_string' from /Users/pma/Library/Application Support/TextMate/Bundles/Ruby on Rails.tmbundle/Support/bin/create_partial_from_selection.rb:23:in `<main>' I installed the RoR bundle from: https://github.com/drnic/ruby-on-rails-tmbundle.git Using rvm. Are

Configure Textmate 2 for rbenv

拟墨画扇 提交于 2019-11-27 22:34:02
问题 What is the best way to setup Textmate 2 to use rbenv? I read a Textmate mailing list thread about setting up rbenv but haven't found the right solution yet. 回答1: Update your ~/.tm_properties to include: TM_RUBY = "$HOME/.rbenv/shims/ruby" PATH = "$HOME/.rbenv/bin:$PATH" Thanks to uberfork for this helpful article: Integrate rbenv with Textmate. 回答2: The answers supplied here didn't work for me. Here's what did: Preferences -> Variables add this to the front of PATH : $HOME/.rbenv/bin:$HOME/