When I launch the new "Preferences..."
command, I get the following error.
Any ideas?
Thanks, Piero
Traceback (most recent call last):
File
"/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/bin/configure.py", line 5, in ?
pref = tmprefs.Preferences()
File
"/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/bin/tmprefs.py", line 18, in __init__
self.prefs.update(self.readTMPrefs())
File
"/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/bin/tmprefs.py", line 39, in readTMPrefs
plDict = plistlib.readPlist(pl)
File
"/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/bin/newplistlib.py", line 77, in readPlist
rootObject = p.parse(pathOrFile)
File
"/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/bin/newplistlib.py", line 397, in parse
from xml.parsers.expat import ParserCreate
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/_xmlplus/parsers/expat.py", line 4, in ?
from pyexpat import *
ImportError: dlopen(/System/Library/Frameworks/Python.framework/
Versions/2.3/lib/python2.3/site-packages/_xmlplus/parsers/pyexpat.so, 2):
no suitable image found.
Did find: /System/Library/Frameworks/Python.framework/
Versions/2.3/lib/python2.3/site-packages/_xmlplus/parsers/pyexpat.so: mach-o,
but wrong architecture
A> Le 12 août 07 à 09:09, Dushan Mitrovich a écrit :
>
>> I missed a few days of lists a week or so ago, and I was wondering if
>> there was an archive I could go to to read the missed messages. I
>> didn't notice one on the website.
>>
>> If there is one, what's the URL? Thanks.
>
> http://comox.textdrive.com/pipermail/textmate/
Thanks, Alain, this did the trick for me.
Bastian Philipps <bp.profiles(a)gmail.com> wrote:
> There is also Gmane, which I personally find a lot more convenient than the
> typical pipermail archives
>
> http://thread.gmane.org/gmane.editors.textmate.general/
This is a good thing to find out about, Bastian, thank you. And I
agree, it's
very convenient.
- Dushan
Small request for the beamer language grammar. Would it be possible
for \frametitle to show up in the symbol list? That way you could
quickly navigate to individual slides. Thanks, Mark
Hi Everyone,
I just merged the typeset and view branch back to the mainline. Thanks to
everyone who made the effort to switch over to the branch! I think there
are still some good ideas that can be implemented but this is good progress
for now.
Please go back to using the the mainline now. I think the easy way is just
to remove Latex.tmbundle and then do an svn update in your Bundles
directory. If you are being selective about which bundles you check out
then just checkout the Latex bundle from the mainline.
Please let me know asap if you find anything wrong with this version.
Thanks,
Brad
--
Brad Miller
Assistant Professor, Computer Science
Luther College
I don't know if feature requests go on the email list or not.
I wanted to suggest a new "Output" option for the "Filter Through
Command" action. I think adding the option "Insert to Clipboard"
would be useful. I notice I run a number of *nix commands on text
(awk, tr, uniq, etc) but then it would be nice to have the option
where to paste it.
----
Brian H
binarynomad(a)gmail.com
http://www.binarynomad.com
I missed a few days of lists a week or so ago, and I was wondering if
there was an archive I could go to to read the missed messages. I
didn't notice one on the website.
If there is one, what's the URL? Thanks.
- Dushan
Hi all,
What is the procedure for making a new (small) new language bundle
available?
Add to the SVN? (need privileges, of course)
Host it oneself?
I'd mostly in the first place just like an SVN I can access from home and
work as it incrementally builds to something more useful.
I googled bundleforge (distant memory that that was an open place for
bundles, but it says come back soon?
t
Hi,
I have a few questions regarding my TM & Latex-Combination - I'm
switching from TexShop, but I just like TM better.
So, for using the package "glossaries" with TexShop I had to create
an extra engine... containing th following commands:
#!/bin/bash
bfname="`basename "$1" .tex`"
pdflatex "$1"
bibtex "$bfname"
makeindex -s "$bfname".ist -t "$bfname".glg -o "$bfname".gls
"$bfname".glo
makeindex -s "$bfname".ist -t "$bfname".alg -o "$bfname".acn
"$bfname".acr
pdflatex "$1"
pdflatex "$1"
Could be that this is a little often, but afterwards everything was
compiled, index, acronyms, bibtex etc...
How can I port this to TM? When I just select "Typeset and Preview"
i.e. glossaries don't show up or don't get updated.
??
Thanks a lot
flo
I'm new to TextMate and thinking of using it for teaching purposes. I would
like to fill out a form and have TextMate to automatically create the needed
file. For instance I have a snippet called csc (short for
CreateStandardClass) that looks like this
Class: ${1:ClassName}
SubClassOf: ${2:Object}
InstanceVariables: ${3:varName1},${4:varName2}
After I've entered the needed info (Rectangle, width and height) it looks
like this
ClassName: Rectangle
SubClassOf: Object
InstanceVariables: width,height
After entering height and pressing tab I would like TextMate to generate the
Objective-C code below. (It should be possible since all needed data is in
the variables $1, $2, $3 and $4)
// Rectangle.h
#import <objc/Object.h>
@interface Rectangle: Object
{
int width;
int height;
}
-(void) setWidth:(int) w;
-(void) setHeight:(int) h;
-(int) width;
-(int) height;
@end
// Rectangle.m
#import "Rectangle.h"
@implementation Rectangle;
-(void) setWidth:(int) w
{
width=w;
}
-(void) setHeight:(int) h
{
height=h;
}
-(int) width
{
return width;
}
-(int) height
{
return height;
}
@end
Is there a way to do this?
Thanks Bob
I want to produce
[origin [pt x]];
using a snippet called msg (short for message) that looks like this
[${1:Receiver} ${2:message}]
When I write msg and hit tab I am presented with
[Receiver message]
where Receiver is highlighted. I write origin and hit tab. Now I get
[origin message]
and message is highlighted.
I write msg again and hit tab.
To my surprise I get
[origin msg]
with tha caret after the last bracket .
So it seems that TM is giving priority to the outer snippet??? But I think
that two other alternatives might be better
Alternative 1: Forget all tab stops for the first snippet when an inner
snippet is activated.
Another alternative is
Alternative 2: When hitting tab give priority to the inner snippet first and
when it is finished then give focus to the outer snippet and let it do its
thing.
If I am wrong in my thinking tell me why. If I am right maybe it is some
programming difficulty with nested snippets that prevents the desired
behavior.
Thanks Bob
--
View this message in context: http://www.nabble.com/Tab-stops-work-strangely-with-nested-snippets--tf4250…
Sent from the textmate users mailing list archive at Nabble.com.
In a screencast, control -> less-than was used to change hr and img to <hr />
and , respectfully (the -> is not part of the key combination). What
happened to this feature? It no longer closes it like this: <hr />. It
only shows <hr></hr>.
--
View this message in context: http://www.nabble.com/signleton-tags-not-supported-with-control-less-than--…
Sent from the textmate users mailing list archive at Nabble.com.
A.K.A. Objective-c Annotation project,
I have started to think how I can improve the objective-c code completion,
adding additional context sensitive suggestions. Currently there are only
context sensitive suggestions for a limited set of operations inside an
Objective-C method call context.
What I would like is for constructs such as:
returnCode == NSOKButt[caret]
to be context sensitive as well, the problem is that just looking at the
type of returnCode is not going to work since it is most probably an int,
of which there are hundreds in Cocoa (counting functions that return int
and constants).
So my thinking is that using a regexp I can gather statistics from various
open-source project and make educated guesses as to what a more "detailed"
type would be, thereby being able to provide better suggestions.
for example:
-(void)openPanelDidEnd:(NSOpenPanel*)panel returnCode:(int)returnCode
contextInfo:(void*)contextInfo
{
if (returnCode == NSOKButton)
}
I would parse out the method header, the argument names + the method part
they were connected to, and then do a regexp search in the body of that
method that would check if any of the arguments are compared/assigned
against a constant/function declared in the cocoa headers. Check if this
constant/function is of a more specific type (in reality a cocoa typedef
enum).
if so add this method to a file of special cased code completions (and
ofcourse enough information to deduce what special treatment that would
be).
So now to my question to you fellow TextMate using Objective-C users:
Do you think this will help you in your coding or will it get in your way?
Have I overlooked something that makes this not viable?
Should I instead provide a special nib with a giant talking paper clip?
Thanks in Advance
Joachim Mårtensson
Is there a particular reason that there aren't any snippets in the Rails
bundle for validates_acceptance, validates_each, validates_inclusion, or
validates_numericality_of?
I attached some, including versions with "if" for those that seemed
reasonable (ie, those whose closest counterparts had if versions already in
the bundle).
Small problem with the LaTeX grammar's handling of single quote
strings. The following:
'tis suppos'
as it occurs in:
'tis suppos'd
gets scoped as invalid.illegal.string.quoted.single.latex. LaTeX,
however, has no problem with such constructions. Perhaps this would
be difficult to fix and the problem is, in any case, rare. (I only
hit upon it writing a Hume lecture.) Just thought I would pass it on.
Best, Mark
I want to produce
[origin [pt x]];
using a snippet called msg (short for message) that looks like this
[${1:Receiver} ${2:message}]
When I write msg and hit tab I am presented with
[Receiver message]
where Receiver is highlighted. I write origin and hit tab. Now I get
[origin message]
and message is highlighted.
I write msg again and hit tab.
To my surprise I get
[origin msg]
with tha caret after the last bracket.
So it seems that TM is giving priority to the outer snippet??? But I think
that two other alternatives might be better
Alternative 1: Forget all tab stops for the first snippet when an inner
snippet is activated.
Another alternative is
Alternative 2: When hitting tab give priority to the inner snippet first and
when it is finished then give focus to the outer snippet and let it do its
thing.
If I am wrong in my thinking tell me why. If I am right maybe it is some
programming difficulty with nested snippets that prevents the desired
behavior.
Thanks Bob
Hi Everyone,
I am using the TODO bundle, or wish to use it, to keep track of things to do
in my thesis. My Thesis project directory is off the root directory and
contains many Latex files. The problem is when I use the show TODO list, the
command runs properly but does not show the TODOs that are present in the
project files. i.e. the read out gives 0 in the TODO/CHANGED/FIXME columns.
The bundle works fine on single files found elsewhere in my system. I have
the latest TODO bundle check out and the latest bundle support, running T
1.56. Does anyone know what I am doing wrong - why is it not working?
Regards,
Mark Perrin
I am not a computer programmer, but use TM as my word processor. I am
interested in creating a macro which selects the text from the location of
the cursor to the next period in the sentence and then deletes that text.
Can anyone tell me how I can go about that?
Thanks for the help.
Context Sensitive HTML attribute completion!!!
You'll have to have the latest copy of the support folder and the HTML
bundle.
I have tested this quite a bit on my machine, but
if you can find a way to make it break, please let me know and I'll
fix it right up.
To use: tap the space key when your caret is just before the last
character in an html tag.
It looks up a list of attribute to tag associations and only shows you
a list of the ones that apply to the current tag that you're in.
<div TAP_SPACE_HERE>
or
<img TAP_SPACE_HERE />
If you type a few characters before you hit space, it'll use those
characters to limit your list even further.
for example:
<img onTAP_SPACE_HERE />
That will limit your list of completions to anything that starts with
"on" and is applicable to the <img> tag.
Also, works with lowercase and UPPERCASE HTML tags. When you use
uppercase tagnames it'll give you upper and titlecase attribute names,
depending on what's appropriate.
This version DOES NOT look at your doctype, it just gives the same
list for all html languages.
I think I'll wait for TM2 to do the doctype thing since it'll be a lot
easier then.
I'll do an official announcement with screencast and everything once
people argue endlessly about the keybinding that it should use.
thomas Aylott — subtleGradient — CrazyEgg — bundleForge
I've just started to try out TextMate :). I've created a little snippet
called vam (short for variable and method) that looks like this
{
int ${1:var};
}
-(void) set${1:var}:(int) n;
So when I enter vam and hit tab, I am presented with the following chunk
{
int var;
}
-(void) setvar:(int) n;
where var is highlighted. If I start to type numerator the chunk changes to
{
int numerator;
}
-(void) setnumerator:(int) n;
However I would like setnumerator to be outputted as setNumerator.
Is there a way to do this?
Thanks Bob
Hey there
I recently had a look at the GetBundle bundle and liked the fact,
that you can have a look at the available bundles online and then
select which ones to install. I also like the growl notification (why
doesn't it use my default bezel?).
I'm currently updating my bundles manually via svn from http://
macromates.com/svn/Bundles/trunk and always install all bundles
including the support folder, plugins, etc. It takes up some space on
my HD but that way I'm sure, all the bundles work properly. I install
them in my "/Library/Application\ Support/Textmate/" folder. If I
remember correctly, this is the recommended place to install
additional/updated bundles. The question I asked myself is, why
GetBundle installs its bundles into "~/Library/Application\ Support/
Textmate/Pristine\ copy/Bundles"? -- It would be nice, if there was
some kind of setting or shell variable, where you could set where to
install the bundles (for all users or just the current one). The way
it's handled now, the bundles available via svn and the ones I
install manually via download and double-click get mixed up in the
same folder (Pristine copy). Also I don't now how the updating of the
Support or PlugIn folders gets handled via GetBundle. I'm reading a
lot about conflicts between wrong versions of the dialog plugin and
bundles which depend on the newest version of the plugin on this list.
Maybe someone can shed some light on these things? Maybe a help file
for this bundle wouldn't be wrong also, since it's targeted to users
which aren't familiar with svn and how this whole bundle thing works.
Thanks in advance!
Oliver
Hi everyone,
You may have followed that I recently manage to update my
bundles after a long period using outdated ones :D
And then, I noticed that snippets for inserting images and
link in the HTML bundle have dissapeared…
I created my own snippets to replace them; it's no big
deal… But I was curious why those snippets have
dissapeared ?? Am I the only one using them ? :)
TIA
I tried to go to the preferences dialog in the Latex bundle, and
nothing happens. I see "/bin/bash: line 3: configure.py: command
not found".
Kevin Horton
Ottawa, Canada
It seems there is no way to have parts of a capture scoped by calls
to $self or #repository elements, which means that complex captures
get to have many capture elements.
It would be handy if there was a code for language grammar capture
numbering, so that these are more resilient and self-healing when the
regexp underlying their definition changes.
What I would suggest for TM2 is something like a code for "next
group" so instead of explicitly numbering all matches, only non-
sequential elements are explicitly numbered, and all others are self
numbering. A nice code would be "#". A nice twist would be if this
supported skipping elements when suffixed with an addition "#++" or "#
+n"
Then, if we change a match from, say:
match = '(a)(b)(c)';
To say:
match = '(a)(a1)(b)(c)';
Then the numbering, instead of manually being recoded from this:
1 = { name = 'a'; };
2 = { name = 'b'; };
3 = { name = 'c'; };
to this:
1 = { name = 'a'; };
2 = { name = 'a1'; };
3 = { name = 'b'; };
4 = { name = 'c'; };
Could simply stay as this (where # is a code for "next sequential
number"
1 = { name = 'a'; };
# = { name = 'a1'; };
# = { name = 'b'; };
# = { name = 'c'; };
In the more complex case,
1 = { name = 'a'; };
# = { name = 'a1'; };
#+1 = { name = 'b'; }; //skips a group
# = { name = 'c'; };