Hi,
I don't know if this will be of interest to users of TxtMt but some
users like a text editor to be able to go into full-screen mode. E.g.
for creative writing purposes I like to be able to focus on the text,
and ONLY on the text without the fluff of the OS and other running apps.
Some apps built a reputation out of this alone, e.g. Ulysses, Macjournal.
Plus it kinda fits with the simplicity we code hackers like. Nothing
beats a fresh full-screen Terminal in the morning, but maybe that's just me.
Cheers - Francis
Hi,
A short question, is there a short key to enter the commit button in the
commit window, without klicking it with my mouse? i do a lot of commit's
without comments and i want to hit a key to commit the changed
files.isthere any?
thanks a lot!
Redouane
Hello:
Since this morning and a new update ( TM 1.5.1 1021)
With latex Bundle when i type ^ (not the ctrl key but the key for î ô
etc)
i've a menu on the screen
1) run makeindex
2) run BibTex
With html bundle when i type ^ all the html commands disappear
and there remains only my text between the <p> </p>
It is very unpleasant. i need î ô ê etc...
Alain Matthes
Allan,
slightly off-topic. I was wondering what tool you are using to get
the subversion revision history from the textmate repository into a
nicely formatted rss feed? Or is that something you custom made?
Thanks for the info.
Sebastian
I'm editing the "Annote" field in BibDesk via the "Edit in Textmate"
shortcut. The shortcut works (TextMate opens with a new file and
pastes the text already in the field. But when I write something an
then hit "Save", nothing happens. The text doesn't get transfered to
the Annote field in BibDesk. Edit in TextMate works fine in Safari,
Mail, etc. And if I'm remembering it also used to work with BibDesk.
But suddenly it stopped working. Can anybody using Bibdesk as well
confirm this behaviour?
Btw. I'm using the latest cutting edge build 1021.
Thanks. Oliver
Hi,
I'm using the latest version (1.5.1 1021) and I don't know if it is
new to this version, or I'm missing something.
I went into the bundle editor and clicked the Filter List button to
turn off some bundles I'm not using. That seemed to go OK, but when I
went back into the bundle editor and clicked Filter List, none of the
filtered bundles appear.
So the question is... how do I un-filter them?
Thanks!
jt
Is there any way in TM to insert an image into my HTML doc sort of
the way Dreamweaver does it? I'd like to be able to click a
shortcut, the finder window pops-up so I can choose the file, the
image tag gets inserted with the correct filename and height/width
attributes. Any way to do this?
Thanks!
Sean
:::: DataFly.Net ::::
Complete Web Services
http://www.datafly.net
> 1. Create a new user account
> 2. Limit its access to only TextMate
> 3. Hide the dock
> 4. Work.
Not good enough.
No matter how well you share documents between users this is as much a
stop-gap solution as faking fullscreen using other apps.
I just started using TextMate about a week ago, and so far I love it. But I
write a lot of Objective-C and I see two issues that may get annoying fast.
I'd love to hear if anyone is aware of a fix or if I'm just overlooking
something.
Problems:
1) If I write an method implementation that looks like:
- (id)performMethodWithLongName:(id)foo
and:(id)bar {
// ...
}
The autoindent on the first line of the method body is messed up. I have my
editor set to use "Soft Tabs: 2", but I don't end up two spaces from the left
margin, rather I end up two spaces after the column where the "and:" method
parameter started. It looks like the autoindent spacing is determined by the
location of the preceding line, but I'm not sure this will work well with the
common spacing patterns used in Objective-C.
2) When I call an Objective-C method, I'd like it to automatically align
parameters by the colon. For example, I'd like it to be smart enough to
reformat:
foo = [someObject foo:bar baz:quux];
into...
foo = [obj foo:bar
baz:quux];
I figure this one can be done pretty easily w/ a TM command, but I'm more
wondering if anyone's already written it.
Thanks,
Greg
I have been trying to combine some tips in the thread on inserting an
image url and the thread on using filemerge for svn merge to
implement using filemerge using the diff bundle.
For this I am using the shell command
exec "/path/to/filemerge.app" -left $leftfile -right $rightfile
This opens filemerge but does not allow access to TextMate until you
quit file merge. Is there a way to allow the exec command to run in
the background so that filemerge opens and then allows access to
textmate to edit a file.
I am also using Alan's code to allow selection of one of the files
via a finder dialog box
leftfile=$(osascript -e 'tell app "SystemUIServer"' -e activate -e
'return POSIX path of (choose file with prompt "Pick an file:")' -e
'end tell').
This does not allow access to packages such as a .wdgt folder. Is
there a way to allow the finder dialog box to access a folder such as
this. This would also apply to a .app folder.
Many thanks,
Anthony
I suppose I'd better weigh-in while I still have the chance on the
issue of a full-screen mode.
To avoid [Tuesday Whipper-Snapping][1], I'll just tell you why
fullscreen is important to *me*. I'll leave it up to you to
interpolate other uses for fullscreen.
An interesting, and relevant, discussion has been going on over at
[Subtraction.com][2] where talk is brewing of an app that actually
blocks all network traffic while using it. A quote:
> what better way to thwart a computer than to step away from
> it completely? There's no email to check on a typewriter,
> no beeps and pop-up reminders from other applications, and
> no access whatsoever to the Internet and its tantalizing
> abundance of productivity-killing diversions.
>
> [...] At some point, it occurred to me that it really
> shouldn't be necessary to purchase another piece of hardware
> to accomplish the same things that writers look to manual
> typewriters for: the ability to focus without distractions.
And that's exactly what fullscreen is all about, killing distractions
and making you forget that your computer can do anything but process
text.
"HA!" I can hear so many of you saying, "All you need is some
will-power! you don't need fancy tools." Indeed, you don't need fancy
tools at all. For goodness sake, the greatest masterworks of writing
of the human race were created with nothing more than ink and paper.
But I ask you this, what lengths did those people go to to kill
distractions? Truman Capote was known to only be able to *really*
write away from everyone he knew, away from his own life. Writers
often take sabbaticals to other countries to finish their works.
Killing distractions is a way of life. I'll say that again,
Killing distractions is a way of life.
For me, anything that helps me do this is a tool I want to use.
[1]: http://inessential.com/?comments=1&postid=3291
[2]: http://www.subtraction.com/archives/2006/0509_blockwriter.php
A slightly off-topic question regarding XSLT (I am extending the
XHTML-to-LateX template).
I have the following XHTML markup:
<div class="versionhistory">
<div class="version" v="v1.0" d="2006-05-04" a="SBR">Change
description v1.0</div>
<div class="version" v="v1.1" d="2006-05-05" a="SBR">Change
description v1.1</div>
<div class="version" v="v2.0" d="2006-05-06" a="SBR">Change
description v2.0</div>
</div>
and would like to read the value of attribute "d".
Now, with something like
<xsl:template name="get-version-date">
<xsl:param name="vers" />
<xsl:value-of select="//div[@class='version'][@v=$vers]" />
</xsl:template>
I can get easily the value of a specific "version div", such as the
string "Change description v1.0". But how do I write the select
statement to get "d" of a specific version instead? Or similarly,
what is the path to read the attribute "content" of a meta tag such as
<meta name="documentclass" content="wtdocument" />
with something like
<xsl:template name="get-meta-value">
<xsl:param name="tag-name" />
<xsl:value-of select="/html/head/meta[@name=$tag-name] (*???*)" />
</xsl:template>
Thanks for any help!
With regards
- Stefan
Fist Example:
{ name = 'meta.line.screenplay';
match = '^(\t{4})([^\t].*)(\s*)';
captures =
{ 1 = { name = 'whitespace'; };
2 = { name = 'element.character'; };
3 = { name = 'element.character.eol'; };
};
},
This works great unless the line I'm working on is the last line of
the document, in which case the 3rd capture fails. Which makes a
certain amount of sense to me because on the last character of the
last line of the document there wouldn't be anything to match, not
even a newline.
But the following works...
{ name = 'element.action.screenplay';
match = '^[^\t].*((\.|\-|\?|\:|\;|\,)\s*)';
captures =
{ 1 = { name = 'element.action.eol'; };
};
},
Which is totally nuts, because it's not all that different than the
first example.
My question is this: How can I get the 3rd capture of the first
example to work when I'm working on the last line of a document?
All,
I recently purchased TextMate and I've been very impressed with it. It
was one of the main reasons I just switched to a mac.
I've been wondering about the behavior of the Text | Move Selection |
Line Up command. It works exactly as I'd expect when text is actually
selected, but when you invoke the command with nothing selected, the
behavior is a little bit odd.
When nothing is selected, invoking either "Line Up" or "Line Down" from
the Text | Move Selection menu will move the current line up or down,
which is exactly what I'd want it to do. The unexpected behavior is
that the cursor doesn't remain on the moved line at the original offset;
instead, the cursor ends up at the start of the line immediately below
the moved line. This makes it difficult to move a given line more than
one line up or down.
Could this behavior be changed? For example, in the following five
lines of text, imagine the cursor is on the "@" character:
first line
second line
third @line
fourth line
fifth line
With nothing selected, I'd like to press control-command-up twice and
end up like this:
third @line
first line
second line
fourth line
fifth line
with the cursor still in the same place on the "@" symbol. With the
current implementation, pressing control-command-up twice first
exchanges "second line" and "third line", then exchanges them back,
leaving my cursor at the start of "third line":
first line
second line
@third line
fourth line
fifth line
I like the way that many features in TextMate operate on the selected
text when a selection is active, but fall back to some natural unit of
text for the given operation when nothing is selected. To me, the
above-described line move operations seem to "line up" with this philosophy.
Thanks,
Michael Henry
>> Is there any reason the following shouldn't work?
>>
>> perl -pe 's/\n\n/foo/;'
> What you may want to do is this:
>
> perl -pe 'BEGIN {$/=undef} s/\n\n/foo/'
I tried that, but this does not allow me to use "^" to denote the
beginning of a line, which is critical to some of the search/replace
things I'm doing.
Any other thoughts?
Has something changed with the Subversion repository for bundles? I'm
getting encoding errors:
jupiter:/Library/Application Support/TextMate trevor$ svn up
svn: Can't convert string from native encoding to 'UTF-8':
svn: Paste Line : Selection to IRC?\226?\128?\166 (CakePHP Paste).plist
jupiter:/Library/Application Support/TextMate trevor$ cd Bundles/
Subversion.tmbundle/
jupiter:/Library/Application Support/TextMate/Bundles/
Subversion.tmbundle trevor$ svn up
svn: Can't convert string from native encoding to 'UTF-8':
svn: Diff Revisions?\226?\128?\166.plist
Any suggestions on how to fix this? Thanks,
Trevor
In the subversion bundle I tried to use escape to do word completion
while typing the checkin message and this cancelled by checkin
without any warning, discarding the long and complicated checkin
description I had been working on. Happy I am not.
Dave.
I have two questions:
1: I must be doing something really stupid but I don't seem to be able
to get the Rails snippets to work when I hit tab on an IntelMac. I
have read the docs, googled for it and tried to browse the archives
but can't figure out what is wrong. THe bundle editor shows that the
rails snippets are there.
2: I seem to be running textmate from the folder which comes up when
you double-click on the .dmg file. It takes two steps to launch it.
Is this the preferred way to install it?
TIA,
-bakki
How can I create a command that creates the PDF file from Latex
without creating any other files (logs etc.). Preferrably this command
would also let me choose where to save the output document with the
standard saving dialog window.
---------- Forwarded message ----------
> From: Brad Choate <bchoate(a)gmail.com>
> To: TextMate users < textmate(a)lists.macromates.com>
> Date: Thu, 18 May 2006 18:35:48 -0700
> Subject: Re: [TxMt] unordered list nav snippet
> Here's my entry:
>
>
>
>
>
> As requested, it outputs the text wrapped in <a> tags. As a bonus, it
> outputs as a snippet, so you can tab through the href attributes to
> populate them.
There doesn't appear to be anything here Brad, unless I'm missing something?
Here's quick little command/macro pair for handling Markdown headings
using the setext format. I wrote it because I always find myself
changing the text of my headings, which means erasing the underline
and redoing it so the line of equals or hyphens matches the length of
the new heading text. (Yes, I know that Markdown doesn't require the
length of the underline to match the length of the heading. That's one
of the many niceties John Gruber designed into Markdown. But I'm anal
and like my underlines to match.)
Start with this command for `<h1>` headings.
#!/usr/bin/perl
chomp(@lines = <>);
$under = "=" x length($lines[0]);
print $lines[0] . "\n" . $under . "\n";
unless ($#lines == 0 or $lines[1] =~ /^[-=~]+$/) {
print $lines[1] . "\n";
}
The input should be **Selected Text** or **Nothing**, and the output
should be **Replace Selected Text**. I named it "Heading 1."
Now record a macro that prepares the input and runs the command. The
idea is to be able to call the macro with the caret anywhere on the
line with the heading text. If the heading isn't already underlined it
will underline it; if the heading is underlined it will adjust the
underline to the new heading length.
To make the macro, put the caret on the heading line, start recording and
1. Type **Command-Leftarrow** to move the caret to the beginning of the line.
2. Type **Shift-Downarrow** twice to select the heading line and the
line below it. (Don't worry if there is no line below it; the macro
will record both keystrokes and the command was written to handle the
single-line case.)
4. Invoke the "Heading 1" command to transform the selected text.
5. Type **Rightarrow** to put the caret at the end of the selected
text and deselect it.
I called this macro "Heading 1" also. For a "Heading 2" macro that
inserts a line of hyphens, do exactly the same thing, but change the
quoted equals sign in the fourth line of the command to a quoted
hyphen.
There's a writeup of this on [my blog][1] if you need to see more details.
--
Dr. Drang
[1]: http://www.leancrew.com/all-this/2006/05/markdown_headings_in_textmate.html
Hi
I couldn't find a reference to this on the list and wasn't able to
login to the bug tracker.
Background:
I uses a template system where I have an HTML file that serves as a
template. When I want to create a new page for the site, I open the
file and 'Save As' whatever the new name will be.
Problem:
I notice that when I save a file (File / Save As), it seems to rename
the file that I was working on to the same name as the file I just
'Saved As'.
In other words, if I save "page_template.html" as "index.html" in
another folder, when I look back at the project drawer, the original
file assumes the name of the new file.
Interestingly, if I open the old file (which now has the name of the
new file), when I command+click on the title bar to see where the
file is stored, it thinks it's the new file.
If I close and open the project, the file returns to it's original name.
Is there something I can do to refresh the project drawer? Has anyone
else had this problem?
I'm running the Demo version of TextMate 1.5.1 (948) on Mac OS X
10.4.6 on a PowerPC G5
Thanks for listening.
Regards
Jonathan
<rant>
> Difficulties in Collaboration
> =============================
> All of my colleagues use Word for curriculum development, tests, and
> assignments. Colleagues don't get it when I send a markdown
> formatted document to them. While I use textmate for a variety of
> tasks, I stumped at how I can drop Word without retraining my
> colleagues.
I just got two emails from coworkers with both about 5 lines of text
in a word document attached to an email. Can someone please explain to
me why they did not just enter the damn text into the email? Luckily
gmail can display .doc as html, I really don't care about having Word
just for crap like this.
Why are people so ignorant? Both my coworkers do complain about Word
being sucky and complicated and all that -- but you would think they
might do something about it. I wish WYSIWYG and Word were never
invented, it dumbs people down, just like PowerPoint tends to do…
anyone remember the hype against PP --
http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=000111&topic_id=1
There is whole businesses losing their right to exist just because the
average pc user thinks he can do it better, as well as people losing
their appreciation of quality (as long as they pay for it).
How do you re-train your coworkers and surroundings?
THAT is why TextMate is so cool. It makes it easy to create text/code,
it makes you love the act of writing the content and not fuss with the
annoying stuff around it -- but it doesnt force you to create bad
code. Maybe people would be dumping Word if they had a good text
editor on their hands (*dreaming*).
Ah. Need to get coffee.
</rant>
Dan
Hi nachodog,
> So close. . . I installed DarwinPorts. Should I go to any special
> directory in the terminal?
>
> Here is what I ended up with. . .
>
>
> ndog:~ ndog$ sudo port install htmldoc
> Password:
> sudo: port: command not found
> ndog:~ ndog$
I think port is usually installed in /opt/local/bin, which isn't on
the root path. Try:
sudo /opt/local/bin/port install htmldoc
If that doesn't work, the following command will search for port:
find / -name port -print
Later,
Chris.
P.S. You'll probably need to add /opt/local/bin to your path, as
everything DarwinPorts installed is put there. I think.