Requests

Howtos.Requests History

Hide minor edits - Show changes to markup

March 09, 2011, at 18:20 UTC by Florian Jug - Sharing bundles AND formatting instructions for bundle specific scopes.
Added lines 11-19:

Q: I wrote my own bundle. It comes along with some new scopes. I would like to format some of these scopes and so I've added these formatting rules in 'Preferences - Fonts & Colors'. That all works fine, BUT: If I want to share my bundle with others I can easily do that by simply dragging and dropping the entire bundle into the Finder. The new scope formatting rules I've created in the preferences are of course not exported and I do not find an easy way to share them as well. Of course nobody wants to add 5 such rules after installing a bundle.

Question summary: how can I share Theme extensions or include some formatting rules in an exported bundle? (I've searched for a while but did not find anything useful besides creating my own theme... but... not everybody who wants to use my bundle would also like to use my entire theme, right? -- Florian Jug

June 12, 2009, at 18:22 UTC by Rob D - Textmate/Safari InputManager integration?
Changed lines 218-220 from:

Q: How do I set TextMate's path to SVN?

to:

Q: How do I set TextMate's path to SVN?


Q: How do I integrate TextMate with Safari 4 as an Input Manager as we could with older versions of Safari?

May 23, 2009, at 13:42 UTC by Johnny Dangerously -
Changed lines 216-218 from:
--Zeke
to:
--Zeke

Q: How do I set TextMate's path to SVN?

September 20, 2008, at 20:02 UTC by Phil - Answered question for setting TM_PHP
Changed lines 21-27 from:
to:

A: It's fairly easy, but you might need to do some digging. Because I have MAMP installed on my machine, I know that php5 is located at /Applications/MAMP/bin/php5/bin/php. If your php5 did not come with MAMP, then you're going to need to figure out where it's installed.

Once you have the path, open up Textmate and go to Preferences > Advanced and click on the Shell Variables tab. If you don't see TM_PHP in the list, click on the + and then replace MY_VARIABLE with TM_PHP. Now paste the path to php5 where it says "some value" and close Preferences.

To be sure everything worked, open up a PHP file, Run it, and you should see something like "PhpMate r**** running PHP 5.*.* (cli)".

--Phil

June 08, 2008, at 06:23 UTC by Allan Odgaard - Suggestion: Ask usage questions via the mailing list or IRC channel
Changed lines 4-5 from:
to:

Seems this has developed into a lot of questions that are much better to ask at the mailing list or IRC channel (at least if they are asked in anticipation of answers :) ). A wiki is more suited for building a knowledge base than using it as a venue for questions. I think the original intent of this page was to request HowTo articles.


June 05, 2008, at 04:59 UTC by Tim Britt -
Changed line 13 from:

Q: I would really like to have a specific Postgres bundle. Specifically it is really just the language that is not really correct in the generic SQL bundle. Is there one available from somewhere? Thanks. --tim britt

to:

Q: I would really like to have a specific Postgres bundle. Specifically it is just the language that is not really complete for postgres in the generic SQL bundle. Is there one available from somewhere? Thanks. --tim britt

June 05, 2008, at 04:58 UTC by Tim Britt - Is there a specific Postgres bundle?
Added lines 13-17:

Q: I would really like to have a specific Postgres bundle. Specifically it is really just the language that is not really correct in the generic SQL bundle. Is there one available from somewhere? Thanks. --tim britt


Changed line 209 from:
--Zeke
to:
--Zeke
February 24, 2008, at 21:55 UTC by Zeke -
Added lines 201-204:

