When I validate a syntax, textmate send me the following message:
Please install PyChecker or PyFlakes for more extensive code checking.
Syntax Errors...
Only say the line of the error. But not which is this.
I already downloaded pychecker and pyflakes, but I didn't find the
way to install in textmate to cheking my code.
Anybody knows how to install this.
On Jun 21, 2006, at 3:18 AM, textmate-request(a)lists.macromates.com
wrote:
> Mailing list subscription confirmation notice for mailing list
> textmate
>
> We have received a request from 201.124.204.149 for subscription of
> your email address, "simonglez(a)yahoo.com.mx", to the
> textmate(a)lists.macromates.com mailing list. To confirm that you want
> to be added to this mailing list, simply reply to this message,
> keeping the Subject: header intact. Or visit this web page:
>
> http://lists.macromates.com/mailman/confirm/textmate/
> 184c6a1473362f87febad79d52838a093629e38f
>
>
> Or include the following line -- and only the following line -- in a
> message to textmate-request(a)lists.macromates.com:
>
> confirm 184c6a1473362f87febad79d52838a093629e38f
>
> Note that simply sending a `reply' to this message should work from
> most mail readers, since that usually leaves the Subject: line in the
> right form (additional "Re:" text in the Subject: is okay).
>
> If you do not wish to be subscribed to this list, please simply
> disregard this message. If you think you are being maliciously
> subscribed to the list, or have any other questions, send them to
> textmate-owner(a)lists.macromates.com.
>
I've just seen the TM screen cast on blogging, so I thought I'd try
the new tool. I've configured so that it has my WP blog URL, when I
try to fetch the Posts I get:
/usr/lib/ruby/1.8/net/protocol.rb:21:in `require': No such file to
load -- socket (LoadError)
from /usr/lib/ruby/1.8/net/protocol.rb:21
from /usr/lib/ruby/1.8/net/http.rb:28:in `require'
from /usr/lib/ruby/1.8/net/http.rb:28
from /usr/lib/ruby/1.8/xmlrpc/client.rb:281:in `require'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:281
from /Applications/Tools/TextMate/TextMate.app/Contents/
SharedSupport/Bundles/Blogging.tmbundle/Support/lib/metaweblog.rb:
1:in `require'
from /Applications/Tools/TextMate/TextMate.app/Contents/
SharedSupport/Bundles/Blogging.tmbundle/Support/lib/metaweblog.rb:1
from /Applications/Tools/TextMate/TextMate.app/Contents/
SharedSupport/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:3:in
`require'
from /Applications/Tools/TextMate/TextMate.app/Contents/
SharedSupport/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:3
from /tmp/temp_textmate.8vs4g5:2:in `require'
from /tmp/temp_textmate.8vs4g5:2
Any suggestions? many thanks
regards, Jonathan
hi,
I am trying to convert Markdown syntax to LaTex, using MultiMarkdown in
TextMate via the Markdown bundle menu, and am getting a parsing error.
With the following simple Markdown example:
> This is a test.
>
> This is another pp.
..I get exactly what I expect if I use MultiMarkdown (via the bundle
dropdown menu) to convert this text to HTML or to RTF, and everything works
fine. However, when I try to convert the text above to LaTex (which is my
ultimate goal here), I get the following error:
> -:3: parser error : Extra content at the end of the document
> <p>This is another pp.</p>
> ^
> unable to parse -
>
Various little tweaks like adding/removing extra newlines at the end (or
adding a section heading at the beginning) made no difference.
I am new to TextMate/MultiMarkdown -- there may be some step I'm skipping or
something obvious I'm doing wrong?
thanks,
Amy
Hi,
I am a BBEdit convert. I must be doing something wrong when I select
text and then expect to move it by mousing-down on the new selection
and moving the cursor. Is this posted in a AQ somewhere?
Thank you!
Art
It seems I only ever speak up to complain. :) So, let me assure you:
I love TextMate beyond all reason.
And now, the bug:
When I run any of the blogging scripts, such as "Fetch Post," I get
this prepended to the file:
> 2006-06-20 17:54:11.197 CocoaDialog[24277] [Amendment] Loaded
> 2006-06-20 17:54:11.575 CocoaDialog[24277] CFLog (21): Error
> loading /Volumes/Data/Users/username/Library/QuickTime/DivX
> 5.component/Contents/MacOS/DivX 5: error code 4, error number 0
> (Library not loaded: /Library/Application Support/DivXNetworks/
> liblame3.92.dylib
> Referenced from: /Volumes/Data/Users/username/Library/QuickTime/
> DivX 5.component/Contents/MacOS/DivX 5
> Reason: image not found)
> 2006-06-20 17:54:11.579 CocoaDialog[24277] CFLog (21): Error
> loading /Volumes/Data/Users/username/Library/QuickTime/DivX
> 5.component/Contents/MacOS/DivX 5: error code 4, error number 0
> (Library not loaded: /Library/Application Support/DivXNetworks/
> liblame3.92.dylib
> Referenced from: /Volumes/Data/Users/username/Library/QuickTime/
> DivX 5.component/Contents/MacOS/DivX 5
> Reason: image not found)
> 2006-06-20 17:54:16.685 CocoaDialog[24290] [Amendment] Loaded
> 2006-06-20 17:54:17.083 CocoaDialog[24290] CFLog (21): Error
> loading /Volumes/Data/Users/username/Library/QuickTime/DivX
> 5.component/Contents/MacOS/DivX 5: error code 4, error number 0
> (Library not loaded: /Library/Application Support/DivXNetworks/
> liblame3.92.dylib
> Referenced from: /Volumes/Data/Users/username/Library/QuickTime/
> DivX 5.component/Contents/MacOS/DivX 5
> Reason: image not found)
> 2006-06-20 17:54:17.103 CocoaDialog[24290] CFLog (21): Error
> loading /Volumes/Data/Users/username/Library/QuickTime/DivX
> 5.component/Contents/MacOS/DivX 5: error code 4, error number 0
> (Library not loaded: /Library/Application Support/DivXNetworks/
> liblame3.92.dylib
> Referenced from: /Volumes/Data/Users/username/Library/QuickTime/
> DivX 5.component/Contents/MacOS/DivX 5
> Reason: image not found)
(Note: I have my home folder in a separate volume named "Data", with
NetInfo edited to point at the proper path; until now, this hasn't
caused a problem. The exact path is munged for privacy purposes.)
This all gets prepended to the text file when I post, as well. But
_not_ into the blog post itself, for which I am grateful. :)
When I drag an image into the blog post, I get this:
> 2006-06-20 18:00:44.946 CocoaDialog[24722] [Amendment] Loaded
> 
My initial guess is that some kind of debugging/logging thing is
tripping me up. But who knows?
I'm running today's bleeding edge build.
Can anyone help? Besides this minor inconvenience, this is a dream
come true.
--
Josh DiMauro
josh(a)metacarpal.net
http://blog.metacarpal.net
I just watched the fantastic screencast and got an immense desire to
try it out. Alas, when I try to fetch posts I get this:
/usr/lib/ruby/1.8/xmlrpc/client.rb:535:in `do_rpc': HTTP-Error: 404
(RuntimeError)
from /usr/lib/ruby/1.8/xmlrpc/client.rb:409:in `call2'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:399:in `call'
from /Users/haris/Library/Application Support/TextMate/Bundles/
Blogging.tmbundle/Support/lib/metaweblog.rb:31:in `getRecentPosts'
from /Users/haris/Library/Application Support/TextMate/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb:542:in `fetch'
from /Users/haris/Library/Application Support/TextMate/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb:541:in `popen'
from /Users/haris/Library/Application Support/TextMate/Support/lib/
progress.rb:11:in `call_with_progress'
from /Users/haris/Library/Application Support/TextMate/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb:541:in `fetch'
from /tmp/temp_textmate.Eq92Lq:3
Any thoughts on how to troubleshoot this?
Haris
Never really use the "Paste Line to Paste Bin" command, but after
noticing the blog entry (and how much it's improved lately) I figured
I'd give it a shot. Not working quite right, though--it looks like
something is appending "1" to the URL for the paste.
I highlight some text, select the command, and whether I choose "Copy
to Clipboard" or "Open in Browser," I get the same URL: <http://
pastie.caboo.se/15121>, rather than the correct <http://
pastie.caboo.se/1512>.
Any ideas?
--
Chris Biagini
http://assortedgeekery.com/
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Just a quick note before I head out on a camping trip. I have added
rudimentary support for user-defined tab commands in the GTD bundle.
To use them, set up the contexts.gtd file as before, and them enter
the command as:
xx @@ [tab]
Where xx is the user -defined trigger and @@ is the GTD tab trigger.
As always, please send me feedback. Thanks.
Alaskamike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFEl06Q4oDM7Rgs0h0RApixAJ458N8mcw0eZUbccjj8Gb5HUjQJTQCaA2Ah
kGKhvWlsmFjrCWZoWcY3Bxo=
=yU1F
-----END PGP SIGNATURE-----
Now, I'm finding it hard to determine which list is more dynamic,
which one his the highest traffic / better signal-to-noise ratio,
TextMate-users or emacs-devel....
But this really drew my attention:
http://www.emacswiki.org/cgi-bin/wiki/rails.el
The Emacs rails elisp package includes, quote, "TextMate-like
snippets (snippets.el)"...
There's two conclusions I draw here:
1. Emacs, as the multi-headed, universally-powerful, endlessly-
extensible, despairingly-complex beast of an editor that it is, is
adapting, no doubt successfully, to the agile approach to Rails
programming. And "that screencast" must have had an impact.
2. TextMate is evolving beyond its niche - when a top hacker's tool
like Emacs emulates one of your features, this is a sign that you're
doing something right. So congratulations to Allan and to everybody
on this list! Emulation is the best possible display of respect.
Another topic which has been cropping up lately, and which you no
doubt have thought about it (somewhere in the back of your brains,
when not too busy hacking at this or that bundle) is the following:
How can a resolutely closed-source application like TM attract such
an open-source-like community environment? Does it have anything to
do with software architecture (a closed framework with an open
approach to extensibility through bundles), or with Allan's social
skills?
I suppose one day we'll be talking about this here on the list, once
TextMate moves ahead a couple of steps more and becomes *the* Mac
editor.
Just my couple of hundred euros.
Best,
Kamen
------------------------------------
Kamen Nedev
c/Pelayo Nº38, 5º Izda.
28004 Madrid
España
(+34) 649 77 80 37
kamennedev(a)gmail.com
http://emitmedia.blogspot.comhttp://emit-es.blogspot.comhttp://emit.omweb.com
Hello,
I'm not exactly sure if that's what the menu's called, but I'm
referring to the one that pops up when you hit Ctrl-Shift-Opt-?, as
in ⌃⌥⇧P, and lists all the language grammars starting with P.
Anyway, I always used to move to the arrow keys to select the
language. Now that I think about it I probably could have typed the
first few chars to get where I wanted, but having the number
shortcuts is awesome.
Thank you Allan, for continuing to make TextMate the best text editor
on any platform. CVS support be damned! ;-) Keep adding the small but
useful features like this one and you'll keep your loyal customers
thrilled about TextMate. Like I recently blogged about Apple, it's
the excruciating attention to the smallest, seemingly unimportant
details that really make me love something. I'm sure many others feel
the same.
The major features like snippets are easy to get used to and take for
granted, and will certainly be mimicked. Your innovative features and
attention to detail will set TextMate apart even when the prominent
features are copied. This is easily the best €40 I've spent on
software. It was a steal. Thanks again!
Sami
I'm running latest cutting edge build, 1112. Setup Blog works fine,
but nothing happens when I attempt to retrieve or post to blog. Also,
when I go to Blogging help, I get: "/bin/bash: line 83:
SmartyPants.pl: command not found"
Any Ideas what the problem might be?
I keep having intermittent problems with bundles that use ruby
scripts. I get errors along the lines of:
> /tmp/temp_textmate.gD8qB9:11:in `require': No such file to load --
> erb (LoadError) from /tmp/temp_textmate.gD8qB9:11
Any clue on the cause?
-ryan
When trying to use this bundle to "Fetch Post", the rb process get's
stuck trying to open a cocoa dialogue window and when I force quit
the rb process, the following message is returned repeatedly in the
open text document:
2006-06-05 22:42:18.007 CocoaDialog[6820] Unknown dialog type secure-
standard-inputbox. Available types:
fileselect, msgbox, yesno-msgbox, ok-msgbox, textbox, progressbar,
inputbox, standard-inputbox, dropdown, standard-dropdown.
Anybody have a solution?
I was getting tired of waiting to fire up Transmit every time I
wanted to edit a file with TextMate over FTP, so I decided to create
my own modest script, I decided to post it here just in case anybody
else found it useful
--- Start "ftpmate"
#!/usr/bin/env bash
REMOTE_FILE=$(echo $1 | awk -F '/' '{print $NF}')
LOCAL_FILE="/tmp/"$REMOTE_FILE
CD="/Applications/TextMate.app/Contents/SharedSupport/Support/bin/
CocoaDialog.app/Contents/MacOS/CocoaDialog bubble --background-top
EFEFEF --background-bottom CACACA --icon-file /Applications/
TextMate.app/Contents/Resources/TextMate.icns"
ftp -o $LOCAL_FILE ftp://$1
if [[ $? = "0" ]]; then
MD5_OUT=$(md5 $LOCAL_FILE)
mate -w $LOCAL_FILE
if [[ "$MD5_OUT" != "$(md5 $LOCAL_FILE)" ]]; then
ftp -u ftp://$1 $LOCAL_FILE
if [[ $? = "255" ]]; then
$CD --title "FTPMate" --text "$REMOTE_FILE updated" &
else
$CD --title "FTPMate" --text "Unable to update $REMOTE_FILE" &
fi
fi
rm -r $LOCAL_FILE
else
$CD --title "FTPMate" --text "Unable to retrieve $REMOTE_FILE" &
fi
--- End
usage : ftpmate [user[:password]@]host[:port]/path
The script attempts to fetch the file and writes it to /tmp/ where it
is opened by TextMate, after the 'mate' process has ended a checksum
is compared to the pre-opened checksum and if it has changed then the
file is uploaded.
I decided to use the bubble requester in the CocoaDialog app because
I am calling the script outside a shell session and want to know the
file had successfully been uploaded.
Likewise I also made a script using SCP instead of FTP
--- Start "scpmate"
#!/usr/bin/env bash
REMOTE_FILE=$(echo $1 | awk -F '/|:' '{print $NF}')
LOCAL_FILE="/tmp/"$REMOTE_FILE
CD="/Applications/TextMate.app/Contents/SharedSupport/Support/bin/
CocoaDialog.app/Contents/MacOS/CocoaDialog bubble --background-top
EFEFEF --background-bottom CACACA --icon-file /Applications/
TextMate.app/Contents/Resources/TextMate.icns"
scp $1 $LOCAL_FILE
if [[ $? = "0" ]]; then
MD5_OUT=$(md5 $LOCAL_FILE)
mate -w $LOCAL_FILE
if [[ "$MD5_OUT" != "$(md5 $LOCAL_FILE)" ]]; then
scp $LOCAL_FILE $1
if [[ $? = "0" ]]; then
$CD --title "SCPMate" --text "$REMOTE_FILE updated" &
else
$CD --title "SCPMate" --text "Unable to update $REMOTE_FILE" &
fi
fi
rm -r $LOCAL_FILE
else
$CD --title "SCPMate" --text "Unable to retrieve $REMOTE_FILE" &
fi
--- End
usage : scpmate [user@]host:path
I love textmate, it's always lacked in CVS support, you add features
that are the easiest to add like subversion or other weird libraries.
But not the ONE thing that is a show stopper for almost everyone.
Every office USES CVS? Why can't this be the #1 priority of textmate?
Textmate as an editor is nothing without CVS support. I hate having
to use BBedit, to browse CVS, or textwrangler, then switching back to
textmate.
The one and only thing the developers should focus on right now is.
CONNECTIVITY.
who agrees with me? we your customers want CVS support, and SFTP,
FTP, and networked support, and not through some third party client.
You want to make textmate the worlds best editor? Add in features
that crappy clients like eclipse or zend developer environment have,
that let you browse and commit to the CVS trunk, and roll back.
Anyone who wants, and thinks this is the most important feature of
textmate (aside from being a text editor) please comment and show
your support. I'm personally willing to donate an extra $500 for
seemless CVS intergration, not that crappy bundle that's going around.
As a user interface designer, I could even help you design the
sidebar for browsing CVS, subversion, and feature sets. But everyone
is EDITING files online, it shouldn't be hard to intergrate, there
are SO many free libraries for unix that you can use!!! especially
for the sftp, and so forth, you don't have to re-invent the wheel.
Pleeeeeeease..
Best Regards your loyal customer,
court kizer
The LaTeX snippets for sections, when they contain a label, look like
this:
\section{${1:section name}}\label{sec:${2:${1/(\w+)|\W+/(?1:\L$0:)/g}}}
Somehow (I don't get the syntax for this yet) the $2 part strips non-
word characters from $1. Is it also possible to do transformations
like replacing umlauts äöü with aou?
Thanks,
Dan
…gives me the following on Konsole:
2006-06-19 07:56:01.918 TextMate[13929] removeBundleItem: delete /
Users/dekay/Library/Application Support/TextMate/Bundles/
daniel.latex.tmbundle/Snippets/\subsubsection .. (ssub).plist (Sub
Sub Section (ssub)), success YES
2006-06-19 07:56:01.919 TextMate[13929] removeBundleItem: delete /
Users/dekay/Library/Application Support/TextMate/Bundles/
daniel.latex.tmbundle/Snippets/\subsubsection .. (ssub).plist (Sub
Sub Section (ssub)), success NO
Is it normal that a delete action creates two lines of output like this?
Dan
Hello. I'm interested in modifying the LaTeX Article template. The
Article template (from Edit Templates) uses a perl one-liner to
import a file called "article_in.tex," where, I assume, most of the
interesting stuff lives. I can't for the life of me find
"article_in.tex." Where is it? (And the metaquestion, I guess, is
"if I want to make substantive changes to the latex article template,
is editing article_in.tex in fact the right thing to do?)
this is the default latex article template code, BTW:
if test \! -e "$TM_NEW_FILE"; then
TM_YEAR=`date +%Y` \
TM_DATE=`date +%Y-%m-%d` \
TM_USERNAME=`niutil -readprop / /users/\$USER realname` \
AUTHOR_ADDR=$(RA="defaults read AddressBookMe"; cat <<EOA
`$RA FirstName` `$RA LastName`
\\\\ `$RA StreetAddr1`
\\\\ `$RA StreetAddr2`
\\\\ `$RA ZipPostal` `$RA City`
\\\\ `$RA Email`
\\\\ http://www.xxx.yyy/mysite.html
EOA) \
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' \
< article_in.tex > "$TM_NEW_FILE"
fi
thanks for your help.
--andreas
I just uploaded a new GTD sort command as part of the GTD bundle.
The code may not be pretty, but I think it works. To use it, you
need to create a contexts.gtd file in your GTD project. This file
holds the contexts that the sort function uses to sort a file. There
are several items in the file that don't do anything yet, but I'm
hoping to keep the file stable as I add functionaility. As always,
feedback is encouraged!
Alaskamike
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I am working on a command to sort my GTD list by context. The
problem I have is that if I have not saved the file, the command
sorts the saved version of the file instead of what's currently in
TextMate. How do I select the current file instead of the saved
file? Thanks.
Mike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFElJFT4oDM7Rgs0h0RAonEAJ4pIraMScWW5vqOBL9izTSY9oY0JwCguPB1
Pe6tfT9vMkfEpKBFKbQQ4IA=
=czuY
-----END PGP SIGNATURE-----
Dear All,
I get the following error when running Convert Document / Selection
to LaTeX on a MultiMarkdown document:
/Library/Application%20Support/TextMate/Bundles/Markdown.tmbundle/
Support/xhtml2latex.xslt:829: parser error : StartTag: invalid
element name
<<<<<<< .mine
^
/Library/Application%20Support/TextMate/Bundles/Markdown.tmbundle/
Support/xhtml2latex.xslt:829: parser error : StartTag: invalid
element name
<<<<<<< .mine
^
/Library/Application%20Support/TextMate/Bundles/Markdown.tmbundle/
Support/xhtml2latex.xslt:829: parser error : StartTag: invalid
element name
<<<<<<< .mine
^
/Library/Application%20Support/TextMate/Bundles/Markdown.tmbundle/
Support/xhtml2latex.xslt:829: parser error : StartTag: invalid
element name
<<<<<<< .mine
^
/Library/Application%20Support/TextMate/Bundles/Markdown.tmbundle/
Support/xhtml2latex.xslt:829: parser error : StartTag: invalid
element name
<<<<<<< .mine
^
/Library/Application%20Support/TextMate/Bundles/Markdown.tmbundle/
Support/xhtml2latex.xslt:829: parser error : StartTag: invalid
element name
<<<<<<< .mine
^
/Library/Application%20Support/TextMate/Bundles/Markdown.tmbundle/
Support/xhtml2latex.xslt:829: parser error : StartTag: invalid
element name
<<<<<<< .mine
^
compilation error: file /Library/Application%20Support/TextMate/
Bundles/Markdown.tmbundle/Support/xhtml2article.xslt line 38 element
import
xsl:import : unable to load /Library/Application%20Support/TextMate/
Bundles/Markdown.tmbundle/Support/xhtml2latex.xslt
Any ideas? Thanks.
All the best, Mark
I've been wanting to try my hand at bundle writing for a few weeks,
and this morning I began tinkering with what could possibly grow into
a reStructuredText bundle.
The first thing I attempted to figure out was how to recognize the
section titles in reStructuredText. From the language specification
(http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.htm):
Sections are identified through their titles, which are marked
up with adornment: "underlines" below the title text, or
underlines and matching "overlines" above the title. An
underline/overline is a single repeated punctuation character
that begins in column 1 and forms a line extending at least as
far as the right edge of the title text.
For example:
A Title
-------
=============
Another Title
=============
Not a title
-----
==================================
Don't think this is a title either
==================================
It isn't clear to me how to capture these patterns with the language
grammar match rules, or indeed if it is even possible with the
current TextMate toolset. It doesn't seem like 'match' can work for
a multi-line pattern such as any of the above, and I haven't figured
out how one can use 'begin/end' to match a 2 or 3 line rule
(underline or overline/underline) but exclude things which don't match.
Is it possible? I freely admit that it's been quite a few years
since I've taken a compilers class (or tried to do a language-parsing
type thing), so I apologize if I'm missing something obvious.
The Markdown language (which I've never personally used) has a
similar underline mechanism for specifying headings, but it looks
like the Markdown TextMate bundle heading rule only captures the
underline and not the heading text. For example, a Markdown heading
and scopes:
A heading <= meta.paragraph.markdown, text.html.markdown
========= <= markup.heading.1.markdown, text.html.markdown
Thanks for any insight!
--
Matt Anderson
Is it possible to add entries to or edit the menu that appears when
one right clicks or control clicks in the text editing area of the
TextMate window?
I'd like to see a "Look [highlighted word] Up in Dictionary" command
like that found in Safari / TextEdit / Mail / etc under Tiger. I
know that there is a TextMate (applescript) command mentioned on the
wiki which can do something similar with a key equivalent, but I'm
used to the consistent interface to do this across these other
programs, and I'd love to have the same interface in TextMate.
Thanks!
--
Matt Anderson
e.g. for enum inserts the following:
\begin{enumerate}{:\label{enu:\}}
\item
\end{enumerate}
please note the ":" which are not very useful and make LaTeX go angry
at you.
Please change this line in the snippet:
zeroLineToPrint = "\\begin{#{name}}{$1:\\label{#{labPrefix}:$2\\}}"
to:
zeroLineToPrint = "\\begin{#{name}}{${1:}\\label{#{labPrefix}:$2\}}"
Dan
hiya (aka, howdy)
The CSS language syntax it for full css, with the tags and classes
and stuff.
CSS embedded into html tags with the style="" business isn't scoped
all fancy at all.
You can't just import the normal CSS language into there because it
expects all of the tags and curly brackets craziness.
My plan is to split out the part of CSS that could be imported into
HTML, the actual rules part. Then, import that into the CSS language
and the HTML language.
Is there a better way to do this?
I think it'd be silly to not DRY it up properly, and i'm sick of not
having all fancy CSS stuff in my style="" attributes.
thomas Aylott—subtleGradient
Hello,
I just moved from a powerbook to a macbook (running OSX 1.4.6) & I
now cannot get Texniscope to auto open the file produced by a latex
compilation. (this was working with the powerbook).
I have the enviremental variables pointing to Texniscope as before.
My latex compilation log shows the messages below:
"
Output written on ethics_new.pdf (11 pages, 150192 bytes).
ethics_new.log
Found 0 errors, and 16 warnings in 0 runs
2006-06-16 04:26:54.611 open[4049] Couldn't open file: /Users/Xolani/
Documents/ethics_new.pdf "
running textmate with the defailt viewer works fine.
Just to see if that was the problem, I changed the settings in the
Texniscope preferences to point to
/usr/local/bin:/usr/local/teTeX/bin/i386-apple-darwin-current
rather the the "powerpc" reference in the default setup to see of
this would help but to no avail. (my tetex is bin is i386)..
Also I should note that typing
open -a TeXniscope ethics_new.pdf
at the terminal opens the pdf file.
Any assistance would be appreciated.
danstan
I bet someone here knows how to fix this! :)
My HTML code before:
. . .
</div>
<!-- A Comment about Some_New_Thing -->
<div id="Some_New_Thing">
. . .
After running Tidy, I get this:
. . .
</div><!-- A Comment about Some_New_Thing -->
<div id="Some_New_Thing">
. . .
I want to KEEP my comments on their own lines, not have all white
space between the comment and whatever proceeds it deleted.
How do I do that?
eo
Hey,
I was just thinking it would be cool if the Go To Symbol action
worked a bit like Quicksilver .. of sorts.
Like, let's say you knew the 'symbol' (function) you wanted to jump
to in a particular function, you could do something like:
Cmd-T to bring up the Go To File dialog.
1) Locate the file you like w/ a few key strokes
2) hit right-arrow (or some other trigger)
2.5) a side window pops up (like when you hit the right arrow in
quicksilver) with a list of the symbols in the file,
3) bang out a few keystrokes to find the right symbol.
Taking that one step further.
Let's say your cursor is inside a symbol (function) of that is found
in the file you are jumping to, it would be cool if that was the
default selected symbol in the right-pop-out window that comes out.
Consider this situation
I'm working in my Book class and my cursor is between l and C i
getPostalCode():
// .. code
this.publisher.getPostalCode();
// ... code
I'm thinking -- what the heck does 'getPostalCode()' do?:
1) Cmd-T
2) type 'pub' (to get to Publisher file)
3) hit right arrow: a blow out window pops up to the right, with the
symbols parsed from Publisher
3.5) TextMate realizes I'm in the getPostalCode method, since my
cursor is there, and has that symbol highlighted first, so I can just
hit enter to jump to that part of the file, or
4) type 'liq' to jump to the 'liquidate()' symbol in Publisher class
(since I know what getPostalCode does)
Or you can just do Cmd-T then wait for file to open and do cmd-shift-
t as it stands now.
Just thinking.
-steve
The GTD bundle has been upgraded, with a new detailed BUY command and
a basic language syntax that allows the bundle to play better within
TextMate. If you try it, please let me know what you think. Thanks
Alaskamike
Forgive this question as I am both a newbie and NOT a computer
programmer, yet love Textmate.
When I try to generate a TODO list, I get this error:
/tmp/temp_textmate.oZHMUi:11:in `require': No such file to load -- erb
(LoadError) from /tmp/temp_textmate.oZHMUi:11
Anyone know what is going on?
Thanks.
--
Lawrence Goodman
lawrencegoodman(a)gmail.com
Check out my blog: http://goodmanorama.blogspot.com
Hi TM users,
I have a strange behavior with the following command (with revision
1070 under Tiger) :
Save: Nothing
Command(s):
#!/bin/sh
echo "toto"
Input: Selected Text or Line
Output: Show as Tool Tip
Activation: (
Scope Selector: <none>
As a result, this command would show a "toto" tooltip (as expected)
but would also remove from the document the '(' that activated the
command !?
Regards,
Sylvain
The best way to describe my problem is it feels like my keys aren't
working correctly. When I type, sometimes I have to push a key or
space bar several times to have the character appear on the screen.
The problem doesn't seem to have a logic— i.e. sometimes the space
bar works and sometimes I need to press it several times.
I have only experienced this problem in textmate.
I am using Textmate Version 1.5.1 (1070)
I have experienced this problem in the markdown and plain text bundles.
I have restarted the computer, but still have the problem.
Has anyone experienced this?
Thanks,
Steve
Allan,
while we all know about Textmate's performance problems with very
large files, would you mind adding some quick check before opening a
file and just displaying a dialogue that would warn of the file's
size? (you can make this a pref setting for those who don't want this
because they feel the need to be masochistic).
Dan, who accidentally tried to open 100 MB!! worth of log files
created by a stupid non-working google browser synch extension!
Hi everybody,
I'm working on editor highly inspired by TextMate for MS Windows
(codename Intype). Now it can do the TM's snippet magic, commands and
most of the text editing features of TM. Intype is using LUA or Ruby
scripts instead of shell commands (no fork on Windows).
I just want to ask these two questions:
(1) Do you know about somebody that is working on TextMate porting to MS
Windows?
(2) ...or somebody who is creating an editor inpired by TM?
Regards,
Martin
Guys,
as I am re-opening my list of blogs in endo I am looking for some
worthwhile blogs to read, preferably blogs where textmate gets
mentioned in useful ways as well as ruby…
any suggestions?
Dan
Hello there,
I've found a bug while I was thinking about requesting a feature. So
what's the bug? Steps to reproduce:
1. Make sure you have a pair of curly brackets in a file
2. Make sure only one of them is visible and the other is hidden (ie
you've scrolled so much down the document that the starting bracket
is not visible)
3. Position your cursor before the curly bracket and then move the
cursor after the bracket. You will see how the whole editing area
flashes
While I'm at this may I ask if it's possible to highlight the
matching bracket if your cursor is either before/after a curly
bracket because currently I have to go back then forwards to see the
matching bracket. I've also attached a testcase file which you can
use to check if you can reproduce this bug.
Regards,
Milen
PS. This also happens in Xcode.
First thanks to everyone who replied to my previous question.
I'm noticing a very odd behavior when I try to delete whitespace
between two tags. Most (if not all) other text editors will select
just the whitespace when I double-click on the whitespace area.
However TextMate likes to also select the closing/opening bracket/
braces - which of course I don't want to delete.
So if I wanted to delete the space between <p>Hello </p>
I can't double-click on the whitespace between "Hello" and "</p>"
without TextMate also selecting the "</" in the closing "</p>" tag.
Another example is if I have a closing brace "}" that is indented too
much and I want to line it up with its opening brace, I can no longer
double-click on the whitespace to the left of the brace without the
brace also being selected. In fact I wasted 15 minutes or so trying
to figure out how I broke a PHP script before it dawned on me that
when I deleted the whitespace I also deleted a brace.
Is there any preference or setting that changes this odd behavior?
I'm assuming TextMate does this for a reason, but I'm scratching my
head as to how this editing mode would be useful.
thanks in advance!
brian
enjoy
Nib Hacking!
Just a minor change, but it makes it feel like youre using version
1.9 or something.
you'll never guess where to get the hacked nibs ;)
It uses the background color of the mail.app left column inner-tab
thing.
textmate_project_original.png (click to see larger)
textmate_project_modified.png (click to see larger)
thomas Aylott—subtleGradient
When invoked without a selection, the HTML Wrap Selection as Link
snippet doesn't select the placeholder display text. Adding a second
tab stop to the command could select the placeholder display text but
would add an extra tab for those accustomed to using the snippet with
a selection.
Two questions:
1. is this a worthwhile change (or am I just looking for problems
where none really exist)?
2. Is there a way to make the second tab-stop conditional on whether
any text was selected?
Possible modification (added tab stop to the last line):
<a href="${1:`
# if the clipboard contains a single line, let’s use that
if [[ $(pbpaste|wc -l) -eq 0 ]]
then pbpaste|sed 's/&/&/g'
else echo http://site.com/
fi
`}">${2:${TM_SELECTED_TEXT:Link text...}}</a>
The current last line is:
`}">${TM_SELECTED_TEXT:Link text...}</a>
Hi everyone,
I am using markdown to write the texts I write from time to time.
Nothing official only internal stuff.
In order to have nice printouts I include pictures as pdfs (if there
is a better solution please let me know)
since this gives me a nice html of my texts (Safari supports pdf as
pictures) and the print quality is perfect
as well.
But I cannot use the command “convert document to pdf” since the
Textmate internal html viewer does not
support pdfs. So the questions are
1) Is there a better way to implement “printable” pictures?
2) how to workaround the “convert document to pdf” bug?
Thanks
Christoph
~~~~~
Christoph Biela
cbiela(a)gmail.com
Hi everyone,
thanks to Haris, I discovered that the preview of markdown works with
pictures in the pdf format but
the multimarkdown does not.
Does anybody have an answer for this?
Christoph
~~~~~
Christoph Biela
cbiela(a)gmail.com
Howdy.
Enjoy instant-ish feedback!!!!1!
http://textmate.svn.subtlegradient.com/Support/bin/
42_TextMate_live_preview.rb
Put the full path to that file in the Pipe text through box in the
Web Preview Window

