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-----