Hi, I made two small changes related to the Reformat Comment command in the Source bundle. The first is to have the command respect the wrap column set in TextMate's interface. The second is a fix to the rubywrap.rb script; it previously did not handle empty comment lines correctly. For example, if you were to run
// lorem ...
// lorem ...
through rubywrap, it will add an extra space at the end of the empty line in the middle. Within the script a regular expression is used to identify comment lines, and this regexp would incorrectly match the newline at the end of the empty line; I changed it so that it only matches trailing spaces. A diff of the changes is attached.
I haven't noticed either of these changes causing problems that didn't exist before; maybe they could be rolled in to the Source bundle?
I'm interested in some SQL improvements for TextMate. I'm trying to implement a command to execute the selection or SQL line. Not the current textual line, but the SQL line from the beginning of the command to the ending semicolon which may span many textual lines.
I've made some progress with the grammar and understanding scopes. I think I need to create a "SQL Statement" scope, but I don't see how to write the ending regular expression for the semicolon. Is there a way to do this in the grammar that ensures the semicolon found is not in a string or comment?
And TM_SCOPE tells me what scope I'm in, but how to I get the text of the current scope?
John DeSoi, Ph.D.
I just installed Textmate on OS X 10.6.4, but the disk image did not create
the Textmate folder in Application Support, which is perplexing. Has anyone
encountered this issue? Either way, does anyone know how I could resolve it?
Here are the steps I executed:
1. Downloaded Textmate.app from
2. Launched disk image
3. Dragged Textmate.app to my user's Application folder
4. Launched Textmate.app
5. Entered previously purchased license
>> Hi, hmm for me it works. If I locate the cursor after "1em; ", type b and press ESC I can see the autocompletion stuff.
> What happens if your cursor is inside the css stuff and you press CTRL+ESC? Does the CSS bundle pop up? If not, is the CSS bundle available? Is the document set to HTML?
In an empty css file, I can hit Esc after a "b" and I will get all the list of possible choices like border, background etc., if I hit CTRL+ESC it opens a popup with the bundles list with the focus on CSS.
If I do the same in html mode inside css stuff, the ESC key does only show me keywords that start with "b" it shows only "body" "base" "big" "blockquote" "br" "button", seems like html autocomplete instead of css one.
If I hit CTRL+ESC it opens a popup with the bundles list with the focus on PHP Smarty and that could be the problem!
I have just see that if I disable PHP Smarty bundle the problem seems to be solved.
But what if I want to use both bundles? Is there a bug to be solved in one of the two packets?
Would anyone be able to tell me how I can get TextMate to use zsh as the default instead of bash for running commands?
I've tried adding #!/bin/zsh at the top of commands but that just runs them through bash first and it's altering some of the commands along the way.
Any help is much appreciated.
Is there a way of modifying the Typeset & view command in the LaTeX bundle so
that it will run make before typesetting the .tex file?
I have a Makefile that is used to run a script that generates a .tex file
that includes information from the current Git repository. (I'm using the vc
package, hence the need for the Makefile.)
View this message in context: http://old.nabble.com/Run-make-when-typesetting-a-.tex-file-tp29337376p2933…
Sent from the textmate users mailing list archive at Nabble.com.
That's maybe a basic usage question, but I couldn't find any answer on my own or by searching through the mailing list.
Is there any way to specify that I want to keep the HTML output window of some command in the background?
What I'm doing is that I'm editing some latex document, and what I'd basically like is that when I trigger a compilation, the compilation window doesn't gain the focus. For one thing, this allows me to keep editing the document while compiling, plus, it allows, once the focus has been given to the PDF viewer (i.e. Skim) to switch back to the editor with a simple Cmd-Tab.
Is that possible?
Most of the Hyperlink Helper commands in that bundle do not work for me.
For example, if I run the 'Look up selection on wikipedia and link' command, I get:
sh: : command not found
/Library/Application Support/TextMate/Support/lib/ui.rb:297:in /bin/bash: -c: line 0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of filenew'
from /Library/Application Support/TextMate/Support/lib/ui.rb:20:in /bin/bash: -c: line 0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of filecall_with_progress'
What do I need to do to fix this?
I'd like to be able to fold text in plain text files. I often use a
plain text file to plan database tables and columns, and to write
pseudo code. Ideally I'd like to be able to fold the text so that I
can more easily see my headings - like an outliner, yes, that's it.
I've had a look at the bundles available at svn.textmate.org/trunk/
Bundles, and have found the Outlines.tmbundle but doesn't appear to do
what I want. Any suggestions?
Justin C, by the sea.