For CSS, it'll ask you to open a file and paste a test-url in there.
It completely replaces all links to css files with the css you're
previewing, AS YOU TYPE!!!1!
For HTML, it inserts a base tag with the TM_PROJECT_SITEURL
For Rails Views, it redirects the page to the saved version via your
TM_PROJECT_SITEURL. Just try it out, you may hate it ;).
For markdown and textile, it renders it as markdown or textile. Never
worry about changing your filter script!
For all other source files, it does a live diff between the saved and
unsaved version. No coloring of anything fancy, but handy (yes, i
know all about the diff bundle).
For everything else, it does nothing special, yet.
I tried t do this a while ago but i couldn't make it work. Turns out
that only a few TM specific variables were being set. Allan has since
fixed that.
Personally, I think this script is really stupid and unnecessary. But
extremely handy as a stopgap until we get something that is supposed
to replace this.
Basically, if we had a way to make ANY command rerun itself or
refresh after change, then this filter would be totally unnecessary
and we could make each of these things a separate refresh-after-
change command. Allan, add it to the list?
enjoy
Also! If anybody has any improvement suggestions, suggest away! I'm
all for it. I only knocked this thing together last night when i
should have been sleeping. Most things are not done the best way.
Feel free to improve or replace. Enjoy!
thomas Aylott—subtleGradient
howdy.
As you've all been forced to be aware, i have a subversion repo with
all of my personal textmate stuff in it.
I love the new way that bundles get textmate specific names.
I love how you can get a nice clean version of something by dragging
it to the finder.
I love being able to use almost any character you can think of in
bundle item names.
BUT!
Using crazy characters in the names can potentially upset subversion.
and since my svn server runs on a linux box, it can get even more
upset when i try to do a checkout there.
SO
Can we change the way it makes the actual file system file names to
not use crazy characters even though they are in the names of bundle
items themselves?
I've been doing it manually for now. I could write a script or
something to do it, but i'm lazy (aka busy).
Personally, i think it should be the default behavior, but it could
just as easily be done as a command.
Has anyone else had a problem with this?
thomas Aylott—subtleGradient
Just look at the pictures.
All the hacks are available as zips at
http://textmate.svn.subtlegradient.com/Hacked%20Nibs!/
subtleGradient — Hacked TextMate Nibs — cuter drawer 2
more tweaks and all new images for the drawer.
subtleGradient — Hacked TextMate Nibs — Mail Style Inner Files Column
Following Allan's comment on the mailing list. I tried to see if I
could get TextMate functioning without a drawer. AKA, with one of
those Mail.app style inner drawer things. Yep, it works. Kindof.
There are a lot of problems with this method that i can't fix in
interface builder.
* The whole scrolling text view is too wide to fit properly so you
just can't see the right edge of your document.
* There's no shortcut for opening and closing the pane like you can
the drawer.
* If you close the pane by sizing it to 0px wide you lose the info
button.
There are probably way more problems with this, but here it is
anyway. Have fun.
Install the nibs by copying them into
/Applications/TextMate.app/Contents/Resources/English.lproj/
Install the tab images by copying them into
/Applications/TextMate.app/Contents/Resources/
You might want to make some backup
copies of the originals first.
Enjoy!
Email all complaints / suggestions / whatever to:
subtleGradient.com
oblivious, at ^
If this messes up your computer or burns your house down,
or kicks your dog, or in any way does anything at all or
doesn't... You are solely responsible for anything and
everything, and I am not. :P
thomas Aylott—subtleGradient
hi list,
I'm used to generate my grammar bundle item from a unix script and
then copy & paste the output in the bundle editor. As a lazy user,
and TM greatly helps me so, I feel like it would be kind if had the
ability to acquire my grammar's plist as the output of a script.
Sylvain
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Jun 11, 2006, at 6:23 AM, textmate-request(a)lists.macromates.com
wrote:
> On 9/6/2006, at 22:22, Christopher Fonnesbeck wrote:
>
>> I am wondering if it is possible to prevent TextMate from opening
>> documents from the previous session when the program is started.
>> It seems to do this by default, with no obvious setting to change
>> to prevent this.
>
> There is no such setting -- I can add a hidden setting, seeing how
> this is not the first mention of this request.
That would be great. I realize that lots of people like to have their
previous sessions saved, but when I just need to open textmate up
quickly, its nice not to have a bunch of files from a previous coding
session popping up.
Chris
- --
Christopher Fonnesbeck
+ Atlanta, GA
+ fonnesbeck at mac.com
+ Contact me on AOL IM using email address
- --
Christopher Fonnesbeck
+ Atlanta, GA
+ fonnesbeck at mac.com
+ Contact me on AOL IM using email address
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFEjBZvkeka2iCbE4wRAr27AJ9t3DLzcVtUMpwU/s+NYvx++NBAKwCfWPzJ
kSVWxc3YTZuN3f9XJwUz7a4=
=LE8z
-----END PGP SIGNATURE-----
Allan,
would it be possible to have
A) project / language / bundle dependent theme settings? Not all
themes work as beautifully with all languages (and I know you are
advising that themes only implement the most rudimentary things ;))
B) themes that only complement a basic theme (just like with css,
where you can override the standard behaviour with extra css
definitions inside the html). So, e.g. I want to use one of Thomas's
universal themes, but would like to add some snippets, some coloring
to my custom language grammars.
i.e. just some simple way to combine themes without going the plist-
editor route. Just add a preference of some sort of theme layering.
(similar to the system's language settings. chose the preferred
theme, but take items from a second or third theme if they have
scopes defined.)
C) and as a sidenote to B) an option for bundle developers to inject
certain stylings into a theme.
D) Maybe the ability to add emty lines before or after a scope? (I
know, I am getting way beyond simple here, and no rich text editing
is necessary). I am just thinking of certain block level elements
that would be nice to separate not only in col,or/background, but
also distance.
Dan
Is it me or this used to work :
I believe that I used to be able to use copy (with command-C) several
times in order to make a stack, then record a macro that used Paste
Previous (Command Shift V) in order to repeat a pattern using the
stack of copied items.
Well, ...this no longer works: the stack is not used when the macro
is played over and over.
I am wondering if it is possible to prevent TextMate from opening
documents from the previous session when the program is started. It
seems to do this by default, with no obvious setting to change to
prevent this.
Thanks for any hints,
--
Christopher Fonnesbeck
+ Atlanta, GA
+ fonnesbeck at mac.com
+ Contact me on AOL IM using email address
Hi everyone,
I find the ability to augment the standard set of word characters for
completion etc. in the TM prefs handy, but it would be even better if
this could be done specifically for certain languages/scopes. For
example, R commonly uses periods in variable/function names, so I want
them to be treated as one name, but when I switch to Rails I don't
want TM to complete a variable with a method name attached. Is there a
mechanism for this kind of specificity?
Thanks,
Jon
I'm not sure if the description describes this problem properly, I'm not
quite sure what's going on. This is not a priority issue for me, just
thought I'd bring it up...
I created a new text document.
I typed 'man sed'
I hit control r.
And the output was something like this:
man sedSED(1) BSD General Commands
Manual SED(1)
NNAAMMEE
sseedd -- stream editor
SSYYNNOOPPSSIISS
sseedd [--EEaann] _c_o_m_m_a_n_d [_f_i_l_e _._._.]
sseedd [--EEaann] [--ee _c_o_m_m_a_n_d] [--ff
_c_o_m_m_a_n_d___f_i_l_e] [--ii
_e_x_t_e_n_s_i_o_n] [_f_i_l_e _._._.]
DDEESSCCRRIIPPTTIIOONN
The sseedd utility reads the specified files, or the standard
input if no
files are specified, modifying the input as specified by a list of com-
mands. The input is then written to the standard output.
[...]
I'm not sure if the characters came across in this email the same as
they looked in TM. I'm guessing the control sequences that make bold
text in man pages are coming across as gibberish.
If I do `man sed | mate` in the terminal the outcome is the same.
Any ideas how to deal with this?
Q
I was wondering if there was a project scope that I could apply to
the Show TODO List command. I'd like to be able to only see the
FIXME, CHANGED and TODO tags from an open project.
Thanks,
Koray
The latest version of my bundle was created in one of the recent
higher-level builds, and I'm getting reports from users that when
opening the bundle in an older version of TextMate (948) the bundle
shows up completely empty.
This sounds like the result of the recent back-end changes. But I
know that many of the bundles have been updated to include groups.
Assuming this is not all just some crazy bug... I guess the real
question is:
Is it necessary for me to say that a particular version of a bundle
*requires* a particular version of TextMate?
If so, which build of TextMate is required to run which bundle versions?
~oliver
Hi all-
I've been using BSAG's Journal bundle (itself a markdown extension)
for a little while now, to keep a sort of snippet log, and I've put
together a quick command to search entries by keywords (I hacked up
the "Find in Document" command of the TM bundle). Keywords are marked
by brackets: [key1,key2,etc]. The command just finds given text and
shows the first line or so of the actual snippet entry, to give it
some context. It's very simple, but I've found it useful to quickly
find entries by keyword, so I thought I'd share it.
The journal bundle is here: http://www.rousette.org.uk/blog/archives/
2006/02/17/journal-textmate-plugin/
And my command can be downloaded here: http://textbench.com/tm/Find%
20in%20journal.tmCommand
Cheers-
-Alan
When invoking "Edit in TM" in some app (Safari, TextEdit, Yojimbo so
far), those apps stall and go play some beach ball with full CPU.
They must be force quitted.
But it works in TM Bundle Editor and Mail.app
I restarted, repaired permissions, removed all other Input Managers.
No go.
OS X 10.4.6
TM 1.5.1 (1070)
Am I the only one?
--
FredB
I could have sworn that there was folding in markdown before. Of
course there probably wasn't but now I need it. Any chance on folding
for markdown and the blogging bundles?
Robert
Hi,
I'm in a .rb file, which is a actually a rails file. However, I'm trying to
do 'mcc': migrate create column and it's not working in the .rb. If i try
ruby specific commands, I am successful. Can you manually assign bundles to
file extensions? It seems odd that the ruby bundle isn't assigned to the
.rb type.
Thanks
Sam
I've kept a brief user's log since switching to TextMate. It contains
bugs, suggestions, and hacks. Allen suggested I maintain a wiki page:
<http://macromates.com/wiki/Profiles/QuinnComendant>
(Allen: this is mostly for you ;-)
Q
Hi,
When I use the 'Post to Blog' function of the blogging bundle, the
Type is changed from 'Blog post (Markdown)' to 'Blog post (HTML)'.
That upsets the 'firstLineMatch' of the Blog (Markdown) syntax.
Gerd
Well, I just lost over an hour of work and I'd like to know what happened.
I was editing a long entry in a textarea field using the Edit in
TextMate thing. The connection to the server was lost, so I did a Save
As to make a local copy on my Desktop and continued working. The icon
for the new file appeared on my Desktop.
After a while, TM started beeping at me whenever I saved. Fearing the
something had gone wrong, I opened the file in TextEdit (it was still
open in TM). Everything was there, so I quit TextEdit and went back to
TM. Still getting a beep on every save, I decided to quit and relaunch
TM. As soon as I quit TM, the icon for the file disappeared from the
Desktop. When I relaunched TM, the file didn't even appear in the Open
Recent submenu.
Any ideas? I'm running Version 1.5.1 (1070).
--
Dr. Drang
hi there,
It is very handy to be able to have a line like
11.5/2.54
hit evaluate line and get
11.5/2.54 = 292.1
Currently if that line is reevaluated, it returns
11.5/2.54 = 292.1(standard_in) 1: parse error
=
My suggestion for the default behavior bundle, is that if the line
already contains an equals, eval the text in front and replace the
result.
That would be useful where one is playing with values in a formula
tim
Hello all,
I've been having some ideas about TM's project drawer/etc which came
up recently on the list. The first thing I want to say is don't
completely ditch the drawer - it's useful _sometimes_ but it doesn't
work for me most of the time. What I would like to see is something
like Mail.app's mailbox/folder pane which is embedded into the
application window. What I find really annoying about TM's "Go To
Symbol" and the symbol list in the status bar: it requires too many
clicks and it's not efficient. Let me demonstrate what I mean. Say
you're working on a .m file and you would like to change some method
in an external class which you're using in your current .m file. So
if you're going to use the status-bar symbol selection you would have
to click on the other file, click the symbol list and then select.
The alternative way would be to click on the other file and select
the symbol in the "Go To Symbol" panel. So you would need to perform
3 or 2 clicks respectively. And that is every time you would like to
quickly find a symbol in another file. Now imagine that you could
expand each file in the project pane and that it lists all the
symbols. You would of course need to click the triangle/arrow to
expand it but only once. After you've done it you can jump straight
to any symbol in the files you've expanded with _one_ click one.
Eclipse does this in a similar fashion - http://www.steema.com/
img_products/screenshots/tchjava/eclipse_teechartjava.png take a look
on the left pane how you can expand files.
Kind regards,
Milen Dzhumerov
Email: gamehack(a)1nsp1r3d.co.uk
Web: http://www.1nsp1r3d.co.uk/
I was just going through the blog and found this article on 'Code Sense'
http://macromates.com/blog/archives/2005/06/09/code-sense/
> …I’m currently working on a plugin API for plugins to show an
> unobtrusive completion menu below the text typed…
This just so happens to be the anniversary of that article and i was
wondering what's up. I saw the nib for this in textmate
'CompletionPopup.nib'
So... How do i use this thing? Or has it been abandoned for more
important things and will be finished later?
thomas Aylott—subtleGradient
/usr/local/bin/stakeout /usr/local/script/tmctags `find
$TM_PROJECT_DIRECTORY -name '*.as' | xargs echo` &
This command works fine in the terminal, but when I set it to a
command (with HTML output so as not to freeze the player) it never
terminates.
Any suggestions?
- Ben
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> >
> > On 5/6/2006, at 12:05, marios wrote:
> >
>
>> >> [...]
>> >> 1)How do I insert a snippet inside a snippet ?
>>
> >
> > Embedded snippets are presently not supported. They can be inserted
> > using key equivalents or the ?Select Bundle Item?? functionality of
> > latest cutting edge builds, but the tab triggers will not work inside
> > a snippet, nor will an inserted snippet, inside a snippet context,
> > merge the two ?tab chains.?
>
I finally managed to find a workaround,I understood about the key
equivalents.Currently I have an extra bundle , that consists of a couple
of macros and nested macros and a couple of snippets.
It only works, when I place the zero variable right after the last
variable(which in this case is also the first one) of the the root snippet.
Currently in the final Grammartech Bundle, I can generate the code
(thousands of lines) for The Texpattern Language Grammar just with three
different scoped key bindings,(Shift tab, tab, and shift enter)that
represent the tab stops to insert the values for the tags, and it will
loop back to the beginning of the routine for each tag. (fantastic).
And all that in only half an hour.(With either the txp wiki page or the
tag manual print next to me to insert the names , values and attribute
names at the appropriate placeholder tab stops.
Actually it took me more time, to figure that one out, than the Grammar
itself.
(I'll post it here, so you can take a look at it if you like)
I'm aware, that there a much better ways to do this, like a command
that uses a perl script for example, but I'm an absolute novice, when it
comes to that.
> >
>
>> >> 2)Key bindings
>> >>
>> >> After realizing that certain key bindings are lost after the previous
>> >> update, I am not able to use certain custom key bindings,
>> >> I'm not able to recall right now, which ones they are.
>> >>
>> >> How can I reset the key bindings for TM system wide ?
>>
[snip]...............[snip]
My apologies, it was actually a typo in the scope name of the Language item.
> > As for resetting them, this depends on which key bindings you have
> > set, there are basically 3 types [1]
> >
>
>> >> 3)FoldingStopmarkers and FoldingStartmarkers not working.
>> >> [...]
>>
> >
> > For help with this, please:
> >
> > 1) drag the language grammar from the bundle editor to Finder, then
> > to Mail (should produce a tmLanguage file)
> >
> > 2) send a snippet of code which is ?not working?
> >
>
>> >> 4)Bookmarks: How can I make them consistent after closing and
>> >> reopening
>> >> a file?(on my Install id didn't work)
>>
> >
> > This only works on Tiger (and is default) -- are you using Tiger?
>
I am using Tiger, 10.4.6
> >
> >
> > [1] http://macromates.com/textmate/manual/key_bindings#key_bindings
> >
> >
>
Best regards, marios
I don't see a Setup command in the Blogging module...
The instructions say "You should first use the “Setup Blogs” command
to identify any weblogs you wish to post to. This command will load a
file for editing. Within this file, you simply specify a blog name
and the XMLRPC URL for it. For example:"
Rather difficult without the command... ;-)
b.bum
Hi,
The Build in Flash command was broken by a recent revision of
Textmate, so I've revamped it.
Now it uses a beautiful interactive Web output window.
Allan, can I be given the privilege to become a committer ?
Hello list,
I've been trying out TM for several weeks now and I wanted to
document my experiences so they are lost (maybe other people feel the
same).
Things which I miss:
- CodeSense: Basically this is my reason for not switching to
TextMate. There is an enormous amount of APIs on the Mac and I don't
think developers should be expected to know each method and its
arguments in their heads. Copying/Pasting from the Xcode
documentation browser doesn't cut it - the time spent on this
actually outweighs the benefits of using TM (for me personally). The
day a CodeSense/IntelliSense/WhateverSense is implemented in TextMate
you will have another customer. For now I'm putting my TM switch on
hold.
-.m/.h open in the same window: This is more of a convenience thing.
It's just annoying me to have headers/implementation files open in
different tabs/windows because I just want to have a quick look in
the header and switching to another tab wastes time/distracts. I'm
probably nitpicking here but that's how I feel about it.
Things which could be improved:
- Response time of clicking on a tab: I'm a performance geek. If
something is sluggish it is annoying me so much that the application
goes into the bin immediately. This is why Xcode is just killing me
each day but I have not other choice (anyone noticed the delays in
clicking a file in the list of files?). If you try switching to
another tab in TM it's not that bad - it's snappy but there is a
slight delay between the click of the mouse and the view of the new
tab. As I said it's not something really important it is just
annoying me - that is on a 2.0GHz Core Duo iMac with 2GB of RAM and
the 256VRAM - so shouldn't be because of a slow machine.
Things which would be nice to have:
-Split views: Horizontal/Vertical split views would be great.
Currently on my widescreen LCD there is a lot of (horizontal) space
wasted. The perfect solution would be that the split views would
share the tabs (i.e. not having a separate tab list for each split
view).
Things which I like:
- Anti-aliasing on/off: Just a big thanks! I cannot believe how many
people are coding using anti-aliased fonts - that's such a nightmare
if you stare at the screen for 8 hours straight (pixel fonts are the
way for me). Thank you very much for that nifty checkbox.
- Macros: _THE_ biggest time-saver.
Kind regards,
Milen Dzhumerov
Email: gamehack(a)1nsp1r3d.co.uk
Web: http://www.1nsp1r3d.co.uk/
I may be one of the last Panther/TM user but anyway...
As I told Allan on IRC, r1070 completely breaks 10.3 support and TM crashes
everytime I try to see what's in a bundle, either through menu or the gear
menu at the bottom. Am I the only one?
I reverted to r1060 and when it tried again to update itself, I clicked
Cancel and the window stayed up with both option greyed out. Only way to
remove it was to quit.
--
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto(a)keltia.freenix.fr
Darwin snuadh.freenix.org Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005
Howdy,
I don't know if this happened before, but in the newest d/l (1070), I
just realized that horizontal scrolling works (even though there is
no horizontal scroll bar).
I was navigating a rather deep file directory in the drawer and just
scrolling up and down for no particular purpose -- somehow it gives
me peace of mind as I'm reading something in a tab -- I hit shift --
more peace of mind -- while using the scroll wheel and noticed from
the corner of my eye that the project drawer started to scroll left
and right!
So .. I was surprised ... hmm .. messing about with it some more, a
narrow project drawer doesn't cut the middle out of the names in
there, either.
Like I said, I don't know how long that's been happening, but that's
sweet! I figured other folks might be interested in realizing that, too.
Thanks, Allan.
-steve
I am really liking the Blogging Bundle in Textmate. It makes posting
an entry to my blog really handy when something comes to me that I
would like to post.
The one thing I am looking for is a way while I am in the Blogging
Markdown template to be able to get tags and such to create
automatically and something like a command completion for the headers
to save time on typing or if I just am not able to remember if it is
Keywords or keyword.
If it is already there how do I access it.
TIA
--
Ron Rosson
oneinsanedotnet(a)gmail.com
http://www.oneinsane.net
hi, thanks to the ever-so-cool "Get Bundle" bundle, i have the GTD
bundle installed.
I think this will be very nice.
Thought: when items are marked "d", the command strips the first 5
characters and prefixes the line-item with "done"
this loses what type of item was being handled. I wonder if simply
adding done in front might be better?
then the "done" list, can also preserve the types of things done.
So... given
EMAIL list about how great GTD is
I'd rather see
--> DONE: EMAIL list about how great GTD is
Instead of
--> DONE list about how great GTD is
Currently, this stuffs up the "Show..list" commands, as they detect
the item types even if they have DONE in front of them. The regexp
could either look for DONE and exclude those lines, or else require
that the item type is the first character of the line.
Other comments...
1. I wonder if Buy could have a default syntax like:
BUY ${1:new purchase} from: ${2:business} cost: \$${3:99}
2. Because email exists as an item type on its own, it seems like
"task" (should this
be called TODO?) item should not have email as the default?
TODO ${1:new email}
Not sure what would be better.
3. I wonder if the "Show list" parser could detect e-mail addresses
and wrap them in <a href=""></a> tags?
4. It would be nice, i think, if the "d" tab completion also post-
fixed the item with the current date
--> DONE: EMAIL list about how great GTD is (7/6/06:7pm)
Maybe done items could be parsed by done date and/or type of item and
project file?
If the items were just dumped into a table with type, file, and date
columns, there are nice little chunks of jscript that automagically
make such tables sortable.
tim
Hi,
I've had this happen a couple of times now. I have an AFP volume
mounted and after doing some editing, I closed all the files then
attempted to dismount the volume.
The Finder gives a message saying that it couldn't because there was a
file open. I used the 'lsof' command and it does look like TextMate
does still have something open:
john$ lsof | grep wwwsps
TextMate 735 john cwd VDIR 44,7 772 117658
/Volumes/wwwsps/schools/Surveys/athleticsreg
Is there any way to get TextMate to "let go" and let me dismount the
volume? Sure, I can quit TextMate, but that seems a little extreme..
Thanks,
jt
>
> On 5/6/2006, at 20:44, marios wrote:
>
>> Before I run into the risk of damaging my files, I couldn't really
>> figure out what to enter in the dialog box, when I open it from the
>> drawers info button on the tool bar.
>> I have a folder which I want to exclude from updating which is
>> below the
>> root of my project folder.
>
> The folder reference patterns are only to filter items from display.
>
> So by excluding a folder, it will disappear from the list. Sounds
> like you expect something else
Exactly, since I have a specific project that I work on from the
original folder, not projects.
So when I exclude a folder in this context, does it get excluded from
updating ?
(
>> What function does the "Save as absolute path" check box have in this
>> context ?
>
> The ‘save as absolute path’ is really a no-op when using folder
> references. If you drag individual items to the project drawer, these
> will be saved relative to the project file, but that can be changed
> with this checkbox.
Should I then use this option.The basic tree does not change, and I use
this Folder to mirror some stuff from my local drive to the Live Server
with Transmit. (Inside Sites Folder).
Thanks a lot again, and best regards, marios
>
Hi All,
I am using the latest build of TextMate 1070. If I make a project
based on a folder and then delete some files within a folder
(references only), when I reopen the project the 'deleted' files are
back. This seems like a bug to me, since surely the files should
remain absent from the project. Has anybody else encountered this
problem?
Anthony
Is there a way to set up a snippet so that some of the lines are
flush at the left margin and others are at the correct tab stops?
For instance, I like to have #ifdef at the left margin instead of
tabbed in, any way to set this up in a snippet?
When I convert a multi-markdown document to PDF, all of the
apostrophe's are removed. Does this happen to anyone else? Does
anyone know how to fix it?
Thanks,
Steve
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
For the first time since registering I've managed to spend a day
entirely in TextMate and all in all I really enjoyed it!
I'm writing here as there are a couple points I could use some help
with:
1. Static Gutter? Is there any way to turn this on? I had a look
round but couldn't find any pref's for it. I really prefer to be
able to see line numbers etc. at all times.
2. I'm sure when I first downloaded TextMate I could type Obj-C
messages [object message] and although TM automatically inserted the
closing bracket (]) if I typed it TM kindly overwrote the existing
one. Now I find it inserting a new pair of brackets ([ ]). I'm not
sure if this was me playing around with snippets or if the behaviour
has changed in a recent(ish) build.
If anyone can help me with these two things I'd be highly grateful.
Best,
- -J
- --
Joshua Lock
incandescant(a)googlemail.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFEhbeYPa/MMrj10iIRAlK3AJsE4rbWpy5V4Z24IXNyAk8ywyZI6QCeNtsY
/YYQFAbFqrjysL0lEUcCH0E=
=vaMR
-----END PGP SIGNATURE-----
[FIXED] The menu to disambiguate bundle items should now work
correctly with multi monitor setups.
Works fine here.
[NEW] Tab triggers are now rendered right-aligned in the menus and
with some visual ornaments that are supposed to make them
distinctive. It is no longer necessary to put the tab trigger in the
items title, to get it rendered -- in fact this is now deprecated. I
am aware that the items with tab triggers are shown in the normal
menu font size when using the gear menu from the status bar.
Love it! Any chance the tree view in the bundle editor could
similarly show shortcuts and tab triggers?
Gerd
hello :)
1) I would like to know if somebody tried to make a bundle for gnuplot
2) is it possible to make a bundle for gnuplot ?
3) Which are the difficulties ? Which is the best method to start to
make a bundle ?
Thanks
Greetings
Alain Matthes
I just discovered TextMate I am liking it a lot. I will mainly be
using it for LaTeX and I have it working nicely with TeXShop as my
previewer. With that said, I am writing a large textbook in which I
have created new definitions for \subsection and \subsubsection,
which are called \Subsection and \Subsubsection, respectively.
Unfortunately, the function pop-up menu does not show these as they
begin with a capital "s" rather than a lower-case "s". I have looked
in the symbol list for the LaTeX bundle and I see:
/* preferences */
{ showInSymbolList = 1;
symbolTransformation = '
s/(?<=\\|sub)sub/ /g; # replace all leading "sub" with
an em-space
s/^\\( *)section(?:\[[^]]*\])?\{(.+)\}/$1$2/; # then strip all
but em-space + name
';
}
I must confess that I don't know enough of what appears to be regular
expression syntax to make the bundle recognize my commands. Can
someone tell me what I need to change in the above definition to get
the behavior I desire?
Thank you,
-- Gary L. Gray
I noticed that when something is selected in TextMate and you right-
click *anywhere* in the document the pop-up menu contains items
referring to the selection (filer thru command, etc.). This strikes
me as odd because it's not how the rest of the OS behaves.
Everywhere else (that I know of) re-focuses the selection depending
on where you right-click. If you right-click in the existing
selection you are shown options for that selection, but if you right-
click outside the current selection the selection re-focuses and
moves to the word that was clicked on.
While this not really a big deal, it's caused me some confusion when
trying to correct spelling when some other bit of text is selected.
I've even gone so far as to unconsciously make sure to always select
the word I'm trying to spell-check.
I personally would prefer if the behavior was in-line with the rest
of the OS, but I could imagine there would be some cases when this is
not desirable.
Was this a design choice? What are the benefits of this?
—oliver
Is there a way (if not consider it a feature request) to dynamically
include a syntax in a syntax?
What I am getting at is here-docs and similar constructs that contain
another syntax. For example it would be cool if for example in perl I
could write:
print <<"text.xml.plist";
# some xml property list here
text.xml.plist
and it would just apply the text.xml.plist syntax to the here-doc.
I know I can hard-code it in a 'meta' syntax, but that gets
bothersome...
Gerd
Hi everyone. I just started using TextMate today and I've run into a
little problem. I've noticed that my Shell Variables (as set in the
Preferences) aren't loaded properly when I use templates. For
example, I'd kind of like to mimic Xcode's built-in templates. To do
this, I've modified the Java Class template to look more like:
//
// ${TM_NEW_FILE_BASENAME}.java
//
// Created by ${TM_USERNAME} on ${TM_DATE}.
// Copyright (c) ${TM_YEAR} ${TM_ORGANIZATION_NAME}. All rights
reserved.
//
...
and I've updated the script associated with that template to look
like this:
export TM_YEAR=`date +%Y`
export TM_DATE=`python -c 'import datetime
now = datetime.datetime.now()
print "%s/%s/%s" % (now.day, now.month, now.year)
'`
export TM_USERNAME=`niutil -readprop / /users/\$USER realname`
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' \
< class-insert.java > "$TM_NEW_FILE"
All of this works fine, except ${TM_ORGANIZATION_NAME} isn't being
replaced correctly. It works fine for Code Snippets, but not in
Templates. If I add
env >> "$TM_NEW_FILE"
to the end of the script, TM_ORGANIZATION_NAME isn't listed. Is this
a bug or a known issue? I've searched Google, TextMate's bug list,
and the list archives, but I can't find any mention of the issue. I
would appreciate any help in resolving the problem... it's a minor
nuisance to an otherwise great application.
-Prachi
>===== Original Message From Prachi Gauriar <pgauriar(a)mac.com> =====
[...]
>BTW, TextMate is an amazing app. I've been telling my friends about
>it: "It's like Emacs, if it were designed today with a GUI in mind
>and without Emacs Lisp or the cruft of 20 years of development."
Except even TextMate can convert vi-addicts. :)
--
Sami Samhuri
sjs(a)uvic.ca
Seems that there still is some odd problem with syntaxes depending on
other syntaxes. I just got this:
2006-06-05 13:16:55.842 TextMate[5366] didn't find rule named
source.open-gl
2006-06-05 13:16:55.842 TextMate[5366] didn't find rule source.open-gl
Odd thing is to my knowledge I never edited anything that had
anything to do with open-gl...
Gerd
Hi all, I just started using TextMate (long time emacs user), and
thought I would post to let people know that I'm developing a bundle
for IDL (Interactive Data Language http://www.ittvis.com/idl/index.asp).
Current features :
Syntax Highlighting : Keywords, builtin routines, system
variables, system commands
Folding
Indenting
Recognizes a program's function names and parameters
IDL documentation search :
open IDL's builtin HTML help libraries
search IDL's builtin HTML help libraries
run DOC_LIBRARY to build help files
tab completion for common control forms
new program template
I've posted it at http://aster.colorado.edu/software/IDL.tmbundle.zip
and if I can get subversion access, I'll put it in the repository, or
somebody else can, but I'm not done with it yet... which brings me to
my next point...
I wonder if it is possible to keep a persistent process open in the
background and send commands to it. I'm not sure how IDLWAVE http://
www.idlwave.org does this for emacs, I'm afraid that emacs runs a
complete shell of its own... I suppose this could be done with a
separate program that just passes information back and forth, but
that seems inelegant (and more difficult than it needs to be). All I
need to do is start a process, pass strings to it as standard in, and
read standard out and error from it. I could see this kind of
groundwork being useful to far more than just IDL, it should work
with any interpreted language that has an interactive mode (ruby,
matlab, ...), and many debuggers for that matter (gdb at least).
If this turns out to be relatively easy to do, I would also like to
inquire about the status of a plugin API. The web page says more is
likely to be done here, has anything been done? Eventually I might
want to write a simple plugin that talks to the IDL process and
highlights associated lines in the editor window (and possibly add a
GUI for querying and displaying variables). Again, this seems like
something that a wide array of programming languages would benefit
from having a framework for (hint, hint :-) ).
Ethan
Allan,
Here is an updated version of the "AES Encrypt Document / Selection With
Password..." command. It uses secure-inputboxs and asks to verify the
entered password.
Decrypt version also needs secure-inputbox, but obviously not the
verification.
Q
---
res=$(CocoaDialog secure-inputbox --title "Encrypt Text With AES 128" --
informative-text "What password should be used?" --text "" --button1
"Continue" --button2 "Cancel")
[[ $(head -n1 <<<"$res") == "2" ]] && exit_discard
passwd=$(tail -n1 <<<"$res")
res=$(CocoaDialog secure-inputbox --title "Encrypt Text With AES 128" --
informative-text "Enter password again to verify." --text "" --button1
"Encrypt" --button2 "Cancel")
[[ $(head -n1 <<<"$res") == "2" ]] && exit_discard
passwd2=$(tail -n1 <<<"$res")
if [[ $passwd == $passwd2 ]]; then
openssl enc -e -aes128 -base64 -pass "pass:$passwd"
else
exit_show_tool_tip "Password mismatch! Please play again."
fi
Hello, to all,
I haven't been able to continue my threads due to some serious Issues in
TB mail client
In fact the only solution was to subscribe again.
That's why I am opening a new thread.
Sorry for that.
In the meanwhile I had the chance to scan the archives for valuable
information on this subject and I indeed found most of the missing
pieces of the puzzle.
I finally came to understand, the syntax used in those plist files.
I have started a second version of the grammar that is mostly derived
from the syntax model used in the experimental Html Bundle, except it
doesn't use a full tree, that resolves to an exclusive root node with
recursive
references.
Instead it requires an include value for each tag in the repository ,
while the custom attributes and values are only referenced from the
repository items (I'll see if I can group them later).
I have done it that way, since I came to realize, that any attempt to
follow the example in the experimental XHTML Grammar, would have been:
1)Unsuitable for the current meta language
2)Too complex for this purpose.
Yes I have been scanning those thousands of lines of code over and over
again and Tm makes that very convenient with all it's search
functionality, bookmarks and so on.
I like that modularity approach of the syntax and try to see, if I can
adapt it to my needs.
Before I proceed to finally construct the Language from the core module
that I have, I started asking myself, weather I have followed the right
strategy ,and if not, well. there is always enough time to adapt.
There are however a couple of questions that turned up, that I hope,
some of you might be able to answer.
1)How do I insert a snippet inside a snippet ?
I'd like to tab through a code block, that I have, at certain variable
insertion points, I have other snippets, that I call through tab
triggers,that again have variables that need to get inserted
into the first snippet, and after the last variable of the second
snippet the cursor shall return one newline after the last insertion
point of the last variable of the first snippet,or the zero variable.
How do I do that ?
(Command ?, macro?)
EDIT.: I've had a couple of inconsistencies with using snippets in snippets,
sometimes it didn't trigger if the Insertion point was a nested variable
with two placeholders itself, then backspacing would swallow the last
character of the
tabtrigger keyword of the second snippet.
Oh, well, it worked after a couple of keystrokes.
2)Key bindings
After realizing that certain key bindings are lost after the previous
update, I am not able to use certain custom key bindings,
I'm not able to recall right now, which ones they are.
How can I reset the key bindings for TM system wide ?
3)FoldingStopmarkers and FoldingStartmarkers not working.
I can't get those going, I use the following code (All most Identical
with the html bundle):
foldingStartMarker = '(?x)
(<txp:(?i:comment_permlink|file_download_link|if_article_author|if_article_category|if_article_list|if_article_section|if_author|if_category|if_comments|if_comments_allowed|if_comments_disallowed|if_comments_error|if_custom_field|if_different|if_excerpt|if_first_article|if_individual_article|if_last_article|if_plugin|if_search|if_section|if_status|link_to_home|link_to_next|link_to_prev|newer|older|permlink|php)\b.*?>
|(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\b.*?>
|<!--(?!.*--\s*>)
|\{\{?(if|foreach|capture|literal|foreach|php|section|strip)
|\{\s*($|\?>\s*$|//|/\*(.*\*/\s*$|(?!.*?\*/)))
)';
foldingStopMarker = '(?x)
(</txp:(?i:comment_permlink|file_download_link|if_article_author|if_article_category|if_article_list|if_article_section|if_author|if_category|if_comments|if_comments_allowed|if_comments_disallowed|if_comments_error|if_custom_field|if_different|if_excerpt|if_first_article|if_individual_article|if_last_article|if_plugin|if_search|if_section|if_status|link_to_home|link_to_next|link_to_prev|newer|older|permlink|php)>
|(</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>
|^(?!.*?<!--).*?--\s*>
|\{\{?/(if|foreach|capture|literal|foreach|php|section|strip)
|^[^{]*\}
)';
4)Bookmarks: How can I make them consistent after closing and reopening
a file?(on my Install id didn't work)
Again I apologize for not answering my previous topics and I thank
anyone who answers this post in advance.
best regards, marios
Before I run into the risk of damaging my files, I couldn't really
figure out what to enter in the dialog box, when I open it from the
drawers info button on the tool bar.
I have a folder which I want to exclude from updating which is below the
root of my project folder.
Do I have to enter the name of that folder in the name box , and then
alter the RE ?
According to the manual, if I alter the default pattern from:
!.*/(\.[^/]*|CVS|_darcs|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$
To :
!.*/(\.[^/]*|CVS|_darcs|\{arch\}|blib|.*~\.nib|.*\.(MY_EXCLUDED_FOLDER|framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$
Can I be sure, that the Folder will not be altered ?
(I know, I could test against, it, by doing "find in project, but I'd
like to know also, what the other dialog options mean, and what it does
behind the scenes, when I concurrently move files and Folders around,
and update in the meanwhile.)
What function does the "Save as absolute path" check box have in this
context ?
Sorry for bothering again,
best regards, and many thanks in advance, marios
I am using a TM Project because I need to set a few project-local
variables. Projects files, “.tmproj”s, are serialized to a single xml
file, and included is information about window settings (position,
size, drawer open?). For example, when you move the project window,
your VCS will mark it as changed. This is very annoying.
Xcode solves this problems my separating the “project” and the
project window settings, all contained inside a directory/
XcodeProject.xcodeproj/
project.pbxproj <----- The _real_ project file.
myusername.mode1 <---- other stuff.
myusername.pbxuser <---- more stuff.
-- Daniel
Hi,
I using the latest build, and I just noticed something. If I close a
file and don't want to make changes, I usually just hit CMD-W then
CMD-D for Don't Save. Now, when I hit CMD-D, instead of choosing the
button in the dialog sheet, a menu is popped up:
Push to default repository 1
Diff 2
What's New 3
etc. Looks like something for a version control, but I can't find the
key shortcut (hmm.. would be nice to be able to search for a
keystroke... there's a lot of commands in that bundle menu :)
Thanks. (I will enter a ticket if need be.
jt
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> textmate-request(a)lists.macromates.com wrote:
> [snip]...............[snip]
>
>
>
> Hi,
>
> Regarding my previous post, I'd like to mention, that I kind of solved
> one of my previous problems to escape from a nested snippet, relying
> solely mostly on snippets and macros,
> For the purpose of easy post maintenance, and since I'm a complete Idiot
> when it comes to scripts and UNIX I found a workaround on a bundle, that
> I called GrammarTech and sort of stepped out as a side project for the
> TXP Language Grammar.
>
> The only purpose of this bundle is to generate the Grammar within
> minutes and ease the maintenance of the Language.
>
> To finally return the caret to the \n position of the last variable of
> the first snippet, I have two macros.
>
> One that swaps the last include reference around(where the previous last
> include reference is a place-holder item, that never changes it's
> name),and one that returns the caret to it's initial position.
> Although it pretty much works the way I wanted, I ran in to a couple of
> Issues.
>
> To execute the macros that do the 2 previous jobs described above, I
> initially assigned them the + and - keys of the numeric keypad,
> while the scope of the Language item, (which is a conventional plist
> bundle language item by itself) of the Grammar-tech Bundle was set to
> grammartech.plist.
>
> Changing my mind afterwards and assigning them a scope of source.plit
> broke the key bindings (Changing them after to something else, also does
> not trigger the macros anymore).
> The macros are still working, but trigger only from the gear popup menu
> on the toolbar.
>
> I also found, that I could only reliably nest the one snippet in the
> other, when I place the Zero tab variable right after the last variable
> of the first snippet.
>
> I don't know if this is a bug, but I thought it would be better to
> mention it here.
>
>
> Sorry again for this long post, and many thanks in advance,
>
> regards, marios
>
>
>
I'm sure somebody here knows the answer to this, although it's not
specifically related to TextMate.
I'm adding a key equivalent to TextMate's Window -> Zoom menu item with
the following:
defaults write com.macromates.textmate NSUserKeyEquivalents -dict-add
'Zoom' '@~/';
The result? It works...but it zooms ALL open windows simultaneously. If
you select Window -> Zoom with the mouse (or click the "+" window
widget) only the TOP window zooms.
Huh!?
I know this is not a TextMate specific "problem" because the same
behavior exists with Terminal.
Q
As noted in the release notes for r1060, there is indeed a problem
with dual-headed setups. If the editor window is on the secondary
monitor, the menu is displayed on the primary monitor (in the correct
screen location, just on the wrong screen). On the plus side, if the
editor is on the main monitor the menu works properly... This is on a
MacBook running 10.4.6.
Console.log output:
2006-06-05 11:39:31.625 TextMate[3581] Quartz {1733, 123} (frame
{{1280, 0}, {1280, 768}}), QD origin {1280, 768}, QD top/left 645, 453
scott.
Hi all (Brad especially, I guess) -
Now that Textpattern has new xml-rpc support (http://textpattern.com/
download-rpc), I thought I'd give it a try with the blogging bundle.
When I specify my XMLRPC URL (mydomain.com/rpc/) and run the "fetch
post" command, I get the following error after entering my password:
/usr/lib/ruby/1.8/xmlrpc/client.rb:543:in `do_rpc': Wrong
content-type (RuntimeError)
from /usr/lib/ruby/1.8/xmlrpc/client.rb:409:in `call2'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:399:in `call'
from /Library/Application Support/TextMate/Bundles/Blogging.tmbundle/
Support/lib/metaweblog.rb:28:in `getRecentPosts'
from /Library/Application Support/TextMate/Bundles/Blogging.tmbundle/
Support/lib/blogging.rb:498:in `fetch'
from /tmp/temp_textmate.7ihCLB:3
Any ideas? Have I perhaps failed to configure something properly? It
(the xmlrpc support) does seem to work with MarsEdit.
-Alan
Anybody yet to make a Diff bundle command that compares the top two
windows? It's a drag to make a new project and drop two files in,
especially since often my windows are unsaved documents.
I tried but failed ... my AppleScript know-how dunno how. I couldn't
figure out how to get the contents of the top two windows. Can anybody
do that?
Tnx, Q
the new begin and end patterns allow me to highlight the background
(I do it in my Blackboard color theme)
the new patterns are... well, you know what they do. the link pattern
is pretty raw, feel free to improve it.
merge and commit, I'm away from my main puter so here I've got a
silly read-only working copy.
{ name = 'comment.documentation.java';
begin = '(^\s*)?/\*\*';
end = '\*/(\s*\n)?';
patterns = (
{ match = '\*\s*(@(param|throws))\s*([a-z]\w+)\s*';
captures =
{ 1 = { name =
'keyword.other.documentation.params.java'; };
3 = { name =
'keyword.other.documentation.value.java'; };
};
},
{ name = 'keyword.other.documentation.link.java';
match = '{@link\s+\S*\s+(\S*)}';
},
{ match = '\*\s*(@[a-zA-Z0-9_-]+)\s*';
captures = { 1 = { name = 'keyword.embedded-
docs.params.java'; }; };
},
);
},
Currently, you can successfully use TextMate to build an Xcode target
into a user defined build directory (via user.pbxuser), but you cannot
run the resulting executable.
I'd like to propose the following change to the Xcode bundle: if a
SYMROOT is defined in userBuildSettings use that as the directory
instead.
Thanks,
Kimon
PS I know not Ruby, please modify as needed
Hey all, I just noticed an omission in the Ruby grammar. I checked the
Ruby grammar's comments to see if there was any mention of this, but I
didn't see anything; perhaps I just missed it. In any case:
def show#{suffix}
@#{singular_name} = #{class_name}.find(params[:id])
render#{suffix}_scaffold
end
(This example is from the Rails source, in action_controller's
scaffolding support.)
All of those #'s become comments; not one of them actually is.
I'm bringing this up partly for posterity (I'm anal-retentive and
would deeply love the Ruby grammar to be perfect (: ) but mostly
because I'd like to use this syntax mechanism without TextMate making
it look like it's not actually code... (:
I'm gonna take a look at it, but if anybody else has a quick fix
before I commit anything, they're welcome to it.
Rob
I was frequently selecting a word and finding it in the project so I
thought I would automate the 3 command sequence (control w, command e
and command shift f, return) by using a macro. Unfortunately the
find in project part is not recorded within the start/stop macro. I
guess this is because it brings up a dialogue box? Any way around
this or maybe I have overlooked some built in command that does this?
Dave.
I have an Xcode project with a non-default [SYMROOT][1]. The run
command seems to disregard this and expects the project to be laid
out like:
foo/
Project.xcodeproj
build/ # <-- SYMROOT
which it should not do. Can someone fix this?
[1]: http://developer.apple.com/releasenotes/DeveloperTools/Xcode/
XcodeBuildSettings.html
-- Daniel
"style" snippet unneccessarily adds CDATA block.
CDATA is only needed for content that uses "<" and "&" very often, but
these characters aren't used in CSS syntax at all. They might occur
sometimes in URLs and string constants, but parametrized images and
generated content are used rarely enough that CDATA can be dropped from
snippet.
--
regards, porneL
I notice that for certain commands the 'Documentation for word /
Selection (man)' is unable to find the man page for some commands
while typing 'man foo' seems to work.
For example 'asr' returns the man page formatted quite nicely in the
html window.
However on my system (MacBook Pro, running 10.4.6 w/dev tools, and
cutting edge TextMate) the documentation for hdiutil and rsync
couldn't be found.
Do I need to modify my shell configuration? or the command in someway?
My apologies if this has been discussed before, briefly searching the
list didn't seem to turn anything up.
Thanks
Peter
Hi everyone,
I have two questions on coloring the text in textmate.
# How do I turn off the background coloring when I turned it on once?
Of course I could use the same color as the main background color.
But than
I need to change them all again.
# I would like to color the scopes "entity.name" and
"entity.name.section"
but somehow that does not work. Textmate only applies the rule for
"entity.name"
Thanks in advance
Christoph
~~~~~
Christoph Biela
cbiela(a)gmail.com
… when you can see "svn up /Library/Application\ Support/TextMate" in
your terminal window, much more often than you call your girlfriend
… when you select text, hit " and start screaming because the stupid
application is not as smart as textmate
… when you are desperately trying to find alternatives to
applications because "Edit in textmate" doesn't work with your old
Hi. I've just started playing with Objective C and (obviously!) want
to use TextMate to edit my code. I saw the rather cool demo in Allan's
2nd Obj-C screencast [1] of how to reformat a method signature, but it
didn't work for me.
I tried it with the following example:
+ (id)dateWithString:(NSString *)description calendarFormat:(NSString *)format
locale:(NSDictionary *)locale
{
}
and found that the results came out like this (having removed everything
in the file prior to the method definition):
+ (id)dateWithString:(NSString *)description
calendarFormat:(NSString *)format
locale:(NSDictionary *)locale
Do I need a specific version of the TextMate, the Objective-C bundle, or
some other supporting files to make this work?
I'm running build 948 of TM, and have just upped by Objective-C bundle
this evening (the one shipped with 948 didn't define the format method
signature command).
Cheers,
Graham
[1] http://macromates.com/screencast/objective_c_part_2.mov
Hi everyone!
Maybe you noticed my Bundle already, but for those who haven't.
The GetBundles Bundle is the easierst way to get and update Bundles
from the Macromates SVN Repository.
press CTRL + CMD + I a dialog apears and you can choose the Bundle
you want to install.
To update every Bundle just press CTRL + CMD + U
Download the Bundle and extract it to ~/Library/Application Support/
Textmate/Bundles.
You don't need to install Subversion, the executable is included in
the bundle.*
http://sg.validcode.at/files/GetBundle.tmbundle.zip
*This maybe causes issues on Intel Macs so please report.
Thanks!
Basti
Hello:)
Sorry for my bad english
After \catcode`\{=1 nothing any more is recognized; syntax coloring
is lost
and with (l'article) or {l'article} syntax highlighting is lost; the
first symbol ( or { is not found any more
Thanks for your great soft
Alain Matthes
Hi Sylvain, Eric,
Thanks for your replies. The ._ files are the resource fork, as you
pointed out, which is why "find" and other commands can't see them.
The 10.4 "tar" command includes them automatically, and doesn't seem
to provide a way to turn them off. :-( Fortunately, "rsync" does, so
I solved my particular problem by doing an "rsync" of the project to
/tmp and then tarred it up there.
Thanks again for the pointers.
Regards,
Chris.
Hi all,
When I "tar" up a TextMate project directory, I get a ._<filename>
file for each file I've opened in TextMate. I've had a look at one of
these files on another system, and it appears to contain TextMate's
last caret position information for the related file. The problem is
that I can't seem to exclude these files from the tarchive using the
--exclude or --exclude-from parameters to "tar". Further, if I try to
use "find" to generate a list of the ._ files, the ._ files are never
in the list. Similarly, they don't show up in the output of "ls", and
can't be deleted with "rm".
Has anyone been able to successfully exclude these files from "tar"?
Is there any way to delete them?
Thanks,
Chris.
Hi there,
I'm trying to create a drag command on the HTML bundle to have
TextMate insert a <script src="..." /> snippet whenever I drag a .js
file on a HTML file.
I've duplicated the "Insert CSS" snippet but whenever I try to change
the File Types to 'js' the text field clears itself...
Any ideas what may be happening? Is the drag command stuff borked? It
seems to fail only with .js files (I have a drag command I created
some time ago for .as files and it works perfect...)
I'm using TextMate 1.5.1 1031 on 10.4.6 PPC
Thanks in advance...
a!e
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Just a quick question if there is an estimate on when templates will
be available again in the bundles editor. I just lost one of mine
(made a slight modification and now it is no longer available --
though it still is in the bundle) and would like to make a few
additional templates.
Thanks
Robert
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFEfdUL0ZwlS5OIzRcRAm0EAKCAGG2fbIrI1aF6mfnm9BkvE+GY5wCguClL
SzCLAQ6cxy67MQFsro+gafE=
=I4WN
-----END PGP SIGNATURE-----
Is it possible to get the folder contents of the drawer? What I'm
wanting to do is be able to search for a definition in a file
contained in one of the folders in one of the groups in the drawer.
I'm having trouble creating a custom snippet that, for me, would be really
useful.
I want to set up a snippet to create an unordered list nav from a plain text
list, e.g.
foo
bar
coo
tar
I'd like to highlight the whole list, hit a key combo, which would wrap each
list item in <li>, wrap the whole lot in <ul>, and even wrap the text within
each list item in <a href=""></a> for good measure.
Can anyone help?
Many thanks in advance.
Hello list,
First mail to the mailing list, just by textmate yersterday ;-)
Is it possible to jumb to the directly to a function in ruby mode ? (as
we can do in java/eclispe by pressing command key on the function name)
thanks
Arnaud
I've got many projects which have lots of files with same names, like
index.php in every directory or sets of files like class/foo,
template/foo, data/foo, etc.
This often leads to having many tabs with same name and makes switching
difficult.
Are there solutions to this problem? Other than ⌘T, which requires typing?
Ideally I'd like to have parent directory name on tab ("foo/index.php" or
apple-style "index.php--foo").
--
regards, porneL
I am trying to remove line breaks (is this the same as a hard
paragraph return?) from a selection. In bbedit, I go to edit >
remove line breaks. I can't find anything like this in Textmate—
could someone point out the obvious?
Thanks,
Steve
I'm using the Xcode bundle with a fairly complex project layout --
the bundle can not find my Xcode project. I would rather not set an
absolute path to it. This patch allows setting TM_XCODE_PROJECT to a
path relative to TM_PROJECT_DIRECTORY.
If TM_XCODE_PROJECT does not start with a "/" a relative path is used.
-- Daniel
The latest TextMate (1.5.1) broke TmCodeBrowser (empty display), and
a small change was required. Please update TmCodeBrowser from here:
http://www.cocoabits.com/TmCodeBrowser/
Gerd
Just want to aplogize to all for the multiple posts that went to the lists.
I vey rarely use the gmail web interface and I guess it really shows. ;-)
Sorry for the multiple posts.
-Ron
P.S. Web browsers are no substitute for a good mail application. ;-)
(For Brad, mostly),
I have a slight issue with posting the blog on WordPress. I'm using a
standard template, and I'm able to connect to the blog's XMLRPC
("Fetch Posts" works like a charm). However, when I try to post, I
get the following:
/usr/lib/ruby/1.8/xmlrpc/create.rb:195:in `conv2value': Wrong type
NilClass. Not allowed! (RuntimeError) from /usr/lib/ruby/1.8/xmlrpc/
create.rb:106:in `methodCall' from /usr/lib/ruby/1.8/xmlrpc/create.rb:
105:in `collect' from /usr/lib/ruby/1.8/xmlrpc/create.rb:105:in
`methodCall' from /usr/lib/ruby/1.8/xmlrpc/client.rb:408:in `call2'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:399:in `call' from /Library/
Application Support/TextMate/Bundles/Blogging.tmbundle/Support/lib/
blogging.rb:363:in `post_or_update' from /tmp/temp_textmate.D5IM07:3
I'm at r3460. Any ideas?
Shiran
That did the trick. Thanks for a great and useful bundle.
Shiran
> OK-- found the issue and checked in a fix for it (revision 3461).
>
> Thanks,
> Brad
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
In my attempt to shoehorn together a Lang Grammar for Textpattern from
scratch ( "scopeName = source.txp" , and NOT "text.html.txp" ) I ran
into a couple of problems.
I also took a peek at how it's done in the MT Bundle, but I decided,
it's best to start from scratch.
Note.:I'm not a programmer, just a beginner of TM, usually as I
understood, this should then go into the developer mailing list, but
since I am not a developer, I decided then to post first here.
I'll summarize my observations and obstacles below:
1) grammar Scope consideration
Textpattern's syntax is very similar to Html, there is single tags (self
enclosing ) and container tags.
However, the total code blocks, used in forms and pages can get rather
complex, since in many cases you can have funny nested language
constructs that can not be matched with any of the present grammars
regex constructs.
EXAMPLE.: <li <txp:zem_nth step=1
of=2>class="odd</txp:zem_nth><txp:zem_nth step=1
> ><txp:if_article_list>activea</txp:if_article_list> </txp:zem_nth>
<txp:zem_nth step=1 of=2>"</txp:zem_nth>><txp:permlink><txp:title
/></txp:permlink></li>
(Note.:Note the second bracket after the zem_nth closing tag, the code
sample for Txp form above will parse a perfectly valid XHTML, once the
request is returned from the Server)
You can see the pref snippet that I used to test the above below.:
Sample.:
{ name = 'keyword.control.txp';
match =
'(["|\s]?<txp:.+\s/>["|\s]?|["|\s]*?<txp:.+>["|\s]*?|["|\s]?</txp:.+>["|\s]?)';
},
(works, but not with the complex constructs, like mentioned above.)
Problem.: Some of these instances make it difficult to construct the
regular expressions.
Possible Solution.: Could be excluded with negates whenever occurs
(That would be rather hackyish and not elegant)
2) Furthermore the reason, why I opted for a "source txp.scope" rather
then the other easier and integrable solution and attempt everything
from scratch, is that there is not a real hierarchy between html and txp
forms and pages, so I thought it would be more expandable and extensible
in that way.
Question: Is that so ?
Or am I terribly wrong ?
3)Question: Is the p.list format going to change to a xml format for the
Language grammars. ?
4) I made two variants of a preliminary bundle for the Grammar, would it
make sense to submit those to repository, once they reach an acceptable
stage ?
5) I'm a little perplexed with the Theme Editor, and in particular the
context of Theme names, Theme Scope names and the corresponding scope
selectors in the Language Grammar and prefs.
For Instance, for the above p.list value/pair keyword.control.txp, I did
not have a blank element of keyword control in the list.
I thought at first, that (after reading the manual ) I should have a
blank keyword control element (in the Fonts and colors pane ) and then ,
for my above purpose, I create a keyword.control.txp scope selector,
that I style for the above purpose, but that doesn't appear to seem so.
Is it correct to suspect that the element names themselves are
irrelevant for the inner functioning of the language grammar ?
I hope that this was not too long and thank you in advance for reading
this and possibly have an answer to my questions.
So for I am pretty much amazed with the editor.
regards, marios
- --
marios at CSSDelyrium
requests
http://www.consking.com/contact
________________ __ _
/ ___/ __/ __/ _ \___ / /_ ______(_)_ ____ _
/ /___\ \_\ \/ // / -_) / // / __/ / // / ' \
\___/___/___/____/\__/_/\_, /_/ /_/\_,_/_/_/_/
/___/
-----BEGIN PGP SIGNATURE-----
Comment: This might change in the future
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEb5b18tSzPOYuZvQRAiZQAKCwWFXNOAKxOT5tWGfLlbYaIQV/WgCffa8u
esaTuzI4S4IbS7pS1oP/d/c=
=Yz4x
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
For a new language Grammar I have set up a couple of test bundles that
try different variations of a grammar style, so I stumbled over some
'cases' where an actual name rule at the pattern root level of the
syntax would not be recognized at all.
EXAMPLE.:
{ name = 'entity.tag.plugin.single.textpattern';
match =
'<txp:[a-z]{3}(_([a-z0-9]{1,15}))(_([a-z0-9]{1,15}))?\s{,4}(\w{1,45}="\w{,15}"\s{,8}){,7}/>';
},
Basically I want to use the above rule to isolate any single self
enclosing language plugin tags tags from regular txp language tags and
give it a scope.
It doesn't work, I tested the above reg ex with find/replace and it does
what I want, but it doesn't work inside the Language grammar.
For the rest of the tags, I use the usual word boundaries rules with a
piped group of tag names, as in html.
So I suspected, that something like that is not allowed maybe.(Onigoruma ?)
NOTE.: I didn't use any back references there,just to simplify the case
What am I doing wrong?I'm using cutting edge with all bundles installed.
Are there any limitations, about regexes in a Language syntax at all,
that I don't know about ?
regards, marios
-----BEGIN PGP SIGNATURE-----
Comment: This might change in the future
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEecTQ8tSzPOYuZvQRAvFfAKC0GqIf+7jSwwA/QSxJ4s855PFe2QCeLyXQ
ZFDWslm9wtXRuIKriJZZa/E=
=VGAC
-----END PGP SIGNATURE-----
I have enabled the Smarty bundle, but have an issue.
I use <% for open, and %> for close. Im not sure exactly all the
places I need to change this in the smarty bundle, or what the proper
format would be. I tried playing around in the bundle, but no matter
what I did I couldn't seem to get it correct.
If anyone could provide some guidance, that would be very helpful :)
Eric Coleman
Hi everybody,
do not get me wrong about this post, but I was wondering if someone
could
help me writing this TMscript. Or maybe it is honest to say write
this script.
The idea is the following:
- I have a big LaTeX project, so I divided the report in several
documents.
- Let's say:
- master.tex
- part1.tex
- part2.tex
- Basically master.tex includes all following documents, so in case I
would typeset
the master.tex file I would get the whole document.
- There is a TM-function which allows me to set the master file in my
project, so that
typesetting any file (for example part1.tex) actually typesets the
master.tex file.
- But this takes time so it would be nicer to typeset just the file I
am working on right now.
- My Idea is:
1) change the first line of part1.tex (and or part2.tex) to %%
TM_LATEX_COMMAND%% Head include %%
2) add a line in the master.tex somewhere after \begin{document} : %%
TM_LATEX_COMMAND%% Head %%
3) when typesetting the script looks for the line (see (2)).
4a) if there is no "%%TM_LATEX_COMMAND%%Head%%" it will go on like
it does right now
4b) if there is the line "%%TM_LATEX_COMMAND%%Head%%" then I takes
the lines before
" %%TM_LATEX_COMMAND%% Head %% " and puts them on top of the
typsetted file. It also
adds an \end{document} and then typesets all.
- what I do not know is how pdfsync works then, but since I do not
know how to write this little
script I could not try out.
It would be great if someone could help me or send the website where
this is already posted.
However, I would also appreciate some helpful comments on how to
write the script by myself.
Tanks
Christoph
~~~~~
Christoph Biela
cbiela(a)gmail.com
TeXShop has a neat solution for this: it lets you set a master
document manually (which is no big deal for larger projects). This
way, if you hit LaTeX in any of the documents, the master documents
gets LaTeXed. This should be a piece of cake to add to TextMate …
although I still use TeXShop to compile and check my LaTeX documents.
Max
> On 27/5/2006, at 16:03, Aristide Grange wrote:
>
> > Thank you for having explained me how to solve this stupid-but-big
> > problem with search/replace in TextMate! [...]
>
> Just FYI the problem comes not from stupid code but from data
> structure trade-offs.
Thank you for your very interesting explanations about the data
structure you use. My intervention on the topic was initially
motivated by the fact that Chris mentioned the same (stupid) problem
on a 3.7MB XML file:
> The big mistake was to try and do a Find/Replace of all ">" with ">
> \n".
> Whoah. It's been using all the CPU and beachballing for over 30
> minutes now,
> with no obvious way to interrupt it...
From my point of view, the problem of Chris was including two
independant matters: 1. slow global replacement; 2. global reparsing.
I was surprised that your reply to him (well, the kind one) focused
almost only on parser considerations. It was not perfectly clear for
me that your promise of future improvements on "half a dozen other
things which do affect the performance" included the one I care
about. So, I thought it was necessary to insulate the first problem,
with which I have to deal on a daily basis: global replacement on
plain text. Obviously, I knew it had "nothing to do with the language
parser": it was precisely my point...
Then, Paul came with a great solution to this very problem: filter
the document through a magic perl command. Since them, I am happy,
and I guess TextWrangler will not encuber my dock for a long time now.
But his reply makes a second (probably stupid too) question to pop
into my mind: since there is such a performance issue with the
builtin global replacement of TextMate, why not just delegate the
work to perl, directly from the shiny and so convenient Find window?
And if, for some reason, it is not always possible, why not offer
this as an option through some cute check box?
Concerning the "marketing" considerations of Daniel, I second that.
My own experience, as an old BB et al. registered user, is the
following: in the past, I have given TextMate at least three (too)
short tries. Each time, I thought: "it is not for me, because 1.
there is no incremental search; 2. global replacement is too slow".
The drawback with TextMate is that its real superiority and its
amazing features are not very prominent. This "tact" has several very
important advantages too, e.g., the interface is not bloated and the
learning curve is so smooth. But I have had to force me to try
TextMate during one plain week *before* I finally fall in love with
it. BTW, I don't remember if I registered before or after I
accidentally discovered it does offer incremental search (the manual
is rather allusive on this point). So I think it would be a killer
marketing idea to help the switchers to figure out how they can use
TextMate as efficiently as their favourite text editor. Apple has
made something like that for the Windows users (and we all know that
Apple never makes any marketing error ;-). Perharps some dedicated
annex in the documentation?
Cheers,
A.
Originally when I installed Textmate it offered to put in the link for the
"mate" command which I chose to do. The mate command worked from terminal
until the next day when I fired up my computer and suddenly it stopped
working. So I went into the "Help" menu, "Terminal "Usage" option and
clicked the "Create Link" button for /opt/local/bin, it gives me an error
"Couldn't create link: /opt/local/bin/mate filed ... bad address". If it
use any of the other paths I get an error the the operation is not
permitted.
Not sure what to do. Isn't mate just a symbolic link to the actual
textmate.app in applications?
Thanks for nay help on this.
> Actually, I didn't do it correct there either :)
>
> osascript &>/dev/null \
> -e 'tell app "Backdrop" to activate' \
> -e 'tell app "MenuShade" to activate' \
> -e 'tell app "TextMate" to activate' &
Fantastic, works great.
> Sorry, should have been:
>
> osascript 2>/dev/null \
> -e 'tell app "Backdrop" to activate' \
> -e 'tell app "MenuShade" to activate' \
> -e 'tell app "TextMate" to activate' &
Wow, that is totally bizarre.
The only way this DOESN'T hang TextMate is if I set the Output to
"Show as HTML". Ideally, I'd discard it, but that hangs the app.
Bizarre.
I tried the following command:
osascript -e 'tell app "Backdrop" to activate'
osascript -e 'tell app "MenuShade" to activate'
osascript -e 'tell app "TextMate" to activate'
which causes TextMate to hang because (as Allan told me)...
> because you send an event to TM, but TM won't respond as
> it is busy executing the command, so the command will stall
> (waiting for TM, which waits for the command.)
He suggested:
> osascript 2>/dev/null & \
> -e 'tell app "Backdrop" to activate' \
> -e 'tell app "MenuShade" to activate' \
> -e 'tell app "TextMate" to activate'
Which returns the following error:
> /bin/bash: line 2: -e: command not found
So I ask you who know more than I, what is the key to unlocking this one?
Thanks in advance.
> Text => Filter through command...
> perl -pe 's#~\n#\n#'
Dear Paul,
Thank you for having explained me how to solve this stupid-but-big
problem with search/replace in TextMate! The workaround you suggest
works fine and faster than TextWrangler. And, believe it or not, I
would not have found it alone: my command-line skills are beyond
mediocrity. However, I suspected I missed something...
:-)
I hope your kind answer will help some other newbies too.
Thanks again!
A.
This may have gotten lost in the last thread, but with the new
~/Library/Application Support/TextMate/Pristine Copy/Bundles folder,
where is the best place to check out the bundles/themes/plugins from
http://macromates.com/svn/Bundles/trunk ?
The directions say to check them out to /Library/Application
Support/Textmate, but the release notes (and Allan's previous email),
said the place for new bundles is the "Pristine Copy" folder. Is that
folder just for bundles? What about the rest of the items that are
currently in /Library/Application Support.... ?
(now I do:
cd /Library/Application Support/Textmate
svn up
to update. Should I move that TextMate folder into.. um... ?? and svn up there?)
Thanks!
John
I'm checking out Textmate as a screenwriting application, using the
screenwriting bundle. It looks great, and fast, and cheap. But I have a
couple of questions. Apologies if they're old chestnuts and please point
me to archive posts, wiki or whatever if that's where the answer lies.
1. I'm using a 12 inch iBook and the mandatory font for screenwriting
(believe me it is mandatory, and using a different one isn't a
possibility) is Courier 12pt. However it's uncomfortably small on my
screen. Is there anyway of zooming it up a bit, or do I have to just use
a larger font size for editing then whack it down again when I print?
Not a disaster if that's the only answer, but I'd like to know if
there's a way round it.
2. I've imported a Final Draft script from a text file, and the
'dialogue' paragraphs need new formatting applying. From a brief fiddle
around, it looks like every paragraph needs changing to the 'style' (not
quite sure if this is the right terminology, but I hope you know what I
mean), then reformatting - ie ctrl-4 then ctrl-q in the screenplay
bundle. I'd *really* like not to have to do this manually. Is there a
search-and-replace stylee way of automating it.
All help and suggestions welcomed.
Matt Hurst
On 27/5/2006, at 4:17, Allan Odgaard wrote:
> But when speaking of the parser and other text editors (that you
> bring up): the performance difference is a) psychological because
> TextMate does not redraw the first page of the document before the
> entire document has been parsed b) because TextMate does something
> very different compared to the editors you mention and c) it
> generally has more complex grammars (try put PHP in an HTML here
> doc in a ruby script embedded in Erb tags in an HTML file -- unlike
> other text editors, TextMate handles this gracefully.)
>
Data: a 2.5 MB text file (plain text / no coloration / 225800 lines,
none exceeding 30 characters) structured as follows:
> ABACA~
> ABACULE~
> ABAISSABLE~
> ABAISSAIENT~
Problem: Replace all the 225800 occurrences of "~\n" by "\n" (iMac G4
800 Mhz, 1GB ram, 10.4.6):
TextWrangler: 30 s (gracefully interruptible)
TextMate: who knows? (forced to quit after 15 mn)
Looks like there is some psychological issue here, indeed.
;-)
I do love TextMate. But for such search/replacements, I couldn't live
without TextWrangler.
Cheers,
A.
It's not that I have to choose it manually the first time which
bothers me, but that TextMate FORGETS the settings sometimes. So
files that have been already saved in the correct encoding are
misinterpreted by TextMate to use UTF8.
Also, the other part of the problem seems to be that TextMate assumes
that UTF8 is used when it's not sure which encoding the file uses
instead of respecting the settings in the prefs.
Max
PS This is just a minor, but annoying bug of mine, I'm a big fan of
TextMate :-)
>> Problem: Replace all the 225800 occurrences of "~\n" by "\n" (iMac
>> G4 800 Mhz, 1GB ram, 10.4.6):
>> TextWrangler: 30 s (gracefully interruptible)
>> TextMate: who knows? (forced to quit after 15 mn)
>
> What happens if you replace '~$' with '~' instead?
Good idea! I thought using regexp would be slower somehow, but:
Problem: Regexp-replace all the 225800 occurrences of "~$" by ""
TextWrangler: no difference
TextMate: 4 mn
It seems that the search engine of TextMate performs far better on
single lines...
Thanks!
A.
Hi,
I've been playing with TM 1.5.1 (948) and wanted to see how it handled XML
files on my 1.67GHz Powerbook.
The file I needed to mess with was a 3.7MB FO file with some long lines
(over 10000 characters and some over 100000.) The formatted objects were
generated by an XSL processor which didn't care about long lines ;-)
Because it had a .fo extension it was opened as Plain Text.
Scrolling around would cause a beachball on some of those really long lines.
(Soft wrapping was on.)
I used the popup to switch to XML. This caused a beachball for about 2
minutes, and subsequent attempts to scroll often beachballed too. Soft
wrapping seems to have got turned off by this switch, which is consistent
with the line numbers in the margin.
The big mistake was to try and do a Find/Replace of all ">" with ">\n".
Whoah. It's been using all the CPU and beachballing for over 30 minutes now,
with no obvious way to interrupt it...
It is a bit distasteful to bring up other products ;-) but TextWrangler did
that Find/Replace in about 2 seconds. Going to XML mode in TextWrangler was
instantaneous.
Are these known problems? I googled for a bit but couldn't find anyone
reporting similar things.
Is there any chance these might get addressed in the 1.5.x codebase? I want
to love TM but currently cannot :-(
Cheers,
Chris
I have posted here before on the topic of encoding issues.
I still have problems with TextMate loading files as UTF8, although I
have set latin1 as standard encoding in the prefs (I have disabled
`use for existing files' though). This is particularly annoying since
I have to manually save every file again just to check whether
TextMate uses the correct encoding.
Thus I would propose to introduce a feature which sets the encoding
globally for one project if the user wishes to. Just add a checkbox
(one encoding for this project) and the same two options you have in
the file save dialog box (encoding and linefeed). If a user still
wants to create a file with a different encoding, he can still choose
to do so in the file save dialog.
This feature would really help speed up my work since I *have to* use
latin1 as standard encoding for LaTeX documents (it's what my co-
workers use) and UTF8 for the webpages I create.
Thanks.
Max
I experience a somewhat strange behavior with footnotes using
MultiMarkdown -- in fact, footnotes stopped working all of a sudden.
Thus,
Text[^fn]
[^fn]: Footnote text
evokes the error message "Use of uninitialized value in substitution
iterator at /Users/sbr/Library/Application Support/TextMate/Bundles/
Markdown.tmbundle/Support/bin/MultiMarkdown.pl line 1582, <> line 1."
MultiMarkdown at line 1582 is handling footnotes, but I cannot figure
out what's wrong. As said, this worked before... And yes, I reverted
to the version in the svn repository to ensure MultiMarkdown is not
contaminated.
Did anyone else experience this before? Any help is greatly appreciated!
Thanks and regards
- Stefan
One of the things that still puzzles me about how people use TextMate
is how they navigate the source code.
I can navigate quite fast on both Emacs and Vim using etags (or
ctags). You just basically put the cursor over a function call, and
press M-. (or Ctrl-]) and that takes you to the definition of the
function. To go back to where you were, you just press M-* (or Ctrl-
g) and you're back.
I know about the Ctrl-] command in textmate that brings up an HTML
list of things to click at, but that is really slow. Besides, I don't
know how to go back to were I was. I also know about 'Find in
Project' but that is _extremely_ slow (although it seems that if you
do a Project Folder it's faster?). At any rate, it still doesn't
solve the navigation issue.
What I've found is that whenever I'm writing new code, and I know
what I'm writing, I can use TextMate and I'm faster on it (due to
snippets, context-sensitive commands, etc, etc). But when I'm
_reading_ code and trying to understand functions, I'm much, much
faster in Emacs or Vim.
Maybe I don't know about some better way of finding stuff?
How are people in the list navigating codebases?
Thanks,
-Oscar
--
pgp fingerprint: BC64 2E7A CAEF 39E1 9544 80CA F7D5 784D FB46 16C1
I do a lot of programming in the IDL (Interactive Data Language). It
is an interpreted language that is very good for scientific
programming and data visualization. I've been using Emacs and the
idlwave mode for editing. I'm trying TextMate to avoid the overhead
that comes with emacs.
At this point I've developed a language grammar that works for
styling the text. I'm having trouble, however, with indentation
rules. A typical IDL construct looks like
if a gt b then begin
y = sin(z)
endif else begin
y = sin(x)
endelse
or, alternatively,
if a gt b then y = sin(z) else y = sin(x)
The keyword begin starts an indented block, the keyword end... ends a
block.
I've tried
/* preferences */
{ decreaseIndentPattern = '\bend(if|else|for|while|case|repeat)?/b';
increaseIndentPattern = '\b(begin|case|function|pro)\b';
}
Which results in indenting:
if a gt b then begin
y = sin(z)
endif else begin
y = sin(x)
endelse
You can probably tell I'm a regular expression neophyte, so any help
would be greatly appreciated.
Thanks
-----------------------------------------------------------
David A. Gell, Ph.D. David.A.Gell(a)umich.edu
University of Michigan
Space Physics Research Lab
2129B Space Research Building phone: 734.763.6221
2455 Hayward Street fax: 734.615.9723
Ann Arbor, MI 48109-2143 mobile: 734.657.6824
Hi,
This is more a regexp question rather than TextMate so it is a bit OT,
but I'll try anyway since I know that there are som clever regexp heads
on this list...
I'm trying to figure out a way to parse a string with an expression, so
that I can filter out subexpressions to build up a structure of
expression objects.
An example expression:
((print == MIB) >> (color == Black));
Our expression structure is built up so that everything is an
expression with a recursive structure (Expression = expression operator
expression):
((print == MIB) >> (color == Black));
(print == MIB)
(color == Black)
print
MIB
color
Black
Additionally, from this list, each variable is also an expression
(print, MIB, ...)
I guess that some regexp magic would be some great tool here, but I
can't seem to figure out the correct approach, and thus need some
starter help.
Any idea of how to approach this? Programming language shouldn't
matter, since it anyway would be some recursive structure to dig down
the structure, but for reference I can say that I'm using C#.
Hi all,
I would like my CV available in both HTML and PDF formats. I have a
Latex version, but am willing to rewrite it in something like
Markdown. In fact, I tried this, but it seems that the MultiMarkdown
Bundle's convert to PDF does not produce the correct output (i.e.
**word** should be strong, and not italic). I would like to know
what other people are doing to deal with this multi-format issue, and
how you're using Textmate to do it.
Thanks for your time,
Jeff.
That did the trick, thanks Brad!
On May 26, 2006, at 11:17 AM, Brad Choate wrote:
> When you specify *.tmbundle, svn only updates the existing
> bundles. Just do "svn up" and it will update everything in the
> Bundles directory, including new ones.
I want to try out the GTD Bundle but when I run the bundle's "Help"
command I get the following error:
/bin/bash: line 39: SmartyPants.pl: command not found
Any chance someone can help me decipher this?
Peace
Mike Gregoire
This morning the TextMate RSS feed announced a new GTD bundle, and I
did the usual bundle update:
cd /Library/Application\ Support/TextMate/Bundles
svn up *.tmbundle
The GTD bundle never got installed, however. I checked /Library/
Application Support/TextMate/Bundles/ and Bundles (disabled) but
it's not there.
Even ran "svn up..." again but still no go.
Do I need to do something special to get GTD?
TIA,
- Dave Winzler
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
With such a great markdown/multimarkdown bundle combination, and now
with CSS Preview, I am doing more and more writing/publishing with
prince from Textmate. However, I have to use a shell command to run
prince. I have tried to hack the screenplay bundles command without
much success. What I am trying to write is:
1. convert a multimarkdown (need multi's footnotes) file with
declared css file to html (or xml)
2. tell prince to run the file with the css file "prince -s /
file/css /tmp/$DST.HTML /tmp/" getting the css file name from the
header in the html file so I don't have to tell prince where it is.
3. open the generated /tmp/$DST.PDF il in preview.
I can get prince to run, but not glob the css file name. My end
product is a PDF of the html source file. Cutie, but not what I want.
Thanks in advance for any help, or if others would like to make this.
Robert
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFEZNn30ZwlS5OIzRcRAus2AJwP6+gcwhFwT4FDWUljZdGBHB4izACeMj1z
TETVHHDSqVtg9/BRaAxwUqE=
=8gsc
-----END PGP SIGNATURE-----
Hi all - new to the list, loving TextMate so far.
Quick question that I cannot seem to find the answer to. After having
customized all my snippets and such, what is the recommended backup
procedure, so that I don't someday lose all my customizations?
Will backing up the TextMate app suffice? Will I need to write a script
to exit the application before backup or is it possible to backup the
bundles and all in-place with the app running? [normally I do not backup
applications - just necessary prefs and such]
Just thought I'd ask.
--
Chris Chapman
DataSetGo
I'm just starting to use TM and coming from skEdit where I could set
the preview to which ever browser I wanted. Is there a way to do that
in TextMate?
Josh
From the release notes:
"If you wish to set the default bundle yourself, the defaults key is
OakDefaultBundleForNewBundleItems."
Could you please give an example how to do this exactly?
Thanks. Oliver
I had Support/bin/CommitWindow.app all along, but I had some
extraneous files that got into Support/bin/CommitWindow.app/Contents/
MacOS/
CommitWindow.2.r3349
CommitWindow.r3349
CommitWindow.r3363
CommitWindow
CommitWindow.r3342
CommitWindow.r3350
CommitWindow.r3373
I'm not sure how they got there. But I wiped out the Support
directory and checked it out of SVN anew. And the problem went away.
Thanks,
Shiran
> On May 24, 2006, at 6:47 PM, Mikael Hultgren wrote:
>
>>
>> On 24 maj 2006, at 17.16, Chris Thomas wrote:
>>
>>>> <pastedGraphic.png>
>>>> If I go ahead and press 'Commit', it fails with the message:
>>>>
>>>> Subcommand 'commit' doesn't accept option '--diff-cmd arg'
>>>
>>> Somehow, on your system, the command line argument "--diff-cmd"
>>> to the CommitWindow is being interpreted as a filename. I'm
>>> baffled as to how this could happen.
>>>
>>> A workaround would be to uncheck the --diff-cmd and 'svn' items
>>> in the list. Anyone else see this problem?
>>>
>>
>> Yeah, i had the same problem. It resolved itself when i checked
>> out the new version of the CommitWindow.app.
>
> *forehead smack*
>
> Yes, you need to check out not just the bundle, but also the latest
> CommitWindow.app from the Support directory. Sorry I didn't make
> this clear in the checkin comments.
>
> Chris
Does anyone know how to take a list that looks like this. . .
# Staff Development
Purpose: Create a productive working environment.
* @schedule staff meeting
* @read
# Develop new class
* @email Frank re: class
* @call Mary re: syllabus
# Fix Car
* @call Jim 421-8532
* @computer google rental cars
. . . and create a new file that looks like:
# Develop new class
# Fix Car
# Staff Development
. . . and another file that looks like:
* @call Jim 421-8532
* @call Mary re: syllabus
* @computer google rental cars
* @email Frank re: class
* @read
* @schedule staff meeting
Some of you will recognize that I am trying to adopt a GTD system
inside of textmate. I am currently using a set of applescripts for
OmniOutliner (http://www.kinkless.com/), but I am looking for
something more portable and flexible (markdown format)
If you don't have any input on this, I would be curious to hear how
you keep track of projects and todo's in TextMate.
Thanks,
Stephen
First,
Sorry this isn't a TextMate question/comment/whatever, but I honestly
don't have a clue where to go.
I have this process that's been showing up for the last few days in
Activity Monitor. I can't seem to see it when I run ps aux or top.
bfobserver
is the name. It's been eating about 50% of my ram on a consistent
basis, and it's pissing me off. If I choose ALl Processes,
Hierarchically, I see the following:
launchd (root) -> bfobserver (root) -> python (eric)
Anyone have a clue?
- Eric
Folks,
I am just playing with TextMate and trying to get a better grasp of
regexps.. ;)
A language grammar for some time stamped log files (like system.log)
{ scopeName = 'text.logfile';
fileTypes = ( 'log' );
foldingStartMarker = '/\*\*|\{\s*$';
foldingStopMarker = '\*\*/|^\s*\}';
patterns = (
{ name = 'invalid';
match = '(crash(dump|ed)|error|failed)';
},
{ name = 'constant.numeric';
match = '[0-9]';
},
{ name = 'keyword.operator';
match = '(\(|\))';
},
{ name = 'string.url';
match = '\s(\/.*log)';
},
{ name = 'string';
begin = '^';
end = ':\s';
patterns = (
{ name = 'constant.language.time-stamp';
match = '[a-zA-Z]{3}\s[0-9]+?\s[0-9]{2}:[0-9]{2}:[0-9]{2}';
},
{ name = 'keyword';
match = '(launchd|authexec)';
},
{ name = 'variable.other.process';
match = '\w+?\[\d{1,6}\]';
},
);
},
);
}
Has anyone made, or thought of making, a bundle for webworks and/or
freemarker templates?
I'm going to use Webworks in an upcoming project and although it's
mostly html for me, it could be nice with complete correctness.
Andreas
Hi,
Ever since r3350, I have not been able to commit changes to
Subversion from within TextMate. When I try to commit, I get the
following screen.
If I go ahead and press 'Commit', it fails with the message:
Subcommand 'commit' doesn't accept option '--diff-cmd arg'
I don't have any SVN-related environment variables set in TextMate.
I've seen comments in the revision logs related to specifying a diff
command, but don't understand why commit should be affected by this.
Any ideas?
Thanks,
Shiran
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.