textmate

Textmate default preferences

烂漫一生 提交于 2019-12-06 04:23:02
问题 In trying to get Textmate 2.0-alpha.9495 to show Hidden files I managed to screw it up so that the project view only shows folders, no files. How can I reset it to the default settings? or What should the default setting for "Exclude Files Matching" be? Thanks 回答1: Reset to default settings According to the Github project wiki (https://github.com/textmate/textmate/wiki/Reverting-To-Defaults), the following files/folders have to be removed: ~/Library/Application Support/Avian ~/Library

Collapse All in TextMate

不想你离开。 提交于 2019-12-06 02:08:29
问题 Is there a way to collapse all the functions in a given php file in TextMate? For example I have two methods: function index() { //Sample code } function beforeFilter() { //Sample Code } I would like to be able to issue a command where all the methods will collapse to: function index() { ... function beforeFilter() { ... Thanks! 回答1: Via the menu: View > Toggle foldings at Level > All levels or shortcut: ALT + ⌘ + 0 来源: https://stackoverflow.com/questions/6376696/collapse-all-in-textmate

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

左心房为你撑大大i 提交于 2019-12-06 01:34:14
问题 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. 回答1: 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

Ruby IDEs: any worth looking at?

假装没事ソ 提交于 2019-12-06 01:20:10
I currently use TextMate for all my Rails development, and I like it very much, but I wonder if I'm missing anything by not using an IDE. Has anyone switched from using TextMate or another powerful text editor to a Ruby IDE? Am I missing anything? JetBrains, the people who created the legendary IDEA IDE for Java, have RubyMine in beta. DHH has mentioned it, so it must be good! TextMate is king for Development on Mac, it's not too bloated and has so many good bundles made by the developers that use those particular languages. Can't be beat in my opinion. I think IntelliJ/RubyMine is pretty good

Auto-completion in Textmate for Ruby?

北战南征 提交于 2019-12-05 17:38:10
I'm really used to auto-completion coming from Netbeans. In Netbeans, when I type a 'string' and then hit a 'dot' it will print out a list of methods for the String class. TextMate doesn't seem to have that function. Is it something you could add? Would save A LOT of time instead of using the ri/irb/online doc all the time. You have discovered the fundamental difference between a text editor and an IDE: a text editor edits text (duh!), i.e. an unstructured stream of characters. It doesn't know anything about objects, messages, methods, mixins, modules, classes, namespaces, types, strings,

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

Regex to find A and not B on a line

泄露秘密 提交于 2019-12-05 09:27:01
I'm looking for a regex to search my python program to find all lines where foo , but not bar , is passed into a method as a keyword argument. I'm playing around with lookahead and lookbehind assertions, but not having much luck. Any help? Thanks If you have a string foo that you want to find and another string bar that must not be present, you can use this: ^(?!.*bar).*foo Creating a regular expression that exactly meets all your requirements is very difficult as Python code is not a regular language, but hopefully you should be able to use this as a starting point to get something good

Show 80-character margin line in TextMate

半腔热情 提交于 2019-12-05 08:59:52
问题 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? 回答1: 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.) 回答2: What about Visual Ornaments/Show right

Emacs session / projects / window management

别说谁变了你拦得住时间么 提交于 2019-12-05 08:24:02
I am working with Ruby on Rails projects most of the time so I need a way to save projects and the state of the buffers/windows I am working on, mostly because I often find myself switching to a different project for a few minutes and then going back to the project I was working on. Desktop.el seems to be very close except for the window configuration saving. For those familiar with TextMate, I'm looking for something like the textmate project files that you can open and they open a different instance of the editor that only opens the files in that project. Thanks, Cezar I tried to put myself

How to change file type in textmate

落花浮王杯 提交于 2019-12-05 04:43:52
It will give you a selection when you open a new file in Textmate. It asks you what the file type is and let you select a grammar for the new file. So how to change the file grammar after I selecting the grammar once? There's a button on the bottom bar. You press it, and there they are, all possible syntax modes with their shortcuts: 来源: https://stackoverflow.com/questions/13099383/how-to-change-file-type-in-textmate