Howdy. I'm new here. So far, I really like what I see in TextMate.
In other text editors I've worked in, when you select some text and launch
the find/replace dialog, the "find" field automatically gets populated with
the selected text.
Is it possible to set TextMate behave this way?
Thanks.
I know this one can be done. I've been digging, but can't seem to figure it
out.
I'm using the bundle editor to create a bunch of snippets. Because I have
to create so many of them, I like them categorized.
I'm looking to do something similar to what I see in the CSS > Background
bundle. That is, a top-level category of snippets, plus sub-menus that
contain other snippets.
How does one go about setting this up?
Thanks.
- Scott
Embarrassingly simple question - how do I change the page set-up in
TextMate? I need to print landscape rather than portrait from an HTML
preview, and can't seem to see how to do it. Running 10.5.3.
TIA
R
--
Richard Dyce MA (Cantab.) MBCS MIET
i've been searching around, and i can't seem to figure out how to have
textmate highlight the current line of the cursor. i see the "Line
Highlight" in the preferences of the theme, but i can't seem to make
it work.
i know i'm probably missing the obvious, but how can i accomplish this?
thanks.
---
chad gulley
Hi,
The project I am currently working on requires me to write xml
configuration files for a custom application for experience sampling.
The files contain embedded python scripts, contained in the following
regions:
<script event="OnLoad">
<![CDATA[
python script
]]>
</script>
I know that TextMate is able to deal with embedded regions that have a
different language deffinition than the main file (like php and
javascript sections in HTML) so I was trying to set this up for XML so I
can have proper syntax highlighting for python. So far, though, I have
not had any luck with this. I tried adding the following in the xml
language definition, both right after the section for embedded java and,
when that didn't work, right after the section for CDATA comments, but
it doesn't seem to work:
{ name = 'source.python.embedded.xml';
begin = '<script.*?}>\s*?<!\[CDATA\[';
end = ']]>\s*?<script/>';
beginCaptures = { 0 = { name = 'punctuation.section.embedded.begin.xml'; }; };
endCaptures = { 0 = { name = 'punctuation.section.embedded.end.xml'; }; };
patterns = ( { include = 'source.python'; } );
},
This was based on the example for embedded java, but obviously I either
didn't understand what the java example does, or I didn't specify the
begin and end strings correctly. I also suspect that since there is
already a definition for CDATA comments, this needs to be in a specific
place to override that definition.
Any help with getting this to work would be greatly appreciated. The
scripts can be quite long, so having proper syntax highlighting would
make things much easier.
Thanks so much,
Pedja
--
http://www.fastmail.fm - Faster than the air-speed velocity of an
unladen european swallow
I seem to be having problems with my Web Preview in (Markdown/
MultiMarkdown).
I'm trying to use the "Image" link, but the web preview does not show
the image, but if I select "Markdown->MultiMarkdown->Generate Output
and Open in Browser" it works just fine. I've tried specifying both a
full path and a relative path.
Also, if I try with the web preview, select "Show Source", save the
source to a HTML file, and then open the file, it shows both images
just fine.
====CODE====
## Normal Link Test ##
An [example](http://www.google.com/ "Title")
## Image Link Test ##
A full path image link: 
A relative path image link: 
====CODE====
----
Brian H
binarynomad(a)gmail.com
http://www.binarynomad.com
Hello,
I do a lot of programming in fortran and I like textmate. However there are
a few small things that dont work properly.
In punchcard fortran, comments begin on first column with "c" or "C".
Textmate does not indent them correctly. If I cut and paste some existing
comments, these get indented. I tried using
unIndentedLinePattern = '^\s*[cC]\s*.*$';
in "Indentation Rules" but it does not work. Can somebody help me with this
?
Thanks
praveen
--
http://pc.freeshell.org
I just got an idea: could this be due to the fact that the "child"-documents
are in other folders than the main document?
folder structure is like
folder "main" -> main document + bib-file
folder "sub1" -> sub-document1
folder "sub2" -> sub-document2
.
.
If this is the problem, how to handle it?
--
View this message in context: http://www.nabble.com/Textmate-Latex%3A-Citation-Inclusion-does-not-work-tp…
Sent from the textmate users mailing list archive at Nabble.com.
Before I go mad and spend ages re-inventing the wheel, is there
something in/for TM that I have missed that would allow me to take a
selected code sample and save it in some way that it could be
presented in another html page?
(ideally wrapped with some styling hooks for CSS so syntax could be
highlighted.
e.g. converting <div> to <span class="tag_div"><div></span>
TIA
Hy TextMate users
I've got a strange problem: if I'm opening a file from my NAS Synology
CubeStation CS 307 and then try to save the file after changes,
TextMate hangs up. Anyone out there with a same problem?
Regards
Dave
hi - I am getting strange behavior when I try to commit or do a diff
with the svn bundle; it had been working fine before but now when I
commit I get no action and when I do a diff I get the output below.
can anyone spare me a clue?
cheers!
sh: : command not found
/Users/dvinay/Library/Application Support/TextMate/Support/lib/ui.rb:
192:in `initialize': No such dialog ()} for command: '' -a -c -p \<\?
xml\ version\=\"1.0\"\ encoding\=\"UTF-8\"\?\>'
'\<\!DOCTYPE\ plist\ PUBLIC\ \"-//Apple//DTD\ PLIST\ 1.0//EN\"\ \"http
\://www.apple.com/DTDs/PropertyList-1.0.dtd\"\>'
'\<plist\ version\=\"1.0\"\>'
'\<dict\>'
'\ \<key\>details\</key\>'
'\ \<string\>\</string\>'
'\ \<key\>isIndeterminate\</key\>'
'\ \<true/\>'
'\ \<key\>progressAnimate\</key\>'
'\ \<true/\>'
'\ \<key\>summary\</key\>'
'\ \<string\>Accessing\ Subversion\ Repository…\</string\>'
'\ \<key\>title\</key\>'
'\ \<string\>Diff\ With\ Newest\</string\>'
'\</dict\>'
'\</plist\>'
' ProgressDialog.nib from /Users/dvinay/Library/Application Support/
TextMate/Support/lib/ui.rb:15:in `new'
from /Users/dvinay/Library/Application Support/TextMate/Support/lib/
ui.rb:15:in `dialog'
from /Users/dvinay/Library/Application Support/TextMate/Support/lib/
progress.rb:42:in `call_with_progress'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Support/svn_diff.rb:39:in
`diff_working_copy_with_revision'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Support/svn_diff.rb:21:in `diff_active_file'
from -:5
Hey,
after tinkering with tm_dialog for a plugin[1] I have come to really
wish you could embed an 'html output' webview into a NIB.
The idea being that instead of invoking
'returnArgument:your:arguments:' you could invoke
'htmlOutput:your_command:and:arguments:' and display the results
directly in the dialog rather than outputting to an enclosing html
view.
Note that I don't want to do async and then update the dialog with
results (to go in a listview perhaps). The process I'm getting
results from can take a long time to complete and can generate reams
of information so I want to display the partial results as they come
in.
Obviously you'd need to wire-up the WebView delegates to point to the
File's Owner, as well as tell the File's Owner about the WebView and
progress indicator etc etc.
I tried some cruel hacks by instantiating OakHTMLOutputManager in my
nib and wiring it all together. Alas, I could only manage to evaluate
a "TextMate.system" calling [[webview windowScriptObject]
evaluateWebScript] via bindings. I also managed some other
experiments to tell the OakHTMLOutputManager that it was busy (to
update the progress control).
The only other behavior I cold elicit was some spectacular crashes
trying to convince the OakHTMLOutputManager to invoke anything...
yeah, I know I'm tinkering with stuff I shouldn't :-)
So... my question: is there any way in current TM to achieve my goal
(embed html output in a dialog) - perhaps in DIALOG2 (that I haven't
looked at yet)?
Assuming the answer is 'no' - I'd just like to say that capability
could be an excellent bridge between the current tm_dialog+html_output
and a full-blown plugin.
Thanks for listening,
Trevor
[1] http://github.com/protocool/ack-tmbundle/tree/master
--
--
Trevor Squires
http://somethinglearned.com
Hi,
there is a very tiny and marginal issue about rendering in the content
of the tooltip under Leopard.
If I have a string "simplified" (length 10) it will be displayed as
"simplified" (length 9) caused by the used fi ligature. This leads to
a small problem if one wants to output a pretty looking table for
instance. Under Tiger is that not the case.
Is this behaviour switchable?
--Hans
Hi,
I'm just beginning to like Python ;)
Caused by that issue here are some tiny suggestions:
Walter Dörwald had the idea to provide exit codes similar to Ruby's
exit_codes.rb.
This could be integrate in tm_helpers.py à la:
def exit_discard():
sys.exit(200)
def exit_replace_text(out = ''):
if out: print out
sys.exit(201)
def exit_replace_document(out = ''):
if out: print out
sys.exit(202)
def exit_insert_text(out = ''):
if out: print out
sys.exit(203)
def exit_insert_snippet(out = ''):
if out: print out
sys.exit(204)
def exit_show_html(out = ''):
if out: print out
sys.exit(205)
def exit_show_tool_tip(out = ''):
if out: print out
sys.exit(206)
def exit_create_new_document(out = ''):
if out: print out
sys.exit(207)
Furthermore tm_helpers' sh(cmd) is not UTF-8 safe.
If I'm using e.g. popen("grep 'ä' 'test.txt'") or tm_helpers.sh("grep
'ä' 'test.txt'") I have problems with the codec.
I tried several things to encode/decode unicode but no success. Maybe
some of you can fix this.
I went the way to use popen2. Then I didn't have such problems (?)
The next issue is regarding dialog.py. Maybe one could the function
'menu' looking for DIALOG2. If there's DIALOG2 it uses that syntax,
if not fall back to DIALOG1.
This could also be done for Ruby's ui.rb.
Cheers,
--Hans
I moved the mailing list to a new server. I couldn’t migrate
individual user settings (other than digest/non-digest) so if you had
disabled mail delivery or similar, you’ll have to do that again and if
you had a list password, then that is now reset.
We may also have lost around 40 subscribers, at least if the number of
subscribers in Mailman’s web UI is correct.
Also, messages to the list sent in the last 8 hours or so have bounced
with “relay access denied”.
But other than that, everything went smooth :)
My TextMate today started acting funny. When some
text is represented as italic (e.g., in LaTeX, inside an
\emph{THIS TEXT SHOWN AS ITALIC} ,
the text looks corrupted: some of the caracters are
replaced by other characters. If I switch back to
non-italic e.g. by changing bundle, everything looks ok.
Two funny thngs:
1) not all characters are changed. This
\textit{AAAAAAAAAAAAAAAAAAAAAAAAAAAA}
appears perfect. On the other hand, if I write
\textit{EEEEEEEEEEEEEEEEEEEEEEEEEEEEE}
some of the E's are replaced by an upperscore:
the 4th, the 8th, 12th AND 13th, etc.periodically
2) if I shift the thing, the position of the corrupted
characters remain fixed:i.e., if I write
\textit{EEEEEEEEEEEEEEEEEEEEEEEEEEEEE}
(three spaces at the beginning) now the 1st,
5th, etc are changed into an upperscore.
Any ideas before I download a fresh copy and reinstall?
Thanks
Piero
Hi,
is there/could there be a way to cache the undo-history in TM or
future TM2 even after closing the programm?
Users of laptop computers who prefer the sleep mode instead of shuting
down the computer will have the advantage to find their desktops/
workspaces just as they have left them, including undo histrories.
They will have the disadvantage that sleepmode will suck empty their
batteries, especially when you have a lot of RAM installed. Also this
is over the time lowering the life expectancy of your accu set.
Sometimes I only use sleep mode because I dont want to loose the
changes that I have made in TM (code debugging most of the time)...
If Historie would be cached, I then have one reason less to worry
about shutting down completely or not.
Id be happy if more programs could support such a behaviour, it is
convenient and will save at least some resources and energy.
Thanks & sincere
Dennis
> Now what context this bit of grammar is really for I don't know.
> From what I can see the other examples I gave don't use above.
> Perhaps the original author of this grammar can shed light on this
> and make the proper changes.
I guess I am the original author, though I haven't worked on it for a
while (not since my kids were born!). The svn blame for this piece of
the grammar goes to gerti, duff and msheets.
Let me say that if we as a Textmate community really want to have
distributed editing of these grammars, then we should develop a set of
test cases to check if our grammar edits break anything. Maybe one or
two documents with a .png of the correct highlighting using a default
color scheme.
best wishes, Eric
--
Eric Hsu, Associate Professor of Mathematics
San Francisco State University
http://math.sfsu.edu/hsu
erichsu(a)math.sfsu.edu
Hi,
I'm recently playing a lot with great Ruby web framework called
Ramaze. By default when running my project, Ramaze highlights
different event types in the console with different colors. So errors
are red, warnings yellow, notices green and so on. This works great
when I run my program from the Terminal, but when I run it within
TextMate with ⌘R and its output window unfortunately I get no colors.
I don't know if it is fault of Ruby bundle or TM internals, but I'd
love to see the colors there too, as they help reading logs a lot.
Best regards,
--
Adam Strzelecki |: nanoant.com :|
Anyone feel up to getting this working in textmate
http://txt2regex.sourceforge.net/
would be VERY handy
--
Saul Rosenbaum
Visual Chutzpah
---------------------------------
Strengthening Brands Through Illustrated Images And Interactive Design
web: http://www.visualchutzpah.com
email: saul(a)visualchutzpah.com
phone: 215-702-1147
fax: 866-475-1913
Hi,
This is just a generic question on how you use Terminal and TextMate
in developing with Rails. I benefit from the bundles like Ruby, Rails
RubyAMP and RSpec. My problem is that I would like to have a few
Terminal tabs open for one application. I need one tab for running
commands like script/generate or rake tasks. (I know I can use Control-
Shift-\ for some tasks, but it feels a bit slow to me.) Another tab is
for the server log genarated after `script/server`. And optionally I
have a tab open for script/console.
If I use Control-Shift-O, the Terminal window opens and `cd` to the
current directory. RubyAMP bundle has Control-Command-P for a similar
feature. But if I use the same command more than once, a new Terminal
window shows up. I would like to have a new tab instead.
What I do currently is that: 1) Open the TextMate project file, 2) I
use Control-Shift-O to open the Terminal window and find myself in the
project directory, 3) run the AppleScript I made to duplicate a tab.
My AppleScript is written at <http://samuraicoder.net/applescript_duplicating_tabs_terminal
>. This is just a shitty script, simply emulates what I do on
keyboards. Is there anybody who can know a much better way? Or would
you suggest any better workflow?
Takaaki
--
Takaaki Kato
http://samuraicoder.net
Hi,
I suggest to add German quotation marks to the Latex Bundle:
This can be archieved by adding
>>
<array>
<string>„</string>
<string>"</string>
</array>
<<
to
Latex.tmbundle/Preferences/Miscellaneous.plist and
Latex.tmbundle/Preferences/Smart\ Typing\ \(Strings\).tmPreferences
under the "highlightPairs" and "smartTypingPairs" sections in each
file.
Please note that I have limited knowledge on how those bundles work.
Applying the changes above worked for me.
Kind regards
Johannes