Q: I want to configure Actionscript editing mode so that when I hit CMD/ the selected lines (or single line) are preceded by the single-line style comment (//), rather than wrapped in the multiline style comment (/* ..... */). I tried poking around a bit in the bundle editor but worry about breaking things..

--Zeke
January 28, 2008, at 20:15 UTC by steven rowat -
Added lines 13-17:

Q: How can I instruct TextMate to use PHP 5, which is active on my machine, instead of PHP 4? I've found references to this in the PHP bundle help, but the things it suggested seem to be over my head. E.G.: "you can set the TM_PHP environment variable through TextMate → Preferences → Advanced → Shell Variables." I only know html, css, and a little php at this point. I'm willing to learn but I've reached dead ends in the TM documentation. How do I set the TM_PHP environment variable, exactly? And to what? Thanks. --Steven Rowat


November 29, 2007, at 20:35 UTC by Marco Polo -
Changed lines 12-15 from:

Q: How on earth can I change the font type of the main window?


to:
November 27, 2007, at 23:50 UTC by Marco Polo -
Changed lines 12-15 from:
to:

Q: How on earth can I change the font type of the main window?


Deleted lines 198-200:

Q: How on earth can I change the font type of the main window?

November 27, 2007, at 23:48 UTC by Marco Polo -
Added lines 197-198:

Q: How on earth can I change the font type of the main window?

October 29, 2007, at 16:38 UTC by Wolfgang -
Changed line 194 from:

Q: What about completion over multiple documents? It would really help if textmate would complete words I have written in another open file already.

to:

Q: What about completion over multiple documents? It would really help if textmate would complete words I have already written in another open file.

October 29, 2007, at 16:38 UTC by Wolfgang -
Changed lines 191-196 from:
--Dave Gregory
to:
--Dave Gregory

Q: What about completion over multiple documents? It would really help if textmate would complete words I have written in another open file already.

--Wolfgang
October 02, 2007, at 16:17 UTC by Dave Gregory -
Changed lines 180-191 from:

A: Try setting "editor-cmd=mate -w" (or you can set your environment EDITOR variable). This waits until the file is closed in TextMate. See also 'mate -help'.

to:

A: Try setting "editor-cmd=mate -w" (or you can set your environment EDITOR variable). This waits until the file is closed in TextMate. See also 'mate -help'.


Q: I really love autocomplete. "inline autocomplete".

Is there any way to make this possible in textmate?

ie. the completion shows up as you type and to finish the word, just press enter.

I have been using firebug much more lately and I am finding how fast and useful it is to have inline completion like this. Thanks

--Dave Gregory
July 17, 2007, at 13:30 UTC by Doug Kirk -
Added lines 172-175:

A: Try sudo /Applications/TextMate/Contents/MacOS/TextMate to run TextMate under root. The 'mate' command line utility only passes a file to the background TextMate application (as if you had run the Applescript "tell application 'TextMate' to open file x").

Again, BAD SECURITY MOJO!

Added lines 179-180:

A: Try setting "editor-cmd=mate -w" (or you can set your environment EDITOR variable). This waits until the file is closed in TextMate. See also 'mate -help'.

July 04, 2007, at 15:22 UTC by Armin Dressler -
Changed line 174 from:

--Armin Dressler

to:
--Armin Dressler
July 04, 2007, at 15:21 UTC by Armin Dressler -
Changed lines 172-174 from:

to:

Q: Is there a way to use TextMate for editing Subversion (svn) import/commit messages? If I set "editor-cmd=mate" in the subversion config file, TextMate correctly loads the temporary submit-message when doing a svn import/commit from command line, but svn returns directly with error "Log message unchanged or not specified". Subversion is not 'waiting' for TextMate to save or close the file. --Armin Dressler

June 06, 2007, at 06:00 UTC by editing root files with TM -
Added lines 171-172:

Q: Can I use mate to edit root files from the command line? Currently, stuff like sudo nano /etc/shadow allows me to view and edit that file, while sudo mate /etc/shadow does not. It simply opens a blank document window in TextMate. Can it be done?


May 18, 2007, at 17:37 UTC by Frank -
Changed lines 164-165 from:

''Jens: "The 'root'-user problem" could be one of two things. The "normal" way to do this on a Mac is 'sudo apachectl graceful', which will prompt for an admin password and restart Apache.

to:

Jens: "The 'root'-user problem" could be one of two things. The "normal" way to do this on a Mac is 'sudo apachectl graceful', which will prompt for an admin password and restart Apache.

Changed lines 168-169 from:

Note that this is considered BAD SECURITY MOJO, since your password will be in the shell script file. Alternately you could twiddle the ownership of Apache, but again, this seems like a BAD IDEA, that could be rendered nonfunctional by a system update. --Frank''

to:

Note that this is considered BAD SECURITY MOJO, since your password will be in the shell script file. Alternately you could twiddle the ownership of Apache, but again, this seems like a BAD IDEA, that could be rendered nonfunctional by a system update. --Frank

May 18, 2007, at 17:37 UTC by Frank -
Added lines 164-169:

''Jens: "The 'root'-user problem" could be one of two things. The "normal" way to do this on a Mac is 'sudo apachectl graceful', which will prompt for an admin password and restart Apache.

If the root-user problem is that you want it to happen without user interaction, you can create a shell script that uses something like 'expect' (man expect) to enter the password, and use the shell script to restart httpd.

Note that this is considered BAD SECURITY MOJO, since your password will be in the shell script file. Alternately you could twiddle the ownership of Apache, but again, this seems like a BAD IDEA, that could be rendered nonfunctional by a system update. --Frank''

April 09, 2007, at 17:43 UTC by Chris Martin -
Added lines 82-84:

A: Tidy won't do this, but you can use control+shift+v to run your HTML through the W3C validator, which should give you the information you want.

-- Chris M.
March 29, 2007, at 12:11 UTC by Jens -
Added lines 159-160:

Re: that does not solve the 'root'-user problem

March 15, 2007, at 02:12 UTC by boblet -
Changed lines 155-159 from:

--Jens

to:

--Jens

A: try apachectl -graceful --boblet


February 12, 2007, at 23:22 UTC by Jens -
Changed line 155 from:
 --Jens
to:

--Jens

February 12, 2007, at 23:22 UTC by Jens -
Changed lines 155-156 from:

Regards, Jens

to:
 --Jens
February 12, 2007, at 23:21 UTC by Jens -
Changed lines 148-156 from:

PS. Is there a global registration page on this wiki?

to:

PS. Is there a global registration page on this wiki?


Q: Is there an easy way to restart a webserver with a simple shortcut?

I need to restart my Apache2 to make changes visible and would like to have a simple way to accomplish this. I don't know how to do this as 'root'. Any suggestions?

Regards, Jens

January 28, 2007, at 04:10 UTC by Jim Witte -
Added lines 146-147:

-- Jim Witte

January 28, 2007, at 04:10 UTC by Jim Witte -
Added lines 130-146:

Q: 'Smarter-still' symbol-pair completion

It would be nice if the symbol-pair completion algorithm could detect if there was *already* a closing symbol, and not auto-insert the closing pair if so.

I don't know how often this would be used (mainly for editing already written code), but it would come up if you were changing, say, the beginning line of a Perl fragment in OTBS:

if (...) {

   print 'something';

}

If I type the entire first line again, it auto-inserts the closing '}', which I then have to get rid of.

This might go along with the previous sugestings about LISP and Emacs-style programming interfaces, as I'm sure something like this could be written as a small LISP/Scheme proram efficiently, and then just inserted as a subroutine of some sort into the TM engine.

PS. Is there a global registration page on this wiki?

January 05, 2007, at 19:09 UTC by Dave G -
Changed lines 99-100 from:

Q: ''Another Lisp-related question. I'm a Scheme programmer, and as far as I can tell, TextMate doesn't have a system that would allow Lisp-style indentation. Am I wrong, or is there enough plug-in support for a plug-in to be developed to do this? I will explain the indentation paradigm to make myself clear:

to:

Q: ''Another Lisp-related question. I'm a Scheme programmer, and as far as I can tell, TextMate doesn't have a system that would allow Lisp-style indentation. Am I wrong, or is there enough plug-in support for a plug-in to be developed to do this? I will explain the indentation idioms to make myself clear:

January 05, 2007, at 19:08 UTC by Dave G -
Added lines 97-129:

Q: ''Another Lisp-related question. I'm a Scheme programmer, and as far as I can tell, TextMate doesn't have a system that would allow Lisp-style indentation. Am I wrong, or is there enough plug-in support for a plug-in to be developed to do this? I will explain the indentation paradigm to make myself clear:

Everything is written as a parenthesised list, where each term is a symbol or a nested list:

(term1 term2 ...)

The default indentation rule lines subsequent lines up to the right of the head of the last list opened:

(map string-append (list "a" "b" "c"))

(preformatted text doesn't seem to be working - look at the page source to see what I mean)

There are other rules, selected depending on the head of the last list opened. For example, the (define ...) form always indents two spaces (one soft tab):

(define variable value)

So basically the complications are:

  • The amount to indent varies depending on the contents of the last row.
  • Because Scheme and Lisp are macro-extendable, programmers should be able to choose which indentation rules to use in which cases (the indentation preferences in the DrScheme editor from PLT Scheme are a good example of this).''
-- Dave G
December 18, 2006, at 15:42 UTC by ndimiduk -
Added line 96:
December 18, 2006, at 15:40 UTC by ndimiduk -
Added lines 93-95:

Q: Is there a way to use textmate in a manor similar to how emacs can interact with a running lisp instance via SLIME? That is, does there already exist a script to allow the communication with an existing process providing real-time evaluation of arbitrary code-snippets in an active runtime instance? Is there a community desire for such a capability?

November 21, 2006, at 23:01 UTC by Aaron Barker -
Added lines 91-92:

Q:How do I capture mouse clicks for bundles? I would like to mimic a control from HomeSite, where if you ctrl-shift double click on an open or close tag, it hilights that tag all the way through it's match.

November 03, 2006, at 07:36 UTC by Adam -
Added lines 13-17:

Q: How can I highlight some code in the editor and have MATLAB (already running in the terminal) evaluate it? Perhaps even pass the result back to textmate for further operations? Thanks.


Added lines 20-21:
October 27, 2006, at 00:38 UTC by ZachInglis -
Added lines 81-83:

Q: "How can I make Ruby On Rails my default language when editing .rb files rather than the standard Ruby bundle?''

August 02, 2006, at 21:37 UTC by Lary Cummings -
Changed line 34 from:

<li id="${1:item ID}"><a href="${2:link_url"}">${3:list item}</a></li>

to:

<li id="${1:item ID}"><a href="${2:link_url}">${3:list item}</a></li>

July 21, 2006, at 18:11 UTC by Jared -
Added lines 78-80:

Q: How can I make the Insert Close Tag unindent to match opening element? This was the behavior until the latest update.

July 10, 2006, at 13:01 UTC by Kim -
Added lines 74-77:

Q: I would really like to see a bundle item for word completions(word/function list kind of thing), one thing i feel is really needed

July 09, 2006, at 18:34 UTC by CDorr -
Deleted lines 73-77:

Q: "Right now the TeX/LaTeX language definitions don't work right with the underscore character; for example, if you do $\Phi_{1}$, the whole sequence \Phi_ will be treated as one command, and it won't recognise it as a math constant (whereas it works fine with, say, $\Phi^{1}$. This is due to the fact that the underscore is treated as a "word" character so the regexp \bPhi\b doesn't match. I've been trying to think about how to fix this but I'm stumped; other than with \b, I don't see how to get the "match" pattern to pay attention to what's going on on either side of the sequence to which we are trying to assign a particular name. Any help would be appreciated."

A: "Nevermind, just discovered look-ahead in regexp."

July 09, 2006, at 18:34 UTC by CDorr -
Changed lines 76-78 from:

Q: "Right now the TeX/LaTeX language definitions don't work right with the underscore character; for example, if you do $\Phi_{1}$, the whole sequence \Phi_ will be treated as one command, and it won't recognise it as a math constant (whereas it works fine with, say, $\Phi^{1}$. This is due to the fact that the underscore is treated as a "word" character so the regexp \bPhi\b doesn't match. I've been trying to think about how to fix this but I'm stumped; other than with \b, I don't see how to get the "match" pattern to pay attention to what's going on on either side of the sequence to which we are trying to assign a particular name. Any help would be appreciated."

to:

Q: "Right now the TeX/LaTeX language definitions don't work right with the underscore character; for example, if you do $\Phi_{1}$, the whole sequence \Phi_ will be treated as one command, and it won't recognise it as a math constant (whereas it works fine with, say, $\Phi^{1}$. This is due to the fact that the underscore is treated as a "word" character so the regexp \bPhi\b doesn't match. I've been trying to think about how to fix this but I'm stumped; other than with \b, I don't see how to get the "match" pattern to pay attention to what's going on on either side of the sequence to which we are trying to assign a particular name. Any help would be appreciated."

A: "Nevermind, just discovered look-ahead in regexp."

July 09, 2006, at 18:23 UTC by CDorr -
Changed line 76 from:

Q: "Right now the TeX/LaTeX language definitions don't work right with the underscore character; for example, if you do $\Phi_{1}$, the whole sequence \Phi_ will be treated as one command, and it won't recognise it as a math constant (whereas it works fine with, say, $\Phi^{1}$. This is due to the fact that the underscore is treated as a "word" character so the regexp \bPhi\b doesn't match. I've been trying to think about how to fix this but I'm stumped; other than with \b, I don't see how to get the "match" pattern to pay attention to what's going on on either side of the sequence to which we are trying to assign a particular name. Any help would be appreciated.

to:

Q: "Right now the TeX/LaTeX language definitions don't work right with the underscore character; for example, if you do $\Phi_{1}$, the whole sequence \Phi_ will be treated as one command, and it won't recognise it as a math constant (whereas it works fine with, say, $\Phi^{1}$. This is due to the fact that the underscore is treated as a "word" character so the regexp \bPhi\b doesn't match. I've been trying to think about how to fix this but I'm stumped; other than with \b, I don't see how to get the "match" pattern to pay attention to what's going on on either side of the sequence to which we are trying to assign a particular name. Any help would be appreciated."

July 09, 2006, at 17:45 UTC by CDorr -
Changed lines 75-76 from:

to:

Q: "Right now the TeX/LaTeX language definitions don't work right with the underscore character; for example, if you do $\Phi_{1}$, the whole sequence \Phi_ will be treated as one command, and it won't recognise it as a math constant (whereas it works fine with, say, $\Phi^{1}$. This is due to the fact that the underscore is treated as a "word" character so the regexp \bPhi\b doesn't match. I've been trying to think about how to fix this but I'm stumped; other than with \b, I don't see how to get the "match" pattern to pay attention to what's going on on either side of the sequence to which we are trying to assign a particular name. Any help would be appreciated.

July 02, 2006, at 01:16 UTC by philip -
Deleted line 2:
Added lines 5-12:

A HOWTO for setting default tab preferences for given file types. And how to set a tab preference to length = 1.

Allan provided the following (as requested) to set defaults as soft tabbed (spaces), length = 1, for all XML files. Close textmate, run the following in shell, then start back up. Modify to taste:

defaults write com.macromates.textmate OakTextViewScopedTabSize -dict-add 'text.xml' '{ tabSize = 1; }'


June 27, 2006, at 20:19 UTC by Ty Wangsness -
Changed lines 6-7 from:

Q: 'Ok. I have about 1/1000 of the brain that most of you guys have using TM. However, I use this app daily and am crazy over it. I just need some help with setting up some functionality due to my non-programmer understanding. I've set up multiple snippets & macros, but really don't have a clue on how to do something that I would see as being 'basic.' Any help would be appreciated.

to:

Q: So you're editing a document and you use a snippet expansion (say an if/else block). So you tab into the first editing stop, then you want to use another snippet that has a tab trigger... but that sends you to the next editing stop instead of activating the next snippet.

Example: <editing whatever.php>

"php+tab" gives you the php block.

"ifelse+tab" is no problem because there isn't an editing stop from the previous snippet. This gives you the if/else construct and sends you to the editing block in the condition.

"$_+tab" should give you the option to select from the many global arrays... but instead sends you to the first code editing stop.

Is there some other key combo that achieves the snippet trigger without moving focus to the next editing stop?

--Ty Wangsness


Q: Ok. I have about 1/1000 of the brain that most of you guys have using TM. However, I use this app daily and am crazy over it. I just need some help with setting up some functionality due to my non-programmer understanding. I've set up multiple snippets & macros, but really don't have a clue on how to do something that I would see as being 'basic.' Any help would be appreciated.

June 11, 2006, at 15:57 UTC by Darren Huckey -
Added lines 6-16:

Q: 'Ok. I have about 1/1000 of the brain that most of you guys have using TM. However, I use this app daily and am crazy over it. I just need some help with setting up some functionality due to my non-programmer understanding. I've set up multiple snippets & macros, but really don't have a clue on how to do something that I would see as being 'basic.' Any help would be appreciated.

Here's what I'm trying to do. In my html doc, I'm trying to automate the creation of an unordered list. My idea is to have the default fields plugged in for the first line, and the have it create new lines conditionally with all of the required fields. Is there a way to do this? Here is my code presently:

<ul> <li id="${1:item ID}"><a href="${2:link_url"}">${3:list item}</a></li> </ul> --Darren Huckey


May 30, 2006, at 09:27 UTC by dekay -
Changed lines 6-14 from:
  • How could one go about running a shell command over all files a document includes? An example would be running pdf2ps over all figure files called in a .tex doc. I'm trying to write a very general command to strip a latex doc of any PDF requirements, some sites/journals prefer postscript. This includes disabling pdfsync, pdflatex, converting any PDF figures, etc. Does this seem useful to anyone else? --Jim
* Have a look at the file TextMate/Support/bin/labelList.rb and the command "Enhanced Insert Label for..." which calls it. That command traverses the current file searching for \include and \input statements, and gets the corresponding references. Depending on what exactly you want to do, this might or might not be the answer, but it's a place to start.--Charilaos Skiadas?
  • Is anyone actually using TextMate as a serious XCode replacement? XCode drives me nuts sometimes, but TextMate's lack of things like being able to jump to the definition of a symbol, or method auto-completion, send me running back to XCode every time.
Am I missing some nifty macros or plugins that make TextMate a viable editor for Cocoa development?

I use it myself, and I know I am not alone. It doesn’t do code completion or has the same documentation integration. But it does however have very useful snippets (like m, log, dict, array to name a few), does buffer completion on ⎋ and can lookup documentation for a named class, struct, or type on ⌃H. Plus file navigation on ⌘T is near instant. The former things mentioned saves me from far more typing, than what code completion would have done in Xcode, so I am far more productive using TM as a full replacement — but if you’re not good at using snippets, buffer completion, and need to frequently look-up stuff in the documentation (or header files), then maybe it is not the case for you. I know there are also hardcore TextMate fans which use it for all but Cocoa development, because they need the documentation integration offered by Xcode.\\
to:

