textmate

Bundler Gemfile syntax highlight in Text Mate

Hello I'm learning Rails3 so I start to use gem Bundler (http://github.com/carlhuda/bundler) Does anybody know, how to setup TextMate to highlight Gemfile syntax? Thanks! ...

open flash player and test swf from textmate

i usually write my code with textmate. a custom command for testing the proj directly in flash is: echo 'document.testMovie();' > /tmp/fc.jsfl open -a /Applications/Adobe\ Flash\ CS5/Adobe\ Flash\ CS5.app /tmp/fc.jsfl what about the flash standalone player? echo 'document.testMovie();' > /tmp/fc.jsfl open -a /Applications/Adobe\ Fla...

Configuring pep8 in Textmate

Textmate has a Python PEP8 bundle that will run pep8 validation on your file. How can I set it to do the equivalent of pep8 --ignore=E501 my_file.py? ...

Modifying captured tokens from a regular expression?

Using a general regular expression replacement (for me, I'm doing this through TextMate) is it possible to modify a captured token? I've essentially got a handful of enums that I want to modify... CONSTANT get { return 1; } CONSTANT get { return 2; } CONSTANT get { return 3; } What I'd like to do is capture the "return x"... return ...

Textmate-like smart quotes/parentheses as a script/service

so Textmate has this great feature of auto-closing ( { [ " ' signs and putting the caret between them, e.g. type [ --> get [] and also on selected text, if you press any of these keys, it will wrap the text in a pair of them. e.g. *some selected text* , hit ( --> (*some selected text*) how would i go about writing a script (Applescr...

RVM + Ruby 1.9.1 + ruby-debug = error?

I am trying to get a decent navigation between my methods in TextMate. I would love to have a list of them in a drawer, but I guess there is no such solution yet, right? Therefore I am trying to set up RubyAMP to work with Ruby 1.9.1-p378 installed via RVM, but have some troubles. RubyAMP needs ruby-debug, and here is what I get if I try...

Can I have auto pairing tag in Textmate?

for example, I type <html> , this there any short cuts to insert </html> for me? thank you. ...

How can you reformat text in TextMate

Is there a command in TextMate to re-indent or format text in a file? I use this all the time in IDE's after pasting in a block of code, removing a block, etc for re-indenting a file. Bonus points if there is a way to pretty indent, turning this: has_many :users, :class_name => 'Users', :dependent => :destroy has_many :comments, :clas...

Textmate snippet to add file name and path in comment?

I'm using an existing snippet in Textmate to reduce the repetition of creating controllers and models. The snippet works great, but I'd love to add a comment to the end of each file. For example: /* End of file filename.php */ /* Location: ./system/application/controllers/filename.php */ The first line is easy: /* End of file ${TM_...

How do I get Emacs bindings in Textmate?

In Textmate: Power Editing for the Mac, the author says that Textmate has Emacs key bindings. When I try to use them in Textmate some work and some don't work. For example C-n moves the cursor down one line, but C-p runs some command that gives me weird output (it doesn't move up one line). Is there a way in Textmate to lookup what a ...

How to dot method in Textmate?

Previous, I develop Java in Eclipse, I can do something like... "SomeObject.", when I press ".", it have a small list popup, and I can choose the methods and variables, can I do the similar thing on Textmate? Thank you. ...

How to configure Textmate to run JRuby?

Trying to work on JRuby with TextMate. ...

Recommended TextMate Bundles for Ruby on Rails Development

Can you guys please recommend few textmate bundles that would be helpful while developing ruby on rails applications ...

Ruby Program Error: NoMethodError

I typed up a simple Ruby code for a tutorial question, as shown below. #Grandma is deaf! puts "Hey Sonny! It's your lovely Grandmother! How are you?" response = gets.chomp while response != "BYE" if response != response.upcase puts "Huh?! I CAN'T HEAR YOU!" else puts "NO! NOT SINCE " + (1930 + rand(21)).to_s +...

TextMate Django Tab trigger failure

I just installed the Python Django and Django Templates bundles in Textmate. However, the tag triggers dont seem to work. I opened up a .py file and wrote manytomany and pressed tab and it didnt autocomplete. When i click on it manually from the menu bar it works fine. Am I forgetting something? Do bundles need to be activated somehow? ...

In textmate, how do I jump to a file? how to open the file explorer?

On my macbook, when I am exploring my filesystem and then open a file in textmate, it just opens the code window. How can I open the textmate file explorer? How can I jump to a file that is in a "project"? i.e. that is a file within the root folder or sub folders? ...

textmate move cursor without using the arrow keys

I'm in an ergonomic sort of mood, and realizing that I waste many precious milliseconds by lifting my hands up from the letter keys over to the arrow keys in order to move my cursor. Is there a handy alterate way to move the cursor I can access in Textmate? Generally, I'm looking for ways to keep my head up more while programming. I'd l...

textmate bundles not recognizing differences

So i'm trying to make a set of grammars recognizing different file extensions properly. All my files (js/css/html) end with template. This is similiar to how ruby does it with js.erb, css.erb, etc. So I modified the file type attribute to js.template css.template and template itself for html. But it doesn't seem to work. They just defau...

How to declare a specific snippet in textmate {MAC}

Hello, i don't know if this is the right place, but i would know how to declare a new macro/snippet in textmate to do this : I select the text Sample Text I use whatever combinaison of key and it transforms it into : <?php echo __('Sample Text') ?> Thank you ;) ...

latex macros in textmate?

I'm new to textmate and I want to use it to write latex. I have many macros when i was using my previous latex-editor, I'm wondering how i can put it into textmate. If I saved something as a .sty file, where shall I put it? Thanks ...