>> So, this was working perfectly, and then all of a sudden the
>> command started crashing TxMt. AFAIK I did nothing to make it start
>> crashing. Allan, any idea what might be up?
>
> No idea what would do that, other than a bug in WebKit :)
>
> Could you quote the first few lines of the stack dump?
dyld: /Applications/TextMate.app/Contents/MacOS/TextMate Undefined
symbols:
OpenGL undefined reference to _gll_noop expected to be defined in
/usr/X11R6/lib/libGL.dylib
OpenGL undefined reference to _gll_pkey expected to be defined in
/usr/X11R6/lib/libGL.dylib
Looks like an X11 conflict. Found a fix in the following thread:
http://forums.macosxhints.com/showthread.php?p=115505
Thanks :D
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Il giorno 17/dic/05, alle ore 22:22, Oliver Taylor ha scritto:
>> I would assume that the following would assign a scope to an empty
>> line, but it's not working. Any ideas? Is this possible?
>>
>> { name = 'splay.empty';
>> match = '^$';
>> },
>
> IIRC you have to match the \n as well in order to match the whole line
Yeah, I've tried every iteration, \n^$, ^\n$, ^$\n ... as you might
be able to tell I'm really bad with regexp.
any help is appreciated.
> Oh, and change .* to .+ to exclude the current word, i.e.:
>
> completionCommand = 'perl -pe "s/^\t{4}($TM_CURRENT_WORD.+)\$|.*
> \n?/\$1/" <"$TM_FILEPATH"|sort|uniq';
That works great. Don't know what changed. thanks.
I'm creating a custom bundle for screenwriting and I've got most of
it down, but I want to leverage textmate's completion abilities. For
example, I've got this is the language:
{ name = 'splay.character';
match = '\t\t\t\t+(.*)';
},
...to define anything that starts with 4 tabs as "splay.character"
Now, I want to collect all the words in the current document (but
only within the "splay.character" scope, and use them as a list for
auto-completion. So that when I tab 4 times and type "Ki" then
escape, "King John" will pop up.
I know this is done with a shell command (right?) but I have no idea
how to do this.
>> [...] Now, I want to collect all the words in the current document
>> (but only within the "splay.character" scope, and use them as a
>> list for auto-completion. So that when I tab 4 times and type "Ki"
>> then escape, "King John" will pop up.
>>
>> I know this is done with a shell command (right?) but I have no
>> idea how to do this.
> (I assumed the four tabs needs to be at the begin of the line):
yes, correct.
> { completionCommand = 'perl -pe "s/^\t{4}($TM_CURRENT_WORD.*)\$|.*
> \n?/\$1/" <"$TM_FILEPATH"';
> disableDefaultCompletion = 1;
> }
this is exactly what I'm looking for. but... it doesn't seem to be
working, in fact, it seems to be *excluding* everything in the
splay.character scope. Any ideas?
> (the completion command ought to get the entire document as stdin,
> but it currently doesn't).
bummer.
> Try: echo '<meta http-equiv="refresh" content="0;
> tm-file:///path/to/file.html">'
That worked perfectly! My compilation time has now been cut down by at
least another second and I can preview my Flash movie in the browser
where it will actually be used.
+1 for Allan.
:D
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Arrr mateys!
I'm a recent TextMate convert, and I absolutely love it ;). Still, I
have a couple of requests... I searched the archives and couldn't find
much about the first two:
1) On my (Belgian) keyboard, typing a [ or ] requires option+shift+( or
). This makes the block indent shortcuts very cumbersome to use because
the command key is also required, meaning it's a 4-key chord each. One
solution would be to add e.g. command+( and command+) as extra shortcuts
for this (which are 2-key chords for anyone else on a Belgian and French
keyboard).
But in many other editors, there is a much easier and intuitive way to
block-indent: just select multiple lines of text, and press Tab or
Shift-Tab. In TextMate, the first just replaces the selection with a tab
(not so useful IMO), and the second does nothing. So, please consider
adding this feature.
2) The bracket matching seems clumsy. The highlighting is only a short
flash, so you need to move the cursor back and forth to see it again.
And because it only highlights the opening bracket, it is often hard to
see which is the matching closing bracket. Especially when you are
around multiple nested parentheses, and you are doing the 'back and
forth' thing to see it flash again. Finally, it does not work in reverse
(highlight the closing bracket when you are at the opening bracket).
I think it would be a much more usable feature if it highlighted both
brackets in a pair, when you are at either of them and did so
permanently (i.e. based on cursor position) rather than just when moving
over a bracket from left to right (i.e. based on cursor movement). It
would also get rid of the artificial pause it has now.
3) I'd like to voice my support for smarter insertion of bracket pairs
in the middle of text (as has been requested before). All too often, I
get 'foo()bar(...)' when I want to wrap 'bar(...)'. Selecting the text
to wrap first (what was suggested before on the list) just doesn't feel
right to me. My instinct groups the bracket with the keyword in front of
it, so doing keyword -> highlight -> bracket is icky. I'd much rather
have no closing bracket inserted when the next character is not an
operator/whitespace/end-of-line.
I hope having a license gives me at least some nag credits ;).
Steven Wittens
When I try to run HTML Tidy I get following error instead of document:
../../src/config.c:331: failed assertion `option_defs[ optId ].type ==
TidyInteger'
It happens for any content.
I'm running latest build on iMac G5, with TM's plist files copied from my
older mac (if that matters...).
--
regards, porneL
Hi there,
This is some Unicode which looks all overlapped (should be characters
delimited by commas on the data lines) and doesn¹t select properly (half
characters not whole characters) or edit properly (several things rather
than one disappear when you press backspace)
Here¹s how it should look
Can give you the file if you need it.
Tim
the "mate" command-line tool is great, but i find myself also wishing
that i had some way to pipe input into a textmate html window, e.g.
rather than
long_running_command | mate
which waits until the command is completed, and then throws the
output in an editable text window, i'd like to be able to say
long_running_command | pre | mate -html
and get a continuously-updated, non-editable window (with the option
of adding javascript and formatting).
i could see how to hack this up myself if there were a way to
initiate a textmate command from outside textmate (i.e. provide
stdin, a command line, and one of the standard output choices
(arguably only "show as html", "show as tool tip", and "create new
document" would really make sense)) -- but i couldn't see how to do
this (i'm no applescript wizard, but i poked through the scripting
dictionary).
is there some trick here i'm missing? if not, consider this a
feature request...
I'm trying to update the svn-commit.tmp language definition to work with
SVK, but am having some difficulty. In SVN, the temporary commit file is
always named 'svn-commit.tmp' or 'svn-commit.2.tmp'. So the following works:
fileTypes = ( 'svn-commit.tmp', 'svn-commit.2.tmp' );
In SVK, the temporary commit file is named 'svk-commitXXXXX.tmp' where
XXXXX appear to be five random alpha-numerics. I haven't been able to
figure out how to match this. Am I missing something?
Thanks,
Sean
Hi,
sometimes I test quicly my html files on the Desktop and I use this
in bundle:
open "http://localhost/desktop${TM_FILEPATH#$HOME/Desktop}"
(after to set for this one the httpd.conf file)
ok, but if an html page has spaces in the filename (I know this is
not correct) the above command doesn't work.
Is it normal?
How to correct it, please?
thanks and regards
Salvo
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
sorry to post this on the list rather than to the actual author of
the bundle, but i'm busy in the middle of a project and just wanted
to get the request off my chest and get right back to work.
whoever did that - you just scared the living s**t out of me, when I
hit ^d in the middle of coding (forward delete normally) and my whole
source code went wonky... argll...
thx,
tom
- --
Tom Lazar
http://tomster.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iQIVAwUBQ53ujdeSJSslDUEWAQIGnhAAiS4/JZDfkfeYegoEuZ6sIcOLVWizJo8z
4EqfD+RYgrP+F1Wn0Joa2VVR4NvyLUMCbW6+wZSKVEBf/ZirVCe7swbN8R5/11E3
meVV3yjIT26ixVNR9zcfVBEB8E2c+F/KSDeWWfS/UFTlf+9pvCUdLK8o9wCRJBFm
ShG9No+u251PuJ1QOZn1Qgw8TdlCykD1AwN3ABbIm0tUZFmZaE/wLAEFZxc7LwNu
JCQ1ImnLOBorzUr//81mw4wxgF1gWHxX1U3/5W5UjguDRWV2D8x/VwsxZSBmZTG6
07Yog9KI1TRt5iBQdRXyZ5CiLoXbp9evG7pyONYF9eMhnzg59ZvZP9s0hs85sJnq
yCwRjLmKHLc/z50OISd1g18CmlyvvuQvwI9WSpJgNpwFu5ECCYHTV6kj+Bo8R5xX
ANWx8c8D3X0/TSTtax9ifqkix86xZ9xxoNiMVOlvHlugD3sOUAaEH/2KVXTkKvzP
M1g/3p1iBucLcC5vSnDgyjDBUC5N6flWC05ujHYkofcboZ2oDYP3td56dLxv+AeM
awF/T2LvPvPPSsI4CWp7YdCgH/BtDwORMle13AziA2Dqr8NgC0YW+MeZ5tNsULBD
6wVbMBOspK0KRCxh8SMo+3YSk8JgBQpBZGpl2JKinDgK/mTgwrcdPeWhog7NFqOO
Rw8kP/XqVHo=
=Phat
-----END PGP SIGNATURE-----
Hi,
I got a couple of suggestions.
First of all, open URL:
I'm used to clicking on a URL in a text and go to that URL in a
webbrowser. In Mac OS 9, there was an extension that allowed to do that
by command-clicking on any URL. In Mac OS X virtually all text editors
or text viewers, if you right-click on a URL, you get a menu which
(among others) says "Open URL". Try BBEdit, SubEthaEdit, Stickies, or
TextEdit. They all have this feature. Except for TextMate. Perhaps I can
create it using "Filter Through Command...", but that's clumsy. I
suggest to add this feature like in all other editors.
Second, Diff's:
Well, this has been discussed on the list before. The diff function in
TextMate is not really useful. Actually, Compare Texts is still the only
thing I use BBEdit for. Even though Apple's FileMerge does a better job
of showing the diff's (much better then either BBEdit or TextMate),
BBEdit most definately has the best integration of viewing AND editing
diffs, as well as ignoring line endings and white space (TextMate diff
can't handle anything but unix line endings). This is very high on my
wish-list for TextMate.
Last, draffing URL's:
Dragging. I struggled long to understand "DragCommands" (there is not
useful mention of them in the help or on the wiki). I would love to be
able to make a DragCommand that allows me to drag a URL to a HTML text
file, and that the drag then automatically inserted a <a
href="$URL">$name</a>, preferable with the previous selection as the
$name. However, it seems that now, DragCommands only work on files, not
on other drags like URL's and images.
Oh, sorry if I sound critical. I love TextMate. I really adore the UTF-8
support (actually that was the single most important reason for me to
make the switch to TextMate as my default editor). Keep up the good work!
Regards,
Freek Dijkstra
Hi everyone,
Is there a way to display the files label colors in the project
drawer? I'm talking about the color labels that you set with a right
click on a file icon in the Finder. Somehow, every year or so, often
when merging several file hierarchies, that feature is invaluable.
Any ideas ?
Cheers,
- n.
Thank you for the quick responses.
I fixed the problem in the following way: opened "misc" in textmate
via "mate misc", saved it as UTF-8. Apparently the odd character
mentioned by Allan was fixed by this operation.
I had earlier tried a conversion via "reopen with encoding" UTF8 but
that did not make a difference. However, using "save as" w/ UTF8 on
top of the older version did fix the problem.
In terms of why not use a .sh extension, I have to confess to being
an old unix guy and never got in the habit of typing foo.sh when I
can type foo instead!
Anyway, we're go, thanks for the help.
-- Owen
Owen Densmore
http://backspaces.net - http://redfish.com - http://friam.org
Hey!
I just watched the 10 minute Ruby on Rails intro video
(http://rubyonrails.ams.cachefly.net/rails_setup.mov) where TextMate
used a pane for project files instead of the shelf. The pane looks
good, any chance it will return?
I realize this will make TextMate look a lot more like Xcode, but that
wouldn't bother me..
Perhaps something similar to the one in Mail2 (Tiger) .
hans petter.
Hi folks. I've tried TextMate a while back and in *instantly*
replaced my use of jEdit. Wow, hard to believe you can get a unix
class text editor with Mac grace all in one package. Congrats!
I've the following problem:
- I've created a project called Daily that I have the files I edit
often: Notes, Log, Bashrc, ToDo, etc. I add files to the project by
simply using Add Exiting Files ...
- This generally works but I've got one shell script file "misc"
that is used for quick shell hacks. When I include this in my
project, it does not show in the tabs or in the edit pane.
- The file is a bit odd: it looks like this:
#!/bin/sh
<current hack>
# ----------------------------------------------------------
exit
# ----------------------------------------------------------
<past hacks>
# ----------------------------------------------------------
...etc to EOF.
Note the "exit" used to let prior hacks be available for reference,
yet not be executed when misc is called. The file is here if that
would help: http://backspaces.net/files/misc
So basically I'm trying to add an existing file to the project and
although the name shows in the drawer just fine, double clicking on
it does not put it in the tabs or edit pane.
Note that the file works fine outside of the project .. i.e. if I
execute "mate misc" from the terminal, I get a new window with the
file showing correctly.
I suspect I'm doing something dumb but..any help appreciated!
-- Owen
Owen Densmore
http://backspaces.net - http://redfish.com - http://friam.org
Alan - thanks very much!
I love getting these autoupgrades when I launch TextMate - it's like a
little Christmas every time. I'll really be looking for the next one.
David - if you haven't found this yet, Xyle Scope already has TextMate
listed under Known Editors in the Preferences.
When you have something selected in Xyle Scope, you can choose File >
Open file_name With > TextMate, then edit with TextMate.
Thanks for chiming in, Ben!
Howdy,
a) I can't refresh Firefox 1.5 , I obtain a new empty window :(
The script is :
# Check if Firefox is running, if so refresh
[[ $(ps -xc|grep -i firefox) ]] && osascript -e 'tell app "FireFox"' -
e 'activate' -e 'Get URL "JavaScript:window.location.reload();"
inside window 1' -e 'end tell'
b) Is it possible to refresh Xyle ?
Thanks and Greetings
Alain Matthes
Hi,
I use my ftp client Cyberduck with Textmate, every time I edit a file
(double click on a file in cyberduck), it will open a new window in
Textmate, for every file I click on. Is there anyway to config
Textmate so that Textmate can open files in tab by default?
Thanks
Kelvin
Hi,
I'm new on the list, so sorry for stating the obvious.
The documentation of TextMate is terrible.
<rant>
After using TextMate for some time, and struggling with many features, a
collegue pointed that there is some documentation at
http://macromates.com/doc/
However, there is no link to this URL. Please make a link to this page
from the home page. Now, please.
Thanks. What? You haven't done so? Stop reading then! Please do it
*NOW*, before other people waste their precious time.
I had to find the function of multiple functions (e.g. how DragCommands
work, that they only work with file, not URL's, how tab triggers work,
etc. etc.) by Googling and reading earlier posts on the mailing list. I
really could have saved a lot of time if I knew earlier that there was
some documentation out there. In fact I strongly recommend to add a menu
item in the Help menu which directly links to this documentation, and
release a minor update :-)
</rant>
I just started reading the docs, and here is some first comments:
Please change the order of the paragraphs "Selecting Text" and "Editing
modes" on the "Working with Text" page. "Editing Modes" discusses the
column mode, which was introduced in "selecting text", so the later
paragraph must come first. In the current order, the "Editing Modes" was
hard to comprehend.
Regards,
Freek Dijkstra
PS: This is a re-sent; my original posting seems to be rejected because
the list software was a bit slow, and thought I wasn't on the list yet.
Sorry if you get this twice.
Hi,
I'm new on the list, so sorry for stating the obvious.
The documentation of TextMate is terrible.
<rant>
After using TextMate for some time, and struggling with many features, a
collegue pointed that there is some documentation at
http://macromates.com/doc/
However, there is no link to this URL. Please make a link to this page
from the home page. Now, please.
Thanks. What? You haven't done so? Stop reading then! Please do it
*NOW*, before other people waste their precious time.
I had to find the function of multiple functions (e.g. how DragCommands
work, that they only work with file, not URL's, how tab triggers work,
etc. etc.) by Googling and reading earlier posts on the mailing list. I
really could have saved a lot of time if I knew earlier that there was
some documentation out there. In fact I strongly recommend to add a menu
item in the Help menu which directly links to this documentation, and
release a minor update :-)
</rant>
I just started reading the docs, and here is some first comments:
Please change the order of the paragraphs "Selecting Text" and "Editing
modes" on the "Working with Text" page. "Editing Modes" discusses the
column mode, which was introduced in "selecting text", so the later
paragraph must come first. In the current order, the "Editing Modes" was
hard to comprehend.
Regards,
Freek Dijkstra