Q: How could one go about running a shell command over all files a document includes? An example would be running pdf2ps over all figure files called in a .tex doc. I'm trying to write a very general command to strip a latex doc of any PDF requirements, some sites/journals prefer postscript. This includes disabling pdfsync, pdflatex, converting any PDF figures, etc. Does this seem useful to anyone else? --Jim

A: Have a look at the file TextMate/Support/bin/labelList.rb and the command "Enhanced Insert Label for..." which calls it. That command traverses the current file searching for \include and \input statements, and gets the corresponding references. Depending on what exactly you want to do, this might or might not be the answer, but it's a place to start. --Charilaos Skiadas?


Q: Is anyone actually using TextMate as a serious XCode replacement? XCode drives me nuts sometimes, but TextMate's lack of things like being able to jump to the definition of a symbol, or method auto-completion, send me running back to XCode every time.

Q: Am I missing some nifty macros or plugins that make TextMate a viable editor for Cocoa development?

A: I use it myself, and I know I am not alone. It doesn’t do code completion or has the same documentation integration. But it does however have very useful snippets (like m, log, dict, array to name a few), does buffer completion on ⎋ and can lookup documentation for a named class, struct, or type on ⌃H. Plus file navigation on ⌘T is near instant. The former things mentioned saves me from far more typing, than what code completion would have done in Xcode, so I am far more productive using TM as a full replacement — but if you’re not good at using snippets, buffer completion, and need to frequently look-up stuff in the documentation (or header files), then maybe it is not the case for you. I know there are also hardcore TextMate fans which use it for all but Cocoa development, because they need the documentation integration offered by Xcode.

Changed lines 20-24 from:
  • Adding to this: watch the latest screencast.
  • Is there a quick way to remove all the bookmarks in a file? I find bookmarks very useful during a 'debugging session'. After the session, it would be nice to remove them to keep the file 'clean'. -- Thanks, Dennis

    One could do e.g. ⌘A, ⌦, ⌘Z :) I have a bookmark submenu planned (under Navigation) though and “Remove All” is going to make it into that menu.\\
to:

A2: Adding to this: watch the latest screencast.


Q: Is there a quick way to remove all the bookmarks in a file? I find bookmarks very useful during a 'debugging session'. After the session, it would be nice to remove them to keep the file 'clean'. -- Thanks, Dennis

A: One could do e.g. ⌘A, ⌦, ⌘Z :) I have a bookmark submenu planned (under Navigation) though and “Remove All” is going to make it into that menu.

Changed lines 28-38 from:
  • I'm looking for a search and replace that prompts for each instance, much like either emacs or vi has, where you feed it two args (possibly regexps) and you can choose each time it gets a match on the find portion if you want to replace with the replace portion. --Thanks, Jon

    ⌘G does “Find Next” where one can then use ⌘V (paste) to replace or ⌘G to skip to next — it’s not exactly the same, but an option.
  • How do you make it so that when you create a new file, it automatically has HTML encoding (or any other for that matter) selected instead of plain text? -- Thanks for any help. This is driving me nuts! Damien

    see http://lists.macromates.com/pipermail/textmate/2006-February/008276.html
  • How can I change HTML Tidy to show me warnings and errors but NOT reformat or touch my HTML? --Thanks!
to:

Q: I'm looking for a search and replace that prompts for each instance, much like either emacs or vi has, where you feed it two args (possibly regexps) and you can choose each time it gets a match on the find portion if you want to replace with the replace portion. --Thanks, Jon

A: ⌘G does “Find Next” where one can then use ⌘V (paste) to replace or ⌘G to skip to next — it’s not exactly the same, but an option.


Q: How do you make it so that when you create a new file, it automatically has HTML encoding (or any other for that matter) selected instead of plain text? -- Thanks for any help. This is driving me nuts! Damien

A: see this post in the mailing list


Q: How can I change HTML Tidy to show me warnings and errors but NOT reformat or touch my HTML? --Thanks!


May 26, 2006, at 00:42 UTC by Allan Odgaard -
Changed lines 26-27 from:
to:


⌘G does “Find Next” where one can then use ⌘V (paste) to replace or ⌘G to skip to next — it’s not exactly the same, but an option.

Changed lines 30-31 from:
to:


see http://lists.macromates.com/pipermail/textmate/2006-February/008276.html

May 19, 2006, at 00:12 UTC by Dave Foy -
Deleted lines 31-33:
  • In skEdit, you can highlight a plain list of items and use a snippet which wraps each line in a <li>, plus wraps the whole thing in <ul>, and even also wraps the text within each <li> in <a> too. How would I go about creating a custom snippet for this in Textmate? I've tried and failed miserably. Thanks, Dave
