Hi,
Having now upgraded, the themes editor is great. TM just gets better
and better.
The old Perl bundle contained a definition to treat the following
equally:
qq(Hello World);
qq{Hello World};
qq|Hello World|;
This latter form, although a little weird, is nonetheless valid Perl,
and something I use all the time. The new Perl bundle recognises the
former two perfectly, but not the latter.
The naive experiments I've made in the bundle editor haven't gotten me
anywhere, so I was hoping someone would be able to talk me through how
to get my beloved qq|| working in the new Perl bundle.
Many thanks in advance!
Cheers,
Andrew.
--
::
article seven Andrew Green
automatic internet andrew(a)article7.co.uk | www.article7.co.uk
I have the same problems as detailed in this thread -
http://comox.textdrive.com/pipermail/textmate-dev/2005-June/001827.html
At work I'm running osX 10.3.9. None of the diff commands work. When I
try to diff I get the spinning beach ball and then nothing.
At home, runing 10.4.1, everything works fine.
I'm running textmate 1.1b13 with a svn update of the entire bundles
repository (I'm at rev 1226).
There didn't seem to be a resolution to the problem in the thread,
other than Charilaos Skiadas problems seemed to go away for 'Diff
revisions' and 'Diff with revision.' Following the suggestions in the
thread I have different results. My error text when outputing Diff
Revisions into a new window is
/bin/bash: line 20: [: too many arguments
I don't get the
-:1:in `require': No such file to load -- svn_diff (LoadError)
from -:1
Also, CocoaDialog --help and ctrl-R to run the line as a command
produces:
CocoaDialog --help/bin/bash: line 1: CocoaDialog: command not found
Any more thoughts - do I need to update ruby maybe? Start from scratch
maybe? Persuade the FO to upgrade my system to Tiger?
Hey There,
Just updated to textmate 1.1b13, and I no longer have the
beautiful colour scheme, is there anyway i can get the old colour
schemes back, with the new version.. I need help, i know it's finicky
but i find it really hard to develop in anything but that scheme, and
it's partly why i purchased textmate to begin with. Cheers
- james
I'm on 10.4.1 and TMb12 keeps throwing the user interface sound
affects at me. Actually it's the default "alert sound" called Funk.
This alert happens when I open a new file and when I make a change to
the contents of a file among aother times. I have not made nay
changes to my sys prefs.
Anyone?
-t
I think I remember someone mentioning that this is possible, but I
can't find any mention of it. I'm looking to type the same thing at
the end of all the lines in a file. They don't line up in perfect
columns , so the standard column typing won't work. I need Textmate
to find the end of each line and insert there. Is this possible?
Thanks,
Bryce
Allan,
You the man! That works perfectly, thanks.
Chris
> Try this: ${TM_FILEPATH#$TM_PROJECT_DIRECTORY/}
>
> The #-thing means: „minus this prefix‰. There's also % for „minus
> this suffix‰.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
I just updated to b13 (from b12) and svn up'ed the latest bundles.
When I open a myfile.rb file the syntax coloring is normal (same as in
b12). If I then open a myfile.rhtml file the coloring is also normal
(different than with .rb, but same as in b12). If I then switch back
to the myfile.rb tab, the syntax coloring becomes, for lack of a
better word, confused. Seems the background color remains the lighter
color used for .rhtml file rather than switching back to the black
color used for .rb. If I close and reopen myfile.rb, the colors are
again correct.
I've removed all of my local ~/Library bundle files and restarted TM -
same result.
If this is unclear I can probably manage to create a screenshot or two.
--
Jack Baty - Director of Unspecified Services
Fusionary Media - http://www.fusionary.com
Weblog - http://blog.jackbaty.com
For those not subscribed to my RSS feed, I did a writeup of the new
language grammar features: http://macromates.com/blog/archives/
2005/06/23/language-grammars/
I know this is kind of cheeky, but I am thinking of making some macros where
it would be incredibly useful to be able to get the path of the current file
relative to the project directory, instead of as an absolute path from the
root hard drive, is there any possibility this could be added? (I really
have no idea how difficult this might be). Or perhaps this is so easy in
Perl that its not worth the effort, Im afraid I don't know any Perl.
Regards
Chris
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
All -
I need to write (at least parts of) bundles for "stx2any" source text
and Eiffel source code. Now I was wondering if there's a standard, or
de facto agreed upon, list/definition of the scope terms, such as
"support.function.section.latex" or "keyword.control.c", including
how to define extensions to these for new languages. And related to
this, how are the "setting groups" and "settings items" in the theme
editor defined and organized: is there an agreed upon scheme?
Thanks for any help and hint.
With regards
- Stefan
--
Stefan Brantschen
sbr(a)acm.org
Who wrote the actionscript bundle? I have some ideas :)
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 9997-0593
ben(a)incomumdesign.com
http://www.incomumdesign.com
For short columnar edits, it's not really perceptible, but if you
make columnar selection of a mere 1500 lines or so, you'd notice a
very noticeable lag. Now some of this could easily be that I do
almost all of my work on a G4 500 powerbook. But it's still VERY slow.
Now, more seriously, I know that my selection length was rather
extreme. But it took about 5 minutes or more for TextMate to catch
up when I had typed in the 4 characters I'd wanted to replace
('None' It was python).
--
Robert M. Zigweid http://robert.zigweid.net
rzigweid(a)zigweid.net
I can't find any docs that tell me know to do the cool stuff shown on
the TextMate website. Like I want to edit a block of text and make a
change on the first line repeat in the following lines. How do I do
this?
How do I select text by column?
Why isn't this info easier to find?
Also, the app seems to be autosaving. Is there a way to turn this
off (I'm on a slow link).
Thanks,
Ernest
I Downloaded b12 and was playing around when I noticed something that
I thought had been 'fixed' earlier and appears to not be working now.
I have not used TM for a little while so perhaps what I am trying to
do has been slightly changed or I was imagining things:
Problem:
Drag an image file from the drawer into the html file and have the
tag, width and height added automaticlly. Ideally the behavior would
also put in an alt and have the cursor default to that location as
well as a closing / if it is xhtml.
Solutions ?
Thanks,
Eric Curtis
Are they working yet? And is there any documentation? Examples would be
nifty.
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Is it possible to match multiple lines in a single match? For
instance, to match:
A heading
========
I tried:
^(.+?)\\n={3,}$
but it doesn't seem to work. Any guesses why? I hope I have just made
a silly mistake somewhere.
Haris
Hi, I'm modifying the default actionscript bundle and I have a regex
question that I haven't been able to figure out.
I want to match a function declaration, but I don't want to capture
the arguments of the function. In other words, in a function like this:
public function addItem(name: String, item: MenuItem): Void {
// ...
}
I want to color
"addItem(" and ")"
but not
"name: String, item: MenuItem
Is this possible in one regex expression? Is there some way to match
something by looking for a leading (or trailing) indicator without
including the indicator in the match? In other words... something like:
[in pseudocode] find ")" preceded by "function [a-zA-Z_]* ( ^)"
I'm currently using this regex to successfully capture the whole thing:
match = "\\b(function)\\s+([a-zA-Z_]\\w*)\\s*\\([^\\)]*\\)";
Thanks for the help!
Ed
Hello! Who is the maintainer of the bundle for Markdown? Looks like
he is missing from the README in svn.
I noticed the regexp for emphasis
match = "[*]([^\\\\*]|\\\\.)*?[*]";
causes the engine to beautify the bulleted list
* normal *emph*.
with " normal " in italics instead of "emph". Do those TM regexps
support some sort of precedence? Do they supoprt look-behind assertions?
In addition, the regexp for itemized lists looks too weak:
begin = "^\\s*[*+-]";
According to the current spec it would be something like:
begin = "^ {0,3}[*+-][ \\t]";
-- fxn
I noticed the following while playing with the markdown bundle. Seems
to me like a bug when changing a language that is included in the
current language for a document.
1) Open an empty document, write some stuff (including some inline
markdown like emphasis) and select markdown as a language.
2) Make changes to the inline markdown language, press format and
test. They are not reflected in the text.
3) Opening a new file, copying the text over, and making the language
in the new file markdown reflects the changes. The original file
still does not show any difference.
4) Changing the language of the original file to LaTeX, and then back
to markdown doesn't fix it either.
5) Changing the language of the original file to Inline markdown, and
then back to markdown still leaves it bad.
Haris
Tiger has a new feature in Cocoa apps. The dictionary feature. I
had thought that TextMate was Cocoa. (To be honest, I haven't looked
that closely). Out of curiosity when I was using the dictionary
feature, which is activated with command-control-d, I noticed that it
did not do anything. Is this explicitly disabled in TextMate, or is
there a key-binding that I haven't found yet that masks the system
key-binding.
I'm using b12 and have relatively new bundles.
--
Robert M. Zigweid http://robert.zigweid.net
rzigweid(a)zigweid.net
Just wondering if this is a bug or the expected behavior. I currently
have open the theme editor, and bundle editor, and a document. If I
press Cmd-` successively, the windows come in front in the following
order:
document - bundle - document - theme - document - bundle - ....
I would have expected
document - bundle - theme - document - bundle - .....
If I have two documents open, the sequence of events is:
document1 - bundle - document1 - theme - document1 - document2 -
bundle - document 2 - theme - document2 - document1 - ...
This certainly doesn't feel right, and it takes forever to get from
document1 to document2.
Haris
Hello,
I'm a Windows->MAC switcher and have tried several source code
editors. I was very charmed by TextMate! ;-))
Now my question. Is there anyone who has the configuration files for
XBase, dBase or CA-Clipper language Syntax Highlighting?
Thank you!
Best regards
--
Patrick Mast,
http://www.PatrickMast.com
Is the TextMate service shortcut still command-esc? I use Quicksilver,
and the shortcut conflicts with "Send to Quicksilver".
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Searched the list for this and went through the Preferences and menus
and couldn't find anything about this problem.. so I apologize if
it's an easy RTFM answer!
Since upgrading to the latest TextMate, I've noticed that whenever I
save, the screen jumps to centralize the row that the cursor is
currently on. Why? This is driving me nuts because I'm always hitting
Cmd+S (usually without thinking) every now and then while I'm
developing and the jump jars my thought process. b5 did not do this.
So.. how can I turn this off?
Thanks in advance!
Peter Cooper
I write a LOT of LaTeX documents, and as I was working on the class
for one of them, I've noticed that when trying to fix up some braces
({}), TextMate will slam the CPU on my iMac G5 to 100% for 15-20
seconds, before continuing. Here's a little snip from what I was
trying to fix:
\newcommand{\tla}[1]{{\scshape {\MakeLowercase{#1}}}}
Not very complex, but when I added the last closing brace, it went
wonky. I had thought in the past that it wouldn't come out, so I'd
kill it, but this time, I just let it run, and eventually it fixed
itself.
I tried switching to plain text, and that helped, so it seems to be
something in the way the language pack is written. Any thoughts?
Chris
--
| Christopher Petrilli
| petrilli(a)gmail.com
Sorry if this has already been answered, but I couldn't find a thread
on it.
Question -- how do you change the transparency value of the document
window? The latest beta defaults to this, and God almighty does it
hurt my eyes. ActionScript syntax highlighting doesn't appear to be
working either, which makes the transparency even harder to read text
on.
Todd
hi
There seems to be a syntax coloring/language definition bug in TM
that leads to an unexpected quit (not a real "crash" as I don't get
an OS X crash report). I've attached a LaTeX document that leads to
this (with current bundles). Can anyone reproduce this behavior?
--
bye, Frank!
Has anyone had problems with pasting and indenting? I found a message
from last october but no followup.
What happens is that whenever I paste code, things are "double"
indented. For example, if I select, copy and paste just the 2 middle
lines of the following...
1 def index
2 @todos = Todo.find(:all, :include => [:users, :job])
3 render_partial_collection "todo", @todos
4 end
... I end up with this...
1 def index
2 @todos = Todo.find(:all, :include => [:users, :job])
3 render_partial_collection "todo", @todos
4 @todos = Todo.find(:all, :include => [:users, :job])
5 render_partial_collection "todo", @todos
6 end
Line #5 shouldn't be indented any more than line #6, yet it's
indented with 2 additional tabs (or set of 4 spaces, doesn't matter
which I use). That's not supposed to happen, right?
Using b12.
--
Jack Baty - Director of Unspecified Services
Fusionary Media - http://www.fusionary.com
Weblog - http://blog.jackbaty.com
Hello,
I upgraded last week TextMate to the latest version (1.b12) which was
the first with the new syntax coloring engine I tried. And I really
have speed problems with it. When I scroll down, it may take 2-3
seconds before updating the text display, which is really painful.
My computer is a 800 MHz iBook G4 with 640 MB of RAM. Yes, it's not
top notch but I think TextMate should be able to work at a decent
speed. I'm pretty sure the previous version did not have this problem.
Does anyone else has any speed problem with the latest beta ?
Cheers,
Vincent Isambart
howdy,
i've been sort of out of the loop lately with the textmate
progressions and have been using b4 for quite a while. i updated
yesterday to b12 and copied all my bundles i wanted over, but seem to
be having trouble getting one i have (Velocity, for VTL) to work at
all. would anyone out there like to help me figure out what's wrong if
it send it?
thanx in advance...
- jamal
I've downloaded and installed 1.1b12. Seeing that the list of
languages was rather skimpy (in particular, no Perl or Python), I
followed the instructions on the TM Wiki to checkout the complete set
of bundles from the Subversion repository. They are now sitting in /
Library/Application\ Support/TextMate. Also following the Wiki's
suggestion, I trashed the Bundles folder in the TextMate.app package.
Upon restarting TM, I see more languages in the View/Language
submenu, but not nearly as many as there are tmbundles in the Bundles
folder. I certainly don't need most of them, but I'd like to know why
they're not showing up.
Also, is it appropriate to trash the Settings and Support folders in
TextMate.app now that I have copies in /Library/Application\ Support/
TextMate?
--
Mark Lawrence
I get
U Bundles/markdown.tmbundle/Syntaxes/Markdown.plist
U Bundles/SQL.tmbundle/Commands/runSQL.plist
U Bundles/Defaults.tmbundle/info.plist
U Bundles/Python.tmbundle/Commands/pydoc.plist
U Bundles/Python.tmbundle/Commands/Python.plist
U Bundles/Python.tmbundle/info.plist
U Bundles/Python.tmbundle/Syntaxes/Python.plist
U Bundles/Ruby.tmbundle/Syntaxes/Ruby.plist
U Bundles/PHP.tmbundle/Syntaxes/PHP.plist
U Bundles/Objective-C.tmbundle/Commands/Lookup Cocoa Class.plist
D Bundles/LanguageDefinition.tmbundle/Tools/plist.bundle
U Bundles/LanguageDefinition.tmbundle/Tools/list_shortcuts.rb
U Bundles/LanguageDefinition.tmbundle/Commands/Restart TextMate.plist
U Bundles/LanguageDefinition.tmbundle/Commands/Show Keyboard
Shortcuts.plist
U Bundles/LanguageDefinition.tmbundle/Syntaxes/LanguageDefinition.plist
U Bundles/Logtalk.tmbundle/Syntaxes/Logtalk.plist
U Bundles/Subversion.tmbundle/Tools/svn_commit.rb
U Bundles/Subversion.tmbundle/Tools/format_info.rb
A Bundles/Subversion.tmbundle/Tools/svn_diff.sh
U Bundles/Subversion.tmbundle/Tools/format_blame.rb
U Bundles/Subversion.tmbundle/Tools/format_log.rb
U Bundles/Subversion.tmbundle/Tools/format_status.rb
U Bundles/Subversion.tmbundle/Commands/Revert.plist
U Bundles/Subversion.tmbundle/Commands/Commit.plist
subversion/libsvn_subr/utf.c:363: (apr_err=22)
svn: Can't recode string
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Hi all
Hope this hasn't been covered (couldn't find it)
Using the 'All Halloween' theme, I cannot find where to change the
mustard yellow highlight on the current line. It makes everything
very hard to read ... can anyone help?
I have no idea what scope it corresponds to , or whether it's even
determined by scope ...
cheers
D
hi
I don't know who's responsible for the LaTeX bundle, so I'm writing
about it here. There are some issues in which I think it should be
improved.
In particular, there's a problem with using " characters. I don't
think there are any " delimited strings in LaTeX, but instead " is
used to denote umlauts in German texts (e.g. to get ä you type "a).
So, whenever I use an umlaut the syntax highlighting doesn't work
anymore until the next umlaut because TM marks the text in between as
being in the invalid.string.latex scope. This IMHO serves no useful
purpose at all but nevertheless breaks the syntax highlighting. Could
anyone please fix this?
I'd also like to have a scope representing environments. So you could
e.g. mark environments (something between and including \begin{} …
\end{}) with a special background setting to distinguish them from
the surrounding text.
If I have another idea I'll write about it here.
--
bye, Frank!
First of all this is not an e-mail meant to boost my ego, but rather
to sing the praises of a great app and the fantastic possibilities
within it.
Secondly, even though you might not have a real use for this bundle
in your normal work, I still think that you should have a look and
give it a try because I'm hoping that this will spur us all into
making our coding experience in TM even better.
OK, so what is this about then ?
PHPCodeCompletion (PHPCC) with all the relevant info available here
[ http://www.imediatec.co.uk/tm/phpcc/ ] including a download of the
latest version (1.0b3) of the bundle.
Is coding php with PHPCC better than without ? YES !!!
Is PHPCC perfect ? Hell NO !
Is PHPCC missing features ? YES !
Is PHPCC finished ? NO! far from it I would say.
So grab the download, give it a try and help me improve it further.
And even if you don't care about PHP or PHPCC please have a look and
a think about how we could create a generic, easy-to-use, easy-to-
implement framework that would allow us to implement similar stuff in
every (?) other TM language.
Please keep the constructive feedback going.
Big thanks goes to:
-- Allan for his help, support and fantastic work in creating a great
app;
-- Ian Ardes for his original idea & work;
-- max13, Lfe, joakim and others on the #textmate IRC
Kind regards,
Mats
----
"TextMate, coding with an incredible sense of joy and ease"
- www.macromates.com -
Hello :)
I would like to use TM starting from tin (Unix Newsreader)
but with the following parameters: a number of columns 72
and encoding Iso Latin-1. Is it possible to call TM with
specific options?
Alain Matthes
I'm running 1.1b5 at the moment, but I'd like to try out the
unofficial betas (I believe 1.1b12 is the latest?).
How can I do that?
Thanks
-Rob
--
------------------------------------------------------
Follow the truth wherever it leads
http://www.robhulme.com/http://robhu.livejournal.com/
At first glance, the new PHPCC works as advertised. Nice!
You asked for wishes, so here goes:
- what about custom functions? I'd love to get code completion for
functions not defined in the current file. In an ideal world, TM would
scan through the Project and use all those functions for code
completion, including snippits. Somewhat less ideal but still cool would
be a way for us to define custom PHP function signatures, like the old
phpcc had.
-moshe
Allan,
Is there a way for a user to allow the smart typing to replace with
padding vs. no padding.
ie:
( hasPadding )
[ hasPadding ]
(hasNoPadding)
[hasNoPadding]
Regards
hi there,
every now and then i encounter some conflicts in my work with
subversion and currently it's the only operation i cannot entirely
manage from within TM (which is real shame, because the actual
process of resolving the conflict has gotten a lot easier through TM
and the diff-coloring!)
here's hoping ;-)
tom
p.s. the new cocoa status report is neat!
--
Tom Lazar
http://tomster.org
Hi all-
So I finally took a moment and caught up with the latest beta and svn
bundles, very nice! Might there soon be an "official" beta linked from
the main site for those not paying close attention [like myself] but
still using TM daily?
Anyways, I know this is an often-discussed topic, but I missed it - is
the symbol popup and the other options that pop up windows with
symbols/functions the final form of the much-requested
function/method/symbol menus? At the risk of sounding whiny, I hope not
:-(
And I'll refrain from the asking the split-window question. oops! ;-)
Everything else is looking sweet!
--
________________________________
toddgrimason*todd[ at ]slack.net
Hi, folks,
Sorry for the newbie-ish question after all of the advanced discussion
regarding Subversion, etc....
Is there any way to eliminate the border (lines at the top and bottom
of the page) while printing? It's a bit distracting when poring over
pages of source code.
I was able to get rid of the other header information (date, etc., and
what appeared to be part of a Unix fortune), but those lines are the
last bit left to get rid of.
Thanks in advance,
Mike
Any chance we could get a "New from template..." added to the file
menu? I like the templates but I don't always want to make a new
project to use them.
- Juan
I am just posting this here for the heck of it.
I just updated to b9 with the latest bundles via svn and I just gotta
say WOW. The new theme support is outstanding. Although it doesn't
quite make sense to me yet, how to navigate those features and even
create my own theme, but it looks so much better!!!
This is the first time I would call a text editor "fun." That's how
great this is! Everything about it shines, it's so much better even
than the b5 I was using with the older bundles...
Just two brief comments:
1. The folding keystrokes are great but it doesn't make sense the way
it works. folding to level two, it seems, should logically fold TO
level two, not just at that level. Meaning, if you fold to level two,
then fold to level one, if you "unfold" level one it seems odd that
level two is still folded! I can't think of a logical reason for it
to work this way... just my 2cents...
2. I can't figure out the keystrokes to switch between tabs but it
seems like they should be the same as Safari if possible....
Keep up the great work. This is in my top five favorite Mac apps, I
can't imagine programming without it anymore!!!
Kindest regards,
Raymond
I have tm set up as my default editor with the following line in
~/.subversion/config:
[helpers]
editor-cmd = tm
tm and tm_wait are installed in /usr/local/bin and the path is set in
the bashrc. When I enter
svn commit .
Textmate opens up the temp file svn.commit, however when I save svn
doesn't seem to recognize the file status, still saying the file is
unchanged. What am I doing wrong here? Thanks,
Ben
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
If you have TextMate 1.1b11 installed and is coding with PHP, then
please visit [ http://www.imediatec.co.uk/tm/phpcc/ ] and help out
testing a new PHP Code Completion solution for TM.
All 3653 php functions supported with completions, snippets, tooltip
information and full PHP Online documentation inside TM.
Please note! This bundle is still in development, so please let me
know what you would like to have added, changed, etc. etc.
Kind regards,
Mats
----
"TextMate, coding with an incredible sense of joy and ease"
- www.macromates.com -
So I'm trying and trying and just can't seem to get .rxml files to
open (in Version 1.1b11)... not at all! I checked the file
association and I've set it to TextMate, but it won't let me drop the
files on its icon nor click to open them from the drawer. It's very
strange.
By the way, the .rxml files are for Rails, so they're basically Ruby
code. I did eventually get ONE .rxml to open in tm (but only one!)
and it didn't take on the right formatting, so maybe the program
isn't aware of them at all? Just kinda weird.
Any ideas on how to get these files to open?
Best,
Raymond
--
Raymond Brigleb, Needmore Designs
Website http://needmoredesigns.com/
Email ray(a)needmoredesigns.com
Phone 503.490.4595
Hi, I'm an avid user of the PHP-Smarty bundle that was included in
Textmate 1.0 and is one of the main reasons I'm using TextMate. This
bundle worked fine in the 1.1 betas until beta5 when the new "theme"
system was introduced.
As such I was wondering how much trouble it would be to convert this
bundle to the new system and if there's a guide of some sort. If given
permission from the original author I could probably add it to the
bundle repository as well if I get it working.
Regards, Joakim Bodin
--
Joakim Bodin <joakim.bodin(a)gmail.com>
http://www.ripley.se
"That's what comes with yellow cross on blue."
Still experimenting with the new theme system, I came across this
problem in the default PHP bundle : I want to hilight "->" operator,
like in :
$smarty->template_dir
Tried to add my own, no success (the ctrl-shift T tooltip says the
scope is source.php).
Then I realized the right syntax existed in the Bundle :
<dict>
<key>match</key>
<string>(::|->)|\b(abstract|cl(ass|one)|extends|function|i
(mplements|nterface)|new|parent|self|__(autoload|c(all|lone|onstruct)|
destruct|get|s(et|leep)|toString|wakeup))\b</string>
<key>name</key>
<string>keyword.construct.php</string>
</dict>
(note the -> )
It seems correct, but it turns out that "->" is not matched in the
string "$smarty->template" but it is when it's surrounded by spaces :
"$smarty -> template".
Am I wrong to say it looks like a parsing bug ?
Dominique.
Hi to all,
I'm finally moving to TextMate ß11 and I'm experimenting with some
personal customization.
I like to keep variables black and make language related very
contrasted with blue and red colors, ... including "equal" variable
affectation symbol, like in :
$a = 2;
Question : what scope the "equal" symbol should belong to ?
Same question with the "->" symbol like in: $this->property .
Thanks.
Dominique PERETTI
http://www.lachoseinteractive.net/
SvnX, a GUI for svn on Mac OS X (http://www.lachoseinteractive.net/en/
community/subversion/svnx)
Hi all,
I gave TextMate a try, I absolutely love it's feel. I'd definetly buy
it, if only it would support more text encodings besides Unicode and
iso-latin-1. Specifically, as a hungarian I'd need iso-latin-2
(iso-8859-2), but I assume there other people from other parts of the
world with similar concerns, needing different encodings.
I think SubEthaEdit solves this right, with an editable encodings list,
and an option to either convert the current text to the new encoding,
or "reopen" the text with a new encoding.
I'd be glad to help out with testing or coding or whatever to make this
work.
cheers,
Zoltan Varady
I tried dragging an image into the release notes (after setting the
theme to Markdown>Markdown) and got a bunch of binary data. Is this a
bug or did I not misunderstand the release notes? ;
Something that has been driving me crazy is that only when I am on an
XHTML page I could use XHTML snippet and only when I am on Rails
pages can I use Rails snippets. I should be able to use Rails
snippets in XHTML pages.
How can I got about doing that?
I was wondering if anyone had got the built-in HTML drag commands for
<img> and <css> to work in Textmate 1b5?
Currently if I drag a html or PDF file from the project window into a
HTML file I'm working on it will create a <a href=""> link, but if I
drag an image file or css file onto the HTML file, Textmate will insert
the raw source of the dragged file.
Any ideas where I am going wrong? I am using the following drag
commands (built-in):
<img>
File Types: png, PNG, jpeg, JPEG, jpg, JPG, gif, GIF
Commands: img=$TM_DROPPED_FILE alt=`echo $img | perl -pe
's/^(.*\/)?(.*?)(\..*)?$/$2/g' | tr '_-' ' '` sips -g pixelWidth -g
pixelHeight $img | awk '/pixelWidth/ { w=$2 } /pixelHeight/ { h=$2 }
END { printf("<img src=\"'"$img"'\" width=\"%d\" height=\"%d\"
alt=\"${0:'"$alt"'}\" />", w, h) }'
<css>
File Types: css
echo "<link href=\"$TM_DROPPED_FILE\" rel=\"stylesheet\"
type=\"text/css\" />"
Apologies if this has already been covered.
Mike
On running command "Markdown Preview" I get the following error:
/bin/bash: line 1: /lib/html.sh: No such file or directory /bin/bash:
line 20: htmlHeader: command not found
/bin/bash: line 22: /bin/Markdown.pl: No such file or directory
/bin/bash: line 24: htmlFooter: command not found
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Hi,
Would it be possible to have included files in code-completion
settings in the theme editor.
I'm thinking of making property-specific completions for the css
syntax, and it would be helpful if frequently used sets of keywords
could be included as often as necessary to avoid it being really
massive. (things like colours, units, top left right etc.)
Also, on a similar note, would it be possible to block general
completions for a specific scope, ie. have a property such as
"use_general_comps" which could be set to 0. I find that pressing
escape often brings up options that shouldn't be present in the
particular scope, but are in other parts of the document.
eg:
.blah {
font-color: black;
}
#foo {
display: b<esc>
}
Pressing escape after "display: b" would offer "block", as part of
the 'display' property's completions, but would not suggest "blah"
from the class of the other selector, or even "black" from the font-
color's value. In a big file you can end up going through loads of
unnecessary stuff when one press is all that's necessary. (I know i
could type "blo" and then esc, but that's more typing).
In my opinion, for the way I work, this would be a very fast system
of coding.
Thanks,
Max
This is a lazy request.
Hoping towards moving more of my information into text files, I would
like a way of directly launching resources from URLs in a text file.
Imagine that I copy a bit of email that includes a web URL or a mailto
link to an inbox.txt file. When I go through inbox.txt, I would like
to just hit a key combination when the cursor is on the URL and have
it send to my browser or my mail program.
emacs-wiki/planner does this well (it even highlights clickable URLs).
Outside TextMate, one can also use ICeCoffEE
(http://web.sabi.net/nriley/software/), but that doesn't work in
TextMate.
So, how hard would it be for someone to write a command thingy to make
such functionality available in TextMate? I suppose one would have to
identify the beginning and end of the URL that the cursor is on and
send it to the system's "open" command. I don't have the time to
investigate this myself.
-- Kai (http://semantics-online.org/geek)
It's been a while, but I've finally got some free time to improve the
Markdown bundle. I see brad and duff have done most of the hard work
of getting the bundle to work with the new syntax selection (thanks
guys!), so what I'm looking for is requests for further improvement.
What are you guys using it for? What snippets, commands, etc would be useful?
I'm also going to put some time into improving the regular expressions
(esp. with the new regexp toolkit) and hopefully will be able to do a
better job of matching some of markdown's more complicated structures
(eg. lists and code blocks).
Hadley
hi there,
I use tm as editor for subversion commits from the commandline (as
opposed to from within TextMate) and as of lately, the messages I
edit in tm somehow aren't saved for the svn command... after saving
and closing the document window svn prints:
tomster@Burroughs# svn ci
Log message unchanged or not specified
a)bort, c)ontinue, e)dit
any idas?
thanks,
tom
--
Tom Lazar
http://tomster.org
In the HMTL bundle, and in the XHTML bundle as well, there are snippets
like this:
<h1>${1:`echo $TM_SELECTED_TEXT`}$0</h1>
activated via a tab trigger, "h1" in this case. I am completely missing
the point here. Why is the echo command there? How can there possibly
be a selected text when activating through a tab trigger?
The way it is right now, if I type h1, press tab, type my heading, and
press tab again, the heading is selected. Was that the intended
behavior? If so, could someone give me an example of how this is
usefull? I haven't played much with html, so I might just be missing
something obvious here.
If this is not the intended behavior, should we change all those
snippets to simply <h1>${1:heading}</h1>$0, or <h1>$0</h1> ? Are these
snippets redundant in the presence of Ctrl-space, and if so would it
make sense to have them have a slightly richer outcome, like <h1
class"$1">... ?
Ok, enough questions for now,
Haris
Folder exclude patterns stopped working in beta9 for me.
!(.*/\.[^/]*|\_darcs|vendor\/rails|CVS|~\.nib|\.(framework|app|pbproj|pbxproj|xcode|bundle))$
but both
_darcs and vendor/rails show up and are included with command-t
--
Tobi
http://www.snowdevil.ca - Snowboards that don't suck
http://www.hieraki.org - Open source book authoring
http://blog.leetsoft.com - Technical weblog
Hi,
I've just upgraded to b9. In project mode (otherwise it does not
occur) if I type a ~ or ´ TextMate offers to delete the file with
the "Would you like to move the selected files to the Trash?" dialog
box.
I did an update svn checkout, trashed TextMate preferences, and tried
in two different machines (running Tiger). I had to go back to b8.
Any hints?
Regards,
Rui
Whenever a LaTeX document has sectioning commands, I get the following
in the console:
TextMate regex error: undefined group option
pattern: \{[^{}\n]*(?R)?[^{}\n]*\}
Don't know if it's the expected behavior or not, thought I'd report it.
( I also get various messages of the form "TextMate debug: $1 bits
used" upon exit, where $1 is a number depending on what bundles have
been loaded, but somehow I don't feel that worried about that. )
Haris
So I wanted to open souce in Safari in TextMate even after javascript html
injection, if any one is interested you can add this to the scripts menu, I
pipe it through tidy though one wouldn't need to.
sam d
--start
tell application "Safari" to do JavaScript "document.body.outerHTML;" in
first document
set s to the result
set filename to random number from 1 to 10000
set the temp_file to ((path to the temporary items folder) as string) &
filename & ".html"
open for access temp_file with write permission
write s to (temp_file as alias) as string
close temp_file
set f to POSIX path of temp_file
do shell script "tidy -i '" & f & "' '" & f & "'| ~/bin/tm -a"
--end
Suppose you have two snippets, like:
\\begin{${1:name}}
$2
\\end{${1:name}}
and
\\emph{${1:emphasized text...}}
and suppose we want to insert the second snippet while editing $2 of
the first snippet. Then the snippet will not expand. On the other hand,
working only with the first snippet, once we are done editing $2 and
press tab, we will conveniently move out of the snippet.
One the other hand, we could have the first snippet as:
\\begin{${1:name}}
$0
\\end{${1:name}}
This has the advantage that the second snippet will work while editing
$0, but the disadvantage that tabbing will no longer take us out of the
first snippet.
Questions:
1) Is there a workaround to make both things possible?
2) More generally is it possible, or planned in the future, to support
activating a new snippet while in the process of completing another
snippet?
3) If there is no workaround, do people have a preference on which of
the two situations is more useful?
thanks,
Haris
Hi,
I'm setting up my environment on Tiger from scratch and TM is giving
me lip with the "Pipe text through" in the Web Preview. Markdown.pl
lives in:
~/usr/local/bin/Markdown.pl
which i what I've placed in the Pipe through field. Permissions on
the script are correct: chmod +x /usr/local/bin/markdown.pl
TM tells me: "/bin/bash: line 1: /Users/tim/usr/local/bin/
Markdown.pl: No such file or directory"
by .bash_profile has: export PATH=$PATH:/usr/local/bin:/usr/local/
php5/bin:/usr/sbin
in it. Any ideas. I probably missing something really basic.
Thanks,
-t
On 20 mai 05, at 03:53, Allan Odgaard wrote:
> this is one of the reasons I keep these betas as unofficial,
> beacause these things are more work in progress than usual!
I just wonder if it's a good thing to have Beta 9 as the "official"
download on MacUpdate with no explanation at all...
Maybe it is just me and not the software. These are the problems
that I am encountering. I am running latest version that came out
yesterday and I checked out bundles.
1) Tab completion is not working for me any longer. I am coding a
index.rhtml file and typing h1 followed by a tab and it does not
complete the tag. This is the case for everything that uses a tab.
Non-tab auto completes work.
2) my html comments is making for some ugly code in-between the begin
and end comment tag. It was fixed in an earlier version.
3) color coding in my .css files is inexistent
Can someone shed some light on the subject. I find this very
annoying and slowing down my productivity.
Thanks :-)
I removed all files in Applicaiton Support/TextMate and performed a
checkout. XML still does not work. It's styled by some other theme,
but not the XML theme. If it were the XML theme, namespaces would be
a different color than the tag itself. I can assert this by trying to
customize the XML theme but having no changes take place. My XML
files are styled according to the SimpleTheme, and unstyled if i
uncheck the SimpleTheme.
Todd
I am using 1.1b8 and the Python bundle is not showing up in the view
language selection menu, accordingly no syntax highlighting when
opening python files. I have the complete set of bundles from svn,
Python is there in the bundles folder. Any ideas. This was not
working in b7 too.
Hiya,
Is there any way to have a tabbed interface without having to create
a new project? The practical use is for people that use an external
ftp client. Since ftp is not built into TM, we have to open each
document independently with an ftp client. It gets really messy when
working on a big project!
Justin
hullo. it seem the ruby syntax parser has issues with the legal
"#{("and" + " like '%#{@mimetype}%'") unless @mimetype.nil?}"
I've used "#{("and" + " like '%" + @mimetype +"%'") unless @mimetype.nil?}"
instead. but thought i would pass along this bit.
--
this morning i breathed down a hill,
last night i breathed into the sound of warm blankets
today i tango to El Cholulo
TextMate Version 1.1b5
Hello
I would like to know if it is possible to print with colors (like
syntaxe) and if i can choose the size of the font for the impression
(the size in the prefs...) .
Thanks
Alain Matthes
Hi.
I'm using TextMate v1.1b8 (2005-05-07) on Tiger.
I just spent 30 mins or so customising my themes with the built in
theme editor, and since it was running very slowly I quit and
restarted TM, only to discover none of my changes had 'stuck'.
Is there something I'm missing? Is persistence of these changes not
yet implemented, or do i have a bug on m hands?
cheers
D
I'm probably daft and just not finding it, but what I cannot find is a
way to navigate inside of a columnar selection. There are several
situations in which I want to make a change in the middle of a column
selection, instead of the edge, or even more likely more than one
change in said selection. Simple arrow movement certainly isn't the
way as that undoes the selection. What is the obvious thing that I'm
missing?
Regards,
Robert
--
Robert M. Zigweid rzigweid(a)zigweid.net
http://rzigweid.zigweid.net
I downloaded the following css file:
http://www.opengroup.org/onlinepubs/009695399/utilities/style.css
and tried opening it with TextMate (b8), and both times I got a
spinning ball and had to force quite TM. It first appeared to load
fine, and then started coloring the file. One second later, it was not
responding any more. Any ideas what the problem might be?
Haris
A small bug(?) with bundles:
When you make changes to a bundle, a local copy is created in your
own library. That changes the TM_BUNDLE_PATH variable, which is used
by some commands to access scripts. Since these aren't copied along,
those commands stop working.
--
Sune.
Hello:)
Sorry for my bad english. I hope that you can understand my question.
I've some difficulties to use pdftricks with TextMate and TeXniscope
Example : graphe.tex
\documentclass[a4paper,10pt]{article}
\usepackage{ifpdf}
\ifpdf
\usepackage{pdftricks}
\begin{psinputs}
\usepackage{pstricks}
\usepackage{pstricks-add}
\usepackage{pst-plot}
\end{psinputs}
\else
\usepackage{pstricks}
\usepackage{pstricks-add}
\usepackage{pst-plot}
\fi
\begin{document}
\begin{pdfdisplay}
\[\psset{xunit=0.75,yunit=0.75}
\begin{pspicture}(-2,-2)(8,2)
\psset{griddots=0,gridlabels=10pt,subgriddiv=5}
\psset{shortput=nab,nodesep=3pt,arrows=->,labelsep=3pt}
\cnodeput(1,0){A}{A}
\cnodeput(5,0){B}{B}
\nccircle[angleA=90]{A}{0.6cm}_{0,75}
\ncarc[arcangle=40]{A}{B}^{0,25}
\ncarc[arcangle=40]{B}{A}^{0,5}
\nccircle[angleA=-90]{B}{0.6cm}_{0,5}
\end{pspicture}\]
\end{pdfdisplay}
\end{document}
i've no problem with Texshop but with TextMate...
In Command Output i've :
1: latex : command not found
and in the log
sh: line 1: latex: command not found
rm: graphe-fig1.aux: No such file or directory
rm: graphe-fig1.dvi: No such file or directory
rm: graphe-fig1.log: No such file or directory
rm: graphe-fig1.eps: No such file or directory
This is pdfeTeXk, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) \write18
enabled. etc...
Thanks Alain Matthes
Hey,
I'm running TM 1.1b8 on a 400Mhz iMac DV/SE with 512MB of ram
(running Tiger). Text rendering seems to be very slow... to the point
where it really isn't usable. It's most noticeable when you're
scrolling, or when you first open a document. It's slowest when
syntax highlighting is on... otherwise it's not so bad.
The iMac does perfectly fine in other text editors, web browsers, and
such.
Anyways, I just figured I'd get the word out, just in case nobody's
noticed :)
Justin
Hi all,
I have a bizarre problem with the fonts in the recent betas. | have
attached a capture
of 1.1b5 (the grey background) and 1.1b8 (the white background) that
shows for
the same settings and font, the difference between these two
versions. In 1.1b8 the font appears to be strongly smoothed.
Does anyone have any idea why this is happening?
I am running 10.4
Thanks,
Georgos
Hello all;
I'm new to the list; I just wanted to say thank you to Rob for adding
the actionscript bundle funcitonality to textmate; there's a real
need for it since flash mx 2004 lacks an external script editor.
--
-Nicklaus Deyring
Designer
ndeyring(a)dmna.com
(650)614-0730 - work
(650)773-7932 - cell
I know that you're working on b9 or something already, but until
bundles are fixed (sorry, I got burned on b6 so now I'm waiting until
it's a one-click download for everything...)... anyway, I found what
appears to be a pretty nasty bug.
Picture this: I have two projects and one happens to contain the files
of the other project like so:
Project 1: project1.tmproj contains /project1/*
Project 2: project2.tmproj contains /project1/files/project2/*
Now if I open up both projects simultaneously, makes changes in
Project 2 and then switch to Project 1, my Undo command will undo the
changes that I made in Project 2!
So say I edit /project1/files/project2/test.html in Project 2 and then
switch to Project 1, hitting cmd-z will undo the changes I made in
Project 2!
This is bad, yes? Any thoughts?
Chris
Just out of curiosity, I fail to understand, why do the LaTeX bundle
snippet tab triggers almost all start with a capital letter? I really
frustrates me, because I always forget to capitalize the first letter,
and each time I wonder why they are this way. Of course I can redefine
them, and probably will do so real soon, just wondering if anyone can
shed some light into the original -to my eyes not so clear- choice of
tab trigger.
Also, is anyone planning to implement more snippets for LaTeX?
Would there be interest in some, and if so, which?
Haris
I'm currently using TextMate v1.1b8. Here are my suggestions:
o In the project list, i would like folders to appear above files
o The project list should react in the same way as the finder. i.e.
when i click, then wait a second, then click again, i should be able
to rename a file.
o double clicking a file in the project list should open it in a tab,
not single click.
o TextMate should remember the horizontal scroll position when
navigating between tabs (VERY ANNOYING)
o The line numbers/gutter should always be visible and not scroll
when horizontally scrolling.
o Soft wrap should not default to on after setting it no off.
And here's some things that I love:
o The progress that's been made in such a short amount of time
o The steady flow of betas
o The community surrounding TextMate
o The work that's being done to the syntax highlighting
Thanks Allan & others.
Todd
When I try to use the TM command line tool, I get the following error:
RegisterProcess failed (error = -50)
Abort trap
I've tried deleting the launch services cache (as detailed in the
release notes) but that doesn't seem to make any difference. Using
the growlnotify command line tool gives me the same error, so I wonder
if there's something wrong at my end.
Any help would be much appreicated,
Hadley
Hi,
I'm a bit of a security freak and would like to know when I'm editing
files and exercising my administrative rights when saving them.
TextMate uses the normal channels to gain permission to do that, but the
thing is that it caches this authorization because that's the way OS X
authorization is configured.
Now I don't want to change that, but I do want to change TM's behavior
and this is possible.
Add the following bit into the file /etc/authorization:
<key>com.macromates.textmate.openfile.readwritecreate.</key>
<dict>
<key>class</key>
<string>user</string>
<key>comment</key>
<string>require the user to allow TextMate to save a file as
admin</string>
<key>group</key>
<string>admin</string>
<key>shared</key>
<false/>
<key>timeout</key>
<integer>0</integer>
</dict>
It must be inside the:
</string>
<key>rights</key>
<dict>
dictionary. I placed it below the default rule's ending </dict> tag.
It means that from the moment you saved that file, all authorized saves
ask you for your password, without any caching.
Jeroen.
--
<http://www.je-ju.net/~jeroen/blog/>
hi there,
I'd like some advice on how to best change the default language
for .txt to markdown (90% of my plaintext is in markdown and i find
that in the other 10% the markdown language doesn't break anything
really, either - try it out on TextMate's README, for example...)
at the same time i like to stay current with the svn repository, so
simply making a copy of the markdown bundle in ~/Application Support/
TextMate/ wouldn't be viable either.
any suggestions?
best regards,
tom
btw. b8 looks really good! methinks it should be announced on
versiontracker and such places!
--
Tom Lazar
http://tomster.org