(Forwarded to the list after Max's permission. I've commented inline,
also added Allan's comments)
Hi Max,
On Sep 9, 2006, at 6:40 PM, Max Lein wrote:
> Dear Haris:
>
> You've asked for user feedback on the LaTeX bundle (I'm Max Lein
> who posted on the textmate mailing list).
> To be honest, I didn't know about many features until I've seen
> your webcast … :-) You're doing great work, I use your bundle
> pretty much on a daily basis (I'm a mathematical physicist). I'll
> be overly critical here to help you make your bundle even better.
Thanks for the feedback!
> I would think (i) is my most important suggestion. There are some
> commands I have a tendency to misspell -- \smallksip, I mean
> \smallskip is one of them.
>
> (i) No known command list: suggestion: type command: text stays
> grayish-blue until a command is recognized. Then the text turns
> dark blue. Basically there should be user feedback whenever a
> command is recognized.
>
> I can provide you with a list of `official' LaTeX commands if needed.
>
> Obviously, something similar should be implemented in math mode as
> well (start with dark red which changes to red once a command is
> recognized).
allan: (i) I prefer that as well — if we can get a list, that’d be
great!
me: I agree too. Max (and anyone else as well), if you provide us
with the commands, for within math and out of math, then we'll add
them in.
>
> (ii) Sometimes when beginning inline formulae, the whole screen
> blinks as if there is a syntax error.
allan: (ii) this is because $ is a smart-typing pair, and it finds
that there is a “starting” $ outside the screen — not sure how
to best address that (probably we want to keep it a smart typing pair)
me: I would say that's a good enough reason to use \( \) instead of $ $
> (iii) Footnotes and marginpars should be marked within the text;
> perhaps the footnote's/marginpar's text could even be folded (not
> sure if automatic foldmark recognition works on a bundle level).
allan: (iii) marking: yes, folding: we can’t do w/o having the
braces align
me: The text in the footnote gets a scope of meta.footnote.latex
So if you add that scope to your coloring theme and add some color to
it, you'll get highlighted footnotes. Not immediately possible for
marginpars, but we are thinking of matching those as well and giving
them some scope extending both footnotes and marginpars, so that you
could color both of them at the same time.
Update: marginpars are now matched with scope
meta.paragraph.marginpar.latex, so you can color them as you like.
> (iv) Use input instead of include when dragging a .tex document
> into another: afaik include is deprecated and input is preferred
> instead. You cannot `include' some bundles for instance (diagxy
> comes to mind), you have to use input instead.
allan: (iv) probably then we should even markup include as
invalid.deprecated
me: I don't think \include is deprecated. I use \include for
different chapter of a book etc, and it does a number of special
things like clear all the floats, start on a new page, generate
separate aux files etc.
Of course, you can easily change this in your own copy, by opening
the bundle editor and finding the appropriate drag command. All you
have to do is change the \\\\include that appears there to \\\\input.
> (v) Forget about the deprecated math environments `\[ … \]' and `\
> ( … \)', just remove them from your bundle. Guidelines by relevant
> journals suggest to use specific environments anyway (align for
> instance).
allan: (v) I’m all for removing stuff, especially when deprecated ;)
me: I would need some stronger evidence that it is deprecated. As far
as I understand, the alternative to \( \) would be $ $, and I don't
see what advantages that has except that it is much harder to parse
the file looking for math in it, and if you miss one of the $ you
might not find out until much much later.
As for \[, \], I again don't think they are deprecated, but I would
love to be proven wrong. The only alternative I see is \begin
{equation*}, which requires the amsmath package. I might possibly
agree with you that in the context of writing math papers for
submission to journals, one might want to avoid \[, \], (though still
I would need to see some strong evidence for that), but I don't see
why I shouldn't be using it in the notes for my students for
instance. Replacing them all by \begin{equation*} is a single search
and replace anyway. (Note to self: Actually, having a command that
toggles the various math environments might not be a bad idea at all.)
Do you have references to these guidelines of these journals
(including non-math/physics journals)?
> (vi) Inline formulas should have a grayish background so it's
> easier to see where formulas begin and where they end. (This one is
> also important to me.)
allan: (vi) that’d be a theme-thing, as long as the grammar marks
them up
me: Do you want the background for inline formulas to be different
than the one for multiline formulas? Because as things are already,
you can target the scope math.tex in your theme, and that would color
all math however you tell it to.
> (vii) You already have tab triggers for section, subsection and
> subsubsection, so how come chapter is missing?
allan: (vii) oversight (and we rarely need it)
me: Basically, initially we were trying to keep the number of
snippets at a bare minimum because of the way they were showing up in
the menu, as a flat list. On top of that, most of those can instead
be accomplished via the “Insert Command…” command, along with
customizing it through the LaTeX Configuration file, so the other
maintainers had a hard time even convincing me to keep the section
ones in. Now that we can create submenus, we've toyed with the idea
of adding more snippets, so any ideas on what other snippets to
include are welcome.
>
> (viii) A way to execute bibtex (and pdflatex twice to see whether
> all additional citations have been included).
allan: (viii) latexmk.pl should do that — maybe we should make this
the default, not sure if that would bother anyone (maybe some
workflows would mean much more time typesetting)
me: latexmk.pl will actually do a lot more for you. The Help file
should describe how to set it up. I'd personally prefer not to have
it as the default. It is however easy to set it in your system.
> (ix) Closing environments: when I manually type \begin{environment}
> and then close the environment, the `\end{environment}' which is
> added is indented like the text within the environment. Hence,
> TextMate's code folding does not recognize the block.
allan: (ix) http://macromates.com/ticket/show?ticket_id=B34CCC0C --
the request might be granted, but use begin⇥ or ⌘{ until then
me: just follow the workaround suggested in that ticket (and most
importantly, don't manually type \begin{environment}).
> Now concerning the Help. The help is nicely structured, although I
> miss a nice webpage with the key features of your bundle. That
> would have helped me to use more of the functions included in your
> bundle.
Hm, that was actually partly our intent with rewriting the help file
this way. To make it easy to find out how to do stuff. Looking at the
bundle is of course the best way to find out what commands are
available. How is the help lacking in showing you what the bundle can
do?
>
> (i) A glossary of TM_LATEX_BLABLA variables. That would be really
> helpful, especially for people who just want to check out what you
> can do with the LaTeX bundle.
There are basically only five such variables, most of them having to
do with more particular workflow setups:
TM_LATEX_VIEWER if you don't want to use the built in previewer
TM_LATEX_ERRLVL if you want some finer control on what errors
show up
TM_LATEX_COMPILER if you want to use latexmk.pl
TM_LATEX_OPTIONS for any options you might want to add to the
command line call to the compiler.
and finally, TM_LATEX_MASTER, the only one of more frequent use, when
setting that a master document should be used for the compiling.
There used to be a section containing all the variables, back when
there were 10 of them, but we thought that since there are not that
many of them, we'd just mention them in the corresponding section of
the help file.
Basically we are trying to keep the help at ar reasonable size, while
still making sure it maintains all the important information.
> (ii) Overview over key functions (auto completion of citations, etc.).
Isn't the explanation in section 5.2 of the manual adequate for that?
In general that's the purpose of the entire section 5. In what ways
is that failing?
>
> If you wish to post this on a mailing list, feel free to do so. As
> an avid user, I would like to participate in the discussion,
> though :-)
>
> Greetings from Germany
>
> Max
Thanks again for your feedback (and let me thank in advance everyone
else participating in this discussion). There's a lot of areas in
which the LaTeX bundle could be improved, and because of the very
diverse group of people using it it's hard to know what would help
every individual user. So your feedback is instrumental in seeing the
needs of the users of the bundle.
Haris
Hi there,
Using the Blogging bundle, when I drag
an image, I now have those errors :
/usr/lib/ruby/1.8/cgi.rb:279: warning:
already initialized constant CR
/usr/lib/ruby/1.8/cgi.rb:282: warning:
already initialized constant LF
/usr/lib/ruby/1.8/cgi.rb:285: warning:
already initialized constant EOL
/usr/lib/ruby/1.8/cgi.rb:287: warning:
already initialized constant REVISION
/usr/lib/ruby/1.8/cgi.rb:289: warning:
already initialized constant NEEDS_BINMODE
/usr/lib/ruby/1.8/cgi.rb:292: warning:
already initialized constant PATH_SEPARATOR
/usr/lib/ruby/1.8/cgi.rb:313: warning:
already initialized constant HTTP_STATUS
/usr/lib/ruby/1.8/cgi.rb:317: warning:
already initialized constant RFC822_DAYS
/usr/lib/ruby/1.8/cgi.rb:320: warning:
already initialized constant RFC822_MONTHS
It appeared after updating to TM v.1248. It was working
fine before that...
TIA :)
Hi!
Using CJK in TextMate from time to time I would be interested what
other users who need CJK-input do to circumvent the problems of
CJK-input in TextMate.
Right now I usually use Sidenote (http://www.chatelp.org/?s=Sidenote)
if I have to put in some CJK-text. Typing it in there and pasting it
then to the fitting place in TextMate. It's quite handy if you have
only to type in small pieces of CJK-text.
What are other people doing?
Niels
Hello,
I've been trying to buy TextMate and it's proven to be quite
difficult. The website says I do not need a Paypal account to do so,
but using the option of directly buying with a debit card fails (I
had someone else tried, and he had the same problem so it's not just
my card). So I did open a Paypal account, but I won't be able to use
it until they verify my card, which is taking days.
This might be a peculiarity of using Paypal from France, but I was
wondering if others had had the same bad experience, and how they
managed to get around it. TextMate is great, but I only have 3 demo
days left :(
By the way, if there is a solution, I have another potential buyer in
my office (the subversion integration is the feature that sold
him ;-) ).
Alan
--
Alan Schmitt <http://alan.petitepomme.net/>
The hacker: someone who figured things out and made something cool
happen.
.O.
..O
OOO
There doesn't seem to be a way to remove the folding markers from the gutter
once they've been set.
Is there something obvious that I'm not doing or doing incorrectly?
Thanks,
Dan J.
--
Daniel Jewett
http://www.solidether.net
dan(a)solidether.net
1-914-332-7513
The thread "Deleting files from the project drawer" reminded me that
I've been meaning to ask about duplicating files. In the finder there
is an option to duplicate a file giving it a name something like
"copy of index.php". There are plenty of times I don't want to start
from scratch and would like to duplicate a file and just change some
minor things. Is there a reason this isn't a part of the context menu
in the project drawer? If not I'd like this be a feature request for
the next version. :)
Perhaps to make it better than the Finder's "duplicate" option maybe
choosing it in TM could not only duplicate the file and name the file
"copy of index.php" but also select the "copy of index" portion of
the name for immediate renaming, leaving the extension ".php". That
would be pretty slick and useful.
Josh
Hi,
Problems with the MySQL Table Browser. I have exactly the same
experience as user Mark Lacas in this conversation: http://
comments.gmane.org/gmane.editors.textmate.general/12735
Is there any progress and/or help you can give on this issue?
Thanks
_________________
George
Hi,
I'm sure this is a simple question. In an HTML file, Commend-B wraps
the selection in <strong></strong> tags. I've just installed the
MediaWiki bundle, and want to add my own snippet to do the same, but
wrap between ''' marks. I created a snippet in the MediaWiki bundle,
set Key Equivalent to Comment-B, and scope to
"text.html.mediawiki" (which is what is reported when I do a Control-
Shift-P in the document to view the current scope. However, I still
get <strong> tags instead of '''. What have I done wrong here?
TIA
_________________
George
Instead of tying find/replace in files to a projects, it would be nice
to find all files in a directory or its descendants that contain a
regular expression.
Or am I a fool, and this is already easy, without recourse to 'find .
-type f -exec grep -Hin "<expr>" {} \;' ?
--
Chris R.
======
Not to be taken literally, internally, or seriously.
Hi all, I'm writing a ruby GUI script (run with rubyw) which I've
packaged into a mac app. I launch this from the command line using
open 'my.app', and the debug output goes to the console log, which I
can see with the Console app.
Is there any way I can tie the launching of the app & the debug
output into a Textmate command? The Run command for ruby looks very
pretty:-) And it would mean leaving textmate even less (and more
importantly having 1 less window open & 2 less apps running:-))
Cheers,
graham
When I open a project that looks like this:
app
--- views
------ catalogs
Everything else under views shows (folders and files), but not catalogs. I
checked the preferences for folder excludes, but that didn¹t seem it.
Any thoughts?
Hi there,
This a feature request : I would like to be able
to cancel a “Find in Project”.
Because while TM searches, it basically freezes
for any other actions...
TIA :)
Hi there,
I just want to know the general opinion about deleting
files from the project drawer.
Personally, I always only “delete references” and I find it
a little bit dangerous that the default action in the dialog
box is “move to Trash”... I have to be carefull each time I
press backspace in the project drawer.
Am I the only one bothered by this behaviour ? What
do you guys think ?
I would prefer the default action in the dialog box to be
“delete references” and on top of that, another dialog
box to confirm that I really want to move the file
in the Trash (OK, maybe this would be too much...)
Waiting for your comments :)
On 07/09/2006, at 6:13 PM, textmate-request(a)lists.macromates.com wrote:
> From: guerom00 <romain.guerout(a)stud.unibas.ch>
> Date: 7 September 2006 1:02:24 AM
> To: textmate(a)lists.macromates.com
> Subject: [TxMt] Deleting files from project drawer
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> Hi there,
>
> I just want to know the general opinion about deleting
> files from the project drawer.
> Personally, I always only “delete references” and I find it
> a little bit dangerous that the default action in the dialog
> box is “move to Trash”... I have to be carefull each time I
> press backspace in the project drawer.
>
> Am I the only one bothered by this behaviour ? What
> do you guys think ?
>
> I would prefer the default action in the dialog box to be
> “delete references” and on top of that, another dialog
> box to confirm that I really want to move the file
> in the Trash (OK, maybe this would be too much...)
>
> Waiting for your comments :)
Definitely agree with the confirmation.
I find myself deleting all referenced files and re-adding them to the
project drawer regularly.
Why?
Because the project drawer doesn't update itself. I often start with
a template, then 'save as'. When I do this, the file that I started
with in the project gets replaced by the file I saved as. So, I then
add the old file back to the project drawer.
I also often work with other people. I copy their files into my
project folder, but the newly added files don't appear once switch
back to the project.
Consequently, during the course of a whole site, it's (for me)
quicker to simply delete all the references and start again each time
I save a file.
Maybe I'm not doing things the right way...
Cheers
Jonno
I'm spending a lot of time writing html mockups, which means i get to
work lots on "raw" html files not tied to any backend of any sorts.
So my work usually exists of switching back and forth between camino
(I use safari for normal browsing) and often navigating between files.
Now what I'd like is a way to catch the file I currently view in
camino and start to edit it in textmate, and also take the file I
edit in textmate and show it in camino (in the current tab)
The last thing there should already exist i suppose in some of the
"preview in browser" actions, but what about getting the current html
file from camino and editing in textmate?
______________________
Andreas Wahlin
Webbutvecklare
Webbhuset AB
Östra Hamngatan 45, 411 10 Göteborg
Telefon: 031-339 19 19, Direkt: 031-739 18 20, Fax: 031-711 12 20
www.webbhuset.se
Privileged/confidential information may be contained in this message.
If you are not the addressee indicated in this message (or
responsible for delivery of the message to such person), you may not
copy or deliver this message to anyone. In such case, you should
destroy this message and kindly notify the sender by a reply email.
Thank you.
Hi -
New to TextMate and this list and very impressed so far with both.
I am experimenting with extending existing Language Grammars, and
I've run into a problem. I wonder if this is my problem or not, or
simply a problem in understanding the system:
It appears that some pattern definitions override or erase others.
For instance, I've added a feature to grab a reference to a
particular email in Mail.app and create a tag called "emaillink" in
my GTDalt document. Specifically, I want to add these emaillinks to
the notes fields in my GTDalt document (I mention this as it becomes
important below). I decided to make a new Language Grammar, based on
GTDalt, and wrote the following:
{ scopeName = 'text.gtdalt.jb';
fileTypes = ( 'gtd', 'gtdlog' );
foldingStartMarker = '^\s*project';
foldingStopMarker = '^\s*end\s*$';
patterns = (
{ name = 'meta.jb';
match = '\bmy_emailllnk_tag\b';
},
{ include = 'text.gtdalt'; },
);
}
Seems like it should work, but it doesn't. This appears to be because
the definition of the notes field (in the text.gtdalt Language
Grammar) erases my scope tag.
I see this, too, when I try to extend the C Language Grammar to
include color markup of the API I am using. In many cases, wherever
the text was in Scope source.c, it works. But as soon as the term in
question appears within a function declaration or a similar parsed
structure, my scope tag is eliminated in favor of the parsed one. The
position of the "include" line doesn't appear to make a difference.
It seems like there should be a way to have persistent scope tags,
for exactly this purpose -- color-coding particular terms or
rendering particular strings a certain way, potentially regardless of
local context. But if not, could someone suggest a workaround?
Thanks very much
jb
I love the html add attribute (command+control+option+end inside a
tag) however, i'd really like it if it kept within scope.
As it is now, triggering the snippet (?) in this context will add an
attribute to the NEXT tag, not the current one
<tag stuff|>
while
<tag stuf|f>
will trigger the snippet as one would imagine
(| denotes caret position)
i have a weak recollection that this was up sometime but ... a fix
thomas?
______________________
Andreas Wahlin
Webbutvecklare
Webbhuset AB
Östra Hamngatan 45, 411 10 Göteborg
Telefon: 031-339 19 19, Direkt: 031-739 18 20, Fax: 031-711 12 20
www.webbhuset.se
Privileged/confidential information may be contained in this message.
If you are not the addressee indicated in this message (or
responsible for delivery of the message to such person), you may not
copy or deliver this message to anyone. In such case, you should
destroy this message and kindly notify the sender by a reply email.
Thank you.
Since switching to TextMate, I rarely make any syntax mistake, but
when I do, then it's because I write `\medksip' instead of `\medskip'
for instance.
All unknown LaTeX commands in regular text are grayish (with a few
notable exceptions such as \cite, \eqref and \ref for instance). I
would like to make a list of `known' LaTeX commands (including the
different skips, \noindent, etc.) and color them differently.
How would I do that?
With a little abuse, I've managed to color them red by adding them to
the constant.character.latex list, but this is not really a clean
solution …
Thanks a lot.
Max
Hi there,
could it be, that i cannot paste text from M$ Remote Desktop into
textmate? I can paste text from there to any other application such
as Stickies, BBEdit, a.s.o.
Regards Thomas
Hi all,
I've been working on a bundle for Stata and I've run into the
following problem. Occationally in Stata one might want to load a
file in another directory. For example
use ~/otherdata/bob.dta
I currently have the language definition set up so that use and
bob.dta are colored differently.
Now, if the path has a space in it, Stata would like the statement
with quotes arrount the path
use "~/other data/bob.dta"
Now TextMate treats the stuff in the quotes as a string and doesn't
color bob.dta. What I'd like to have happen is that bob.dta is
recognized inside the quotes.
Suggestions on how to achieve this would be much appreciated.
Thanks,
Tim
P.S. I should point out that in Stata mostly a quote really does
designate a string, so I don't want TextMate to completely ignore
quotes.
Since switching to TextMate, I rarely make any syntax mistake, but
when I do, then it's because I write `\medksip' instead of `\medskip'
for instance.
All unknown LaTeX commands in regular text are grayish (with a few
notable exceptions such as \cite, \eqref and \ref for instance). I
would like to make a list of `known' LaTeX commands (including the
different skips, \noindent, etc.) and color them differently.
How would I do that?
With a little abuse, I've managed to color them red by adding them to
the constant.character.latex list, but this is not really a clean
solution …
Thanks a lot.
Max
On Sep 5, 2006, at 8:55 PM, Gerd Knops wrote:
> Syntax from he**... I committed some more changes to the subversion
> repository, that should work better now.
Perl does have a weird syntax!
Thanks much for fixing that, Gerd.
- Dave
I have an "ä" (a with two dots or whatever you foreign devils call
it) in my filepath and safari chockes pretty good on this.
Or rather, the script that outputs the $activeurl seems to not
convert it into characters that safari doesen't like (oh, and if i
could have a camino and ff compatible version that'd be swell to)
______________________
Andreas Wahlin
Webbutvecklare
Webbhuset AB
Östra Hamngatan 45, 411 10 Göteborg
Telefon: 031-339 19 19, Direkt: 031-739 18 20, Fax: 031-711 12 20
www.webbhuset.se
Privileged/confidential information may be contained in this message.
If you are not the addressee indicated in this message (or
responsible for delivery of the message to such person), you may not
copy or deliver this message to anyone. In such case, you should
destroy this message and kindly notify the sender by a reply email.
Thank you.
Hi,
Is there somewhere a viewer for pages written with MediWiki syntax?
As I do not plan the full install of MediaWiki on my laptop, I'm looking
for a very simple viewer that would allow to see files edited offline in
TextMate.
I've tried pmWiki, that works fine, but does not use the same syntax
as MediaWiki.
Thanks in advance,
--
Jo <W:00°04'37" ; N:47°15'36">
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72
I am working on a design refresh of a site in ColdFusion. As CF is
incompatible with Java SDK > 1.4.2 and there is no way to downgrade
(I am using 1.5/5.0) without reinstalling the OS, I am stuck running
the CF server on another computer. Apparently the internal CF server
is unable to have a web root folder that is hosted on a network
share, so I am also stuck editing via SMB (unless there is some other
option I'm not thinking of?). The funny thing is that when I work o
Now to the TextMate bit: Every time I switch to TextMate, there is a
multi-second pause (sometimes accompanied by the SBOD) before I can
resume editing. This happens before the window regains highlight, if
that helps. This is frustrating, as there is often a change/save/
reload type of flow to my work, particularly editing CSS etc. Has
anyone experienced this or similar behavior, or know of an
alternative solution (I'm hoping to avoid anything like FTP). The
problem does seem particular to TextMate, since I was using skEdit
set up the same way for a while without the same problem. The
problem does not occur when editing on an SMB share hosted on our
linux server.
I'm running TM on a Mac Mini 1.42 g4/1 gb on 10.4.6, and the "server"
is a P4 3.2ghz/1gb ram WinXP SP2... They are connected via 100Mbps
ethernet.
Thanks,
Eric O'Connell
IBA Webmaster
-
941-921-7443 x15
eric(a)bodytalksystem.com
www.bodytalksystem.com
A recent change to the Perl bundle had the effect of highlighting
large chunks of code as if they were match or replace statments. For
example, it parses this line as if the slash were the start of a m/
regexp/ statement:
local $/;
It does the same to pretty much any line with a slash in it, for
example when dividing two numbers.
As a workaround I've added '#/' as a comment to the end of these
lines, but I'm hoping that's a very short-lived hack ;)
Many thanks in advance,
- Dave
This worked like a charm, mreece, thanks!
On Aug 31, 2006, at 12:46 PM, Michael Reece wrote:
> looks to me like this pattern:
>
> .*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle|archive)
>
> is matching folder names that have these extensions; anything (.*)
> followed by a dot (\.) followed by one of those patterns.
>
> you should put archive outside that closing paren, or near the front:
>
> .*/(\.[^/]*|CVS|_darcs|\{arch\}|blib|.*~\.nib|.*\.(framework|app|
> pbproj|pbxproj|xcode(proj)?|bundle)|archive)$
>
> or
>
> .*/(\.[^/]*|archive|CVS|_darcs|\{arch\}|blib|.*~\.nib|.*\.
> (framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$
>
>
I'm editing a Dashboard widget as a TextMate project. It took me a
while to figure out that **updates to CSS are not reflected in the
Web Preview** of the corresponding HTML page of the widget.
I can even completely delete the contents of the CSS file, and still,
the preview renders with the old version of the CSS file. I tried
Command-R, manual reloads in the preview windows etc - nothing worked
except quitting and restarting TextMate, which is obviously not a
satisfying solution.
Do I miss something here? (For me, this feature seems to be broken,
and I found some mailing list posting from 6 months ago; but I hoped
that the current version has fixed these problems).
My configuration is
TextMate 1.5.3 (1215),
Mac OS X 10.4.7 Latest update,
No HTML/CSS bundle modified by me.
Thanks for your help,
Martin.
Before the last update I could type something like:
div {
color:red;
}
And all was well and good. Now TM throws a space in automatically
which is fine. I just have to get used to that. But now I can't
overtype the semi-colon. I used to be able when I got to then end of
the statement type ";" and it would overwrite the one that was
already there and place my cursor outside the statement. Now it puts
2 semi-colons and i'm still stuck in the statement.
div {
color: red;;
}
What happened to the ability to Overtype the semi-colons in the css
context? And how do I bring it back?
Josh
I'm not sure what the TextMate terms for this are, so please bear with
me (I'd have searched the help file more thoroughly, if I knew the
right terms)
When, for example, creating a method declaration using m(tab) in the
Objective-C bundle, you get this:
-(id) method:(id)aparameter;
(or something close to it).
The caret is on the first id, which is selected. So far, so good --
type in, and the "id" is replaced, as expected, with what you typed.
However, and this is probably something I just got used to with
Eclipse, there doesn't seem to be a way to jump to, and select, the
next replaceable field, for example the word "method", which is done
by pressing 'tab' in Eclipse, navigating from field to field until all
are set, with the last caret position being a specified insert
position.
I'm not sure I'm explaining myself well, but I hope that what I
describe is fairly clear.
So, is there a way to do this? If so, how? And, what is it called,
so that I never have to ask this question again? ;)
--
Chris R.
======
Not to be taken literally, internally, or seriously.
In my language I'm using:
{ name = 'meta.blank.line';
match = '^\n';
},
which works great for identifying blank lines.
The problem comes when I get to the last line of the document.
Textmate usually uses the character to the right of the caret for
scoping, but when at the end of the document the scope switches to
the left side of the caret. And because I'm on an empty line there's
nothing to match.
So is it even possible to scope the last line of the document when
it's empty?
I thought I had an answer with \z but Textmate doesn't seem to
support \z in the language grammar - or maybe I'm using it totally
wrong.
Any help is appreciated.
--oliver
To replicate:
my ($match) =
/
\s*
(match_me)
/x;
my $syntax_coloration_broken = 'from here down';
What appears to be happening is that the \s* is interpretted as a
substitution, e.g. s*search*replace*;
Suggestions on fixing thing?
Thanks,
Joshua
To any users of the Subversion bundle: How can I add support for
providing passwords to svn when I'm using DAV_SVN with SSL and
key-based authentication?
For example, right now in the svn info output, there are six requests
for the password. If those are all ignored, I believe that I don't
get an SSL connection, which is... undesirable.
Any advice? I'm certainly willing to code the solution myself, if needs be.
--
Chris R.
======
Not to be taken literally, internally, or seriously.
Hi there,
I've got a new language for which I'd like to create a new grammar.
It's a LaTeX alike language, but environments look like this:
\startsomething
\stopsomething
The language grammar doesn't seem to accept the backslash (it does so
in the LaTeX bundle, so I must be doing something wrong). The
following works fine:
{ name = 'meta.foo.bar';
begin = 'xx';
end = 'yy';
},
and in my text between 'xx' and 'yy' the scope is also 'meta.foo.bar'.
But when I chage the grammar to
{ name = 'meta.foo.bar';
begin = '\\xx';
end = '\\yy';
},
I can't see that the scope changes to 'meta.foo.bar' within \xx and
\yy. Can somebody tell me what to do?
Patrick
The PPI module[1] on CPAN is designed to parse Perl (no small task
there). It was designed for projected /exactly/ like TextMate.
Why is PPI worth looking at? A few brief reasons:
1. It parses Perl wiithout executing it, so stuff like 'BEGIN {system
"rm -rf ~"}' won't do naughty things.
For the record, Textmate doesn't suffer from this problem.
2. It can parse 99% of the documents in CPAN [2]
Comparatively, TextMate isn't quite there yet. :-)
3. It's fast enough [3]. I watched a demo at OSCON 13 months ago with
a demo of PPI parsing the contents of a generic wx-based editor [4].
It responded in real-time.
TextMate is probably faster because it parses a smaller DOM than PPI.
The module PPI::XS, a Perl-C tokenizer hybrid, is an attempt to write
a faster tokenizer.
4. The Perl DOM class tree looks sane enough to use as the basis for
colorization. There are 62 classes, which should map neatly into the
TextMate model [5]
5. Adam Kennedy, the author, is a fantastic guy. He stayed at my place
for that OSCON. Not to put words in his mouth, but I'm sure he'd be
delighted to offer help integrating his baby into TextMate.
6. Once integrated, TextMate would benefit from future PPI
improvements for free. And PPI is under continual development since
2001. Updates are released about every two months, the most recent
being today, Sep 2.
Thanks for entertaining this idea,
Joshua
[1] http://search.cpan.org/~adamk/PPI-1.117/lib/PPI.pm
[2] http://search.cpan.org/~adamk/PPI-1.117/lib/PPI.pm#How_good_is_Good_Enough(…
"The goal for success was originally to be able to successfully parse
99% of all Perl documents contained in CPAN. [...] At time of writing
there are only 28 non-Acme Perl modules in CPAN that PPI is incapable
of parsing. Most of these are so badly broken they do not compile as
Perl code anyway."
[3] http://search.cpan.org/~adamk/PPI-1.117/lib/PPI.pm#The_Tokenizer
"The target parsing rate for PPI is about 5000 lines per gigacycle.
It is currently believed to be at about 1500, and main avenue for
making it to the target speed has now become PPI::XS, a drop-in XS
accelerator for PPI."
(At the time of this writing, PPI::XS is in the proof-of-concept stage)
[4] http://search.cpan.org/~adamk/PPI-Tester-0.06/
A wxPerl-based interactive PPI debugger/tester
[5] http://search.cpan.org/~adamk/PPI-1.117/lib/PPI.pm#The_PDOM_Class_Tree
I run a script to update bundles. At the moment it seems to hang trying to
update Rails. Anybody know what's happening and what to do about it?
Everything seems fine until near the end of the process, when I see:
Fetching external item into
'Bundles/Rails.tmbundle/Support/plugins/textmate_footnotes'
External at revision 121.
Fetching external item into 'Bundles/Rails.tmbundle/Support/plugins/engines'
... and there it sits.
The script is
#!/bin/sh
cd /Library/Application\ Support/TextMate/
/usr/local/bin/svn up
osascript -e '
and has been working for months.
I tried exiting terminal, which ended the script but left "engines" locked.
svn cleanup resolved that.
PowerBook G4 12"/Mac OS X 10.4.7
I have a strong background in .NET and Visual Studio 2003/2005. I'm
used to being able to wrap blocks of code around #Region "Fold this"
and #End Region markers and the UI would allow that block of code to
fold up.
Is there a way of doing this in Textmate with the PHP bundle or any
other bundle? I figured I'd ask before trying to reinvent the wheel.
Thanks!
Derek
Hi all,
I am having trouble with the Go to File command. It works fine from
the menu bar, but command T does not trigger it. I have double
checked and I have not assigned command T to any other command and I
have not created any ~/Library/KeyBindings/DefaultKeyBinding.dict. I
am using TextMate Version 1.5.3. Any help debugging this would be
appreciated. Thanks a lot.
All the best, Mark
Allen -
Cool, thank you.
So:
1) Yes, when I was using XCode bundle I was doing the Build & Run
command. I did NOT import, but followed directions someone had
(maybe it was on your wiki) put the textmate project file and the
xcode project file in the same path. Again, that seemed to work, but
was not getting anything "back" from ant.
2) I have been doing this on my new Macbook pro and I haven't touched
the /etc/profile or ~/bash_login or ~/bash_profile. I followed the
directions on 8.2 Search Path: my bash_init.sh and ~/.bash_profile
are identical to the ones in the manual. No luck - same problem: ant
runs, when you quit the app, everything displays.
3) I did check in the shell (using Terminal) and running ant there
works as in XCode: the targets are displayed as they are run, and my
lovely println() statements shine thru.
Sorry, I've never done anything beyond creating symbolic links and
using top in the shell. Not really my forte. But your wiki pages
are nice and helped, on this subject and everything else I've
referenced.
-Jerzy
Hi,
This used to work fine at one point, but has now been broken for a
few weeks.
From my rails app I call up Ruby->Run Rake Task. I choose "deploy"
from the list of tasks, and get the following output (apologies for
wrapping):
RakeMate r1.2.0 running Ruby v1.8.2.
>>> /Users/evansj/rails/my_app
loading configuration /usr/local/lib/ruby/gems/1.8/gems/
capistrano-1.1.0/lib/capistrano/recipes/standard.rb
loading configuration ./config/deploy.rb
loading configuration #<Proc:0x025d054c@/usr/local/lib/ruby/gems/
1.8/gems/mongrel_cluster-0.2.0/lib/mongrel_cluster/recipes.rb:1>
* executing task deploy
** transaction: start
* executing task update_code
* querying latest revision...
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:
command not found: svn log -q -rhead https://my.svn.server/repos/
my_app-portal/rails/my_app/trunk
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:
command not found: svn log -q -rhead https://my.svn.server/repos/
my_app-portal/rails/my_app
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:
command not found: svn log -q -rhead https://my.svn.server/repos/
my_app-portal/rails
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:
command not found: svn log -q -rhead https://my.svn.server/repos/
my_app-portal
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:
command not found: svn log -q -rhead https://my.svn.server/repos
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:
command not found: svn log -q -rhead https://my.svn.server
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:
command not found: svn log -q -rhead https:
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:
command not found: svn log -q -rhead .
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:
command not found: svn log -q -rhead .
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:
command not found: svn log -q -rhead .
The last line repeats indefinitely until you close the window and it
prompts you to stop the task.
svn is /usr/local/bin/svn, which is in my path, and the TM svn tasks
work fine for checking in etc. I have tried setting TM_SVN to the
full path to my svn in the prefs, but it still doesn't work.
I'm using the latest TM, with /Library/Application Support/TextMate
updated from svn.
TIA
Jon
Allan,
Thanks for your reply. I read over this page; I don't see how this
could be the problem because it is running ant. Am I missing something?
-Jerzy G.
> From: Allan Odgaard <throw-away-1(a)macromates.com>
> Date: September 1, 2006 12:30:18 PM EDT
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] java ant [run]
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On 1/9/2006, at 18:12, Jerzy Gangi wrote:
>
>
>> [...] Also, tried to use XCode bundle for the same thing. This
>> will not display anything until the app closes, at which time it
>> displays the full build output and my println's.
>>
>
> This is the Build & Run command?
>
>
>> Help! I want to use TextMate!
>>
>
> This is definitely not the standard behavior. I am not sure why you
> see the behavior, but my best guess would be that you have
> something in your bash startup which enables some form of buffering
> or similar.
>
> TextMate will source your bash startup files when running commands,
> the process is described here [1]. Could this be the reason?
>
>
> [1] http://macromates.com/textmate/manual/shell_commands#search_path
>
>
Hi there -
I'm relatively new to TextMate, trying to decide if I will buy it
(99% sold right now). Previously on XCode - I'm developing a Java
application w/swing, using ant to build.
When I do ⌘ (open apple) + B to build my TextMate project, and
select "1 Ant", the build / Ant window pops up. The jar
launches, and runs, but none of my debug println() statements show up
in the ant window until I: 1) close the jar myself (aka the program
exits), or 2) I force the jar to quit in the build / Ant window. So
after the app quits, the entire Ant output shows up for my targets,
with my debug println()'s at the bottom. Is there any way to make
the Ant display in TextMate "live?" Or not? Or am I just missing
something really basic?
Also, tried to use XCode bundle for the same thing. This will not
display anything until the app closes, at which time it displays the
full build output and my println's. Which, again, is good... but a
few minutes after I need them. Just as a point of reference, XCode
does display my debugging println()'s as the app is running in it's
console window.
Help! I want to use TextMate!
Thanks,
Jerzy G.
I've put together a very basic/simple/uncomplicated/doesn't do much
bundle for Stata, available at:
http://www.landfood.ubc.ca/people/timothy.beatty/page10/page10.html
I'm new to Textmate and so I'm sure the bundle could be improved upon
(there are certainly both typos and thinkos). If anyone has helpful
suggestions, particularly Stata users, they'd be very much
appreciated.
Thanks,
Tim
Hello. I have folders throughout my project called /archive/, in
which I put old versions of things. I would like the "Show TODO
List" command to ignore everything in any folder named archive/. Any
ideas on how to do that?
I looked at the Show TODO List Ruby script, but I don't know Ruby at
all and it was not obvious to me how I would modify (a copy of) the
script to ignore specific subfolders.
Thanks!
--Andreas
p.s. I use hard folders in my projects, and would like to continue to
do so. Moving the /archive/ folders out of the actual folders on my
HD is not an option. However, if there was some way to surpress
those subfolders from appearing in the project at all (other than
actually removing them), that would be fine. Unfortunately, deleting
the references in the project is insufficient; the files in /archive/
nevertheless have their TODOs appear in the list.
Hi there,
I like very much the ability to select
a word via ⌃W, then typing a quote to
wrap this word into.
How do I add a custom quote on my own ?
I would like to be able to do this with the
french quotes «...»
Thanks in advance
I used to be able to open remote files in TextMate by mounting the
remote directory via the Apple Filing Protocol [1]. Somewhere around
TextMate 1.5.2 (I think), this stopped working for me. TextMate's
open file dialog showed the volume as empty (?), and dragging and
dropping files from the remote volume onto the TextMate icon would do
nothing. Other applications, such as TextEdit, did not have these
problems, so I figured this was a new TextMate bug.
I went back and loaded a copy of TextMate 1.5.1, and it worked fine.
I thought this proved the issue to be a regression, but when I closed
1.5.1 and opened 1.5.3 again, it suddenly started working fine, too!
So I don't know what's going on, but if anyone has problems opening
files via AFP, going back temporarily to TextMate 1.5.1 might
magically fix the problem. At least it did for me.
Trevor
[1] http://comox.textdrive.com/pipermail/textmate/2006-February/
008656.html
Hi there,
I'd like to create a lot of snippets programmatically and not via the
bundle editor. Is there anything to be aware of?
Is the uuid important? What does TextMate do with it?
Patrick
Dear all,
I wonder if this a bug or not.
If I'm open maybe three selected files in the Finder with TextMate it
opens the project folder and all three files are listed. Fine!
If I click at one file TextMate opens it and writes the name and the
folder into the title bar.
E.g. file index.html folder gnu > title bar 'index.html - gnu' OK
But if I save this file called 'index.html' into an other folder,
e.g. 'bear', then I would expect that the title bar will change into
'index.html - bear' !?
Or I'm totally wrong.
My problem is that I'm often editing some files with the same name
but in different folders at the same time. So, I need an info which
file I'm editing.
Many thanks in advance!
Cheers,
Hans
Hello,
I've done some experiments with double clicks between words and it
seems inconsistent and not very useful compared to BBEdit.
I've been trying to switch from BBEdit in all cases but am finding it
sometimes difficult and extra work and clicks.
When I double click between two words:
Series of spaces get selected - correct
One tab - selects the word before the tab instead of the tab - wrong
Series of tabs - selects the tabs - correct
Series of spaces framed by words with single quote or double quote -
selects the spaces and the quotes - wrong
Series of tabs framed by words with single quote or double quote -
selects the tabs and the quotes - wrong
Series of spaces framed by words with $ - selects the spaces and the
$ - very wrong, really messes up perl
Series of tabs framed by words with $ - selects the tabs and the $ -
very wrong, really messes up perl
Why would it try to remove the $ in front of variables when all I
wanted to do was remove the spaces or change them to tabs?
In all cases it seems the invisible space between the words should be
selected, but nothing else.
Thoughts anyone?
Thanks,
ml