May 19, 2006, at 00:11 UTC by Dave Foy -
Added line 33:
May 19, 2006, at 00:11 UTC by Dave Foy -
Changed lines 31-33 from:
  • How can I change HTML Tidy to show me warnings and errors but NOT reformat or touch my HTML? --Thanks!
to:
  • How can I change HTML Tidy to show me warnings and errors but NOT reformat or touch my HTML? --Thanks!
  • In skEdit, you can highlight a plain list of items and use a snippet which wraps each line in a <li>, plus wraps the whole thing in <ul>, and even also wraps the text within each <li> in <a> too. How would I go about creating a custom snippet for this in Textmate? I've tried and failed miserably. Thanks, Dave
April 23, 2006, at 00:50 UTC by Bill Curr -
Changed lines 28-30 from:
  • How do you make it so that when you create a new file, it automatically has HTML encoding (or any other for that matter) selected instead of plain text? -- Thanks for any help. This is driving me nuts! Damien
to:
  • How do you make it so that when you create a new file, it automatically has HTML encoding (or any other for that matter) selected instead of plain text? -- Thanks for any help. This is driving me nuts! Damien
April 23, 2006, at 00:46 UTC by Bill Curr -
Added line 24:
Changed lines 30-31 from:

How can I change HTML Tidy to show me warnings and errors but NOT reformat or touch my HTML? --Thanks!

to:
  • How can I change HTML Tidy to show me warnings and errors but NOT reformat or touch my HTML? --Thanks!
April 23, 2006, at 00:44 UTC by Bill Curr -
Changed lines 27-29 from:
  • How do you make it so that when you create a new file, it automatically has HTML encoding (or any other for that matter) selected instead of plain text? -- Thanks for any help. This is driving me nuts! Damien
to:
  • How do you make it so that when you create a new file, it automatically has HTML encoding (or any other for that matter) selected instead of plain text? -- Thanks for any help. This is driving me nuts! Damien

How can I change HTML Tidy to show me warnings and errors but NOT reformat or touch my HTML? --Thanks!

April 21, 2006, at 00:05 UTC by Damien -
Changed line 27 from:
  • How do you make it so that when you create a new file, it automatically has HTML encoding (or any other for that matter) selected instead of plain text? -- Thanks for any help. This is driving me nuts! Damien\\
to:
  • How do you make it so that when you create a new file, it automatically has HTML encoding (or any other for that matter) selected instead of plain text? -- Thanks for any help. This is driving me nuts! Damien
April 21, 2006, at 00:05 UTC by Damien -
Added line 26:
April 21, 2006, at 00:04 UTC by Damien -
Added lines 25-26:
  • How do you make it so that when you create a new file, it automatically has HTML encoding (or any other for that matter) selected instead of plain text? -- Thanks for any help. This is driving me nuts! Damien\\
March 28, 2006, at 23:04 UTC by Jon Gross -
Added lines 23-24:
  • I'm looking for a search and replace that prompts for each instance, much like either emacs or vi has, where you feed it two args (possibly regexps) and you can choose each time it gets a match on the find portion if you want to replace with the replace portion. --Thanks, Jon\\
March 23, 2006, at 04:50 UTC by Allan Odgaard -
Changed lines 19-22 from:
  • Is there a quick way to remove all the bookmarks in a file? I find bookmarks very useful during a 'debugging session'. After the session, it would be nice to remove them to keep the file 'clean'. -- Thanks, Dennis
to:
  • Is there a quick way to remove all the bookmarks in a file? I find bookmarks very useful during a 'debugging session'. After the session, it would be nice to remove them to keep the file 'clean'. -- Thanks, Dennis

    One could do e.g. ⌘A, ⌦, ⌘Z :) I have a bookmark submenu planned (under Navigation) though and “Remove All” is going to make it into that menu.
    -- Allan Odgaard
March 23, 2006, at 04:47 UTC by Allan Odgaard -
Added lines 17-18:
  • Adding to this: watch the latest screencast.
March 16, 2006, at 17:34 UTC by Dennis -
Changed lines 15-17 from:
to:

-- Allan Odgaard

  • Is there a quick way to remove all the bookmarks in a file? I find bookmarks very useful during a 'debugging session'. After the session, it would be nice to remove them to keep the file 'clean'. -- Thanks, Dennis
March 04, 2006, at 02:35 UTC by Allan Odgaard -
Changed lines 12-15 from:
Am I missing some nifty macros or plugins that make TextMate a viable editor for Cocoa development?
to:
Am I missing some nifty macros or plugins that make TextMate a viable editor for Cocoa development?

I use it myself, and I know I am not alone. It doesn’t do code completion or has the same documentation integration. But it does however have very useful snippets (like m, log, dict, array to name a few), does buffer completion on ⎋ and can lookup documentation for a named class, struct, or type on ⌃H. Plus file navigation on ⌘T is near instant. The former things mentioned saves me from far more typing, than what code completion would have done in Xcode, so I am far more productive using TM as a full replacement — but if you’re not good at using snippets, buffer completion, and need to frequently look-up stuff in the documentation (or header files), then maybe it is not the case for you. I know there are also hardcore TextMate fans which use it for all but Cocoa development, because they need the documentation integration offered by Xcode.
-- Allan Odgaard
March 02, 2006, at 11:32 UTC by Catfish -
Changed lines 11-12 from:

Am I missing some nifty macros or plugins that make TextMate a viable editor for Cocoa development?

to:
Am I missing some nifty macros or plugins that make TextMate a viable editor for Cocoa development?
March 02, 2006, at 11:30 UTC by Catfish -
Changed lines 8-11 from:
* Have a look at the file TextMate/Support/bin/labelList.rb and the command "Enhanced Insert Label for..." which calls it. That command traverses the current file searching for \include and \input statements, and gets the corresponding references. Depending on what exactly you want to do, this might or might not be the answer, but it's a place to start.--Charilaos Skiadas?
to:
* Have a look at the file TextMate/Support/bin/labelList.rb and the command "Enhanced Insert Label for..." which calls it. That command traverses the current file searching for \include and \input statements, and gets the corresponding references. Depending on what exactly you want to do, this might or might not be the answer, but it's a place to start.--Charilaos Skiadas?
  • Is anyone actually using TextMate as a serious XCode replacement? XCode drives me nuts sometimes, but TextMate's lack of things like being able to jump to the definition of a symbol, or method auto-completion, send me running back to XCode every time.

Am I missing some nifty macros or plugins that make TextMate a viable editor for Cocoa development?

January 31, 2006, at 03:31 UTC by Haris -
Added lines 7-8:
* Have a look at the file TextMate/Support/bin/labelList.rb and the command "Enhanced Insert Label for..." which calls it. That command traverses the current file searching for \include and \input statements, and gets the corresponding references. Depending on what exactly you want to do, this might or might not be the answer, but it's a place to start.--Charilaos Skiadas?
January 31, 2006, at 00:40 UTC by Jim Bagrow -
Changed line 1 from:

I thought a page might be useful for people to request solutions to problems that aren't covered by the Suggestions categories. Probably want to keep requests general and avoid troubleshooting: "Why won't my command work?" seems more appropriate to the mailing list.

to:

I thought it might be useful to have a page for people to request solutions to problems that aren't covered by the Suggestions categories. Probably want to keep requests general and avoid troubleshooting: "Why won't my command work?" seems more appropriate to the mailing list.

Changed line 6 from:
  • How could one go about running a shell command over all files the document includes (such as running pdf2ps over all figure files in a .tex doc). I'm trying to write a very general command to strip a latex doc of any PDF requirements, some sites/journals prefer postscript. This includes disabling pdfsycn, pdflatex, and converting any PDF figures. Does this seem useful to anyone else? --Jim
to:
  • How could one go about running a shell command over all files a document includes? An example would be running pdf2ps over all figure files called in a .tex doc. I'm trying to write a very general command to strip a latex doc of any PDF requirements, some sites/journals prefer postscript. This includes disabling pdfsync, pdflatex, converting any PDF figures, etc. Does this seem useful to anyone else? --Jim
January 31, 2006, at 00:37 UTC by Jim Bagrow -
Added lines 4-5:

January 31, 2006, at 00:25 UTC by Jim Bagrow -
Added lines 1-5:

I thought a page might be useful for people to request solutions to problems that aren't covered by the Suggestions categories. Probably want to keep requests general and avoid troubleshooting: "Why won't my command work?" seems more appropriate to the mailing list.

  • How could one go about running a shell command over all files the document includes (such as running pdf2ps over all figure files in a .tex doc). I'm trying to write a very general command to strip a latex doc of any PDF requirements, some sites/journals prefer postscript. This includes disabling pdfsycn, pdflatex, and converting any PDF figures. Does this seem useful to anyone else? --Jim