Joachim et al,
There is one minor (but annoying) detail about the combination of
Objective-C completion and Bracket Matching. I have come to rely on
Bracket Matching quite heavily, but that frequently leads to
situations like this:
NSFileManager *fileManager=[NSFileManager defaultManager];
if(fileManager fileEx|
At this point completion (Alt-Esc) will not do anything because there
is no opening bracket before 'fileManager'. So the only way is to type
the closing bracket (which inserts the opening bracket), back-arrow,
and then Alt-Esc, and later having to skip over the closing bracket.
Not really a big deal, and I suspect it would be difficult to
implement, but in a perfect world I would hope code completion at the
above situation would insert the brackets along with a snippet that
lets me tab to any arguments and eventually past the closing bracket.
Gerd
Hello everybody,
as nobody answered my question regarding "Configuring syntax
highlighting programmatically", I suppose there is no easy/standard
way to programmatically configure syntax highlighting. Therefore, I
will try to modify the syntax highlighting file and the current theme
file programmatically and then tell TextMate to reload them. While
searching how to do this, I found OSX::PropertyList.load to read
property lists and after asking google I also found that there is a
function OSX::PropertyList.dump. However, finding this information was
more or less fortune.
Is there a central place where I can search for TextMate documentation
for bundle developers? How was I supposed to find out about
OSX::PropertyList.dump?
Best regards
Daniel Sadilek
I was thinking of making a screencast that shows off a bundle i wrote.
When I tried to test out some sample content and posted it to YouTube
and Google Video it looked like absolute crap.
I seem to recall that allan posted a guide on how he made the 'casts
somewhere in the wiki, but i can't find it.
If anyone has tips and tricks using snapz-x pro or a HOWTO please let
me know.
Thanks,
STeven
Hi -
Maybe a feature req or maybe there's
already a solution that I'm not aware of...
I was wondering, if there's a way either by
prefs or by some manual mod somewhere to
make 'delete reference' the default as opposed
to 'move to trash' in a project file that might
contain a large number of directory + file refs.
I've accidentally deleted quite a few files
this way, and would like to minimize
my cursing if possible. :)
-Shin
Hi,
During the last two days I've fought against my mind.
I tried to get rid of escaping a backslash in bash. I have a bash
scripts which reads the selection/line, does something, and finally it
returns the result as InsertAsSnippet back to TM. Fine. Among others
one has to escape '\'. OK. I did this in Leopard
T="123\\123"
echo "${T//\\/\\\\}"
Fine. BUT THIS ONLY WORKS UNDER LEOPARD!
Under Tiger I have to write this:
T="123\\123"
echo "${T//\\\\/\\\\}"
It took me two days to figure out that this is caused by using two
different versions of Bash.
Is this a known issue? If so, is there link to an article mentioning
more of them?
[I couldn't find an entry mentioning that macromates.com. Maybe worth
to have one.]
To be compatible with Leopard and Tiger I have to write e.g.:
T="123\\123"
echo "$T" | sed 's/\\/\\\\/'
Regards
--Hans
Hi folks:
I realize this a difficult question, but on 3 10.5.2 computers, I have
installed the "Edit in TextMate" bundle in /Library/InputManagers
On two machines it works fine, and one it appears to no longer work.
I am scratching my head to figure out why.
In each case I have copied, rather than symbolically linked, the
directory "Edit in Textmate". In the case of the one not working, I
have tried both linking and copying, but to no avail. The permissions
on each are the same and look like this:
ls -l /Library/InputManagers/Edit\ in\ TextMate
total 8
drwxr-xr-x 3 root admin 102B Nov 18 09:59 Edit in TextMate.bundle/
-rw-r--r-- 1 root admin 462B Nov 18 09:59 Info
ls -dl /Library/InputManagers/Edit\ in\ TextMate
drwxr-xr-x 4 root admin 136B Nov 18 09:59 /Library/InputManagers/
Edit in TextMate/
Is there anything obvious I could have skipped, or should try? I've
been using svn to sync my plist file in ~/Library/Preferences , so
these should be identical.
Thanks.
Bill
William G. Scott
Contact info:
http://chemistry.ucsc.edu/~wgscott/
Hello,
I recently built my first TextMate bundle (http://sadilek.blogspot.com/2008/04/dna-sequence-analysis-with-textmate.html
) for some simple DNA sequence analysis.
It was really easy to accomplish this with TextMate.
However, I'm missing one feature: is there any way to programmatically
configure syntax highlighting?
What I want to achieve is that a user can configure pairs of string
and color. All occurences of the string should be highlighted in the
given color.
I have already built a corresponding dialog (very similar to the
preference dialog of the TODO bundle) in which I can enter strings and
select a color for each. The "only" thing missing is using this
information for highlighting the text.
Best regards
Daniel Sadilek
P.S. This sort of function would be interesting for the TODO bundle,
as well: for highlighting the TODO markers in the text.
Hi,
I have the following HTML code [ | indicates the caret]:
<li>1. Einlesen des Textes</li>
<dd>
<b>Das Einl|</b>
</dd>
If I press ESC to complete "Einl" to "Einlesen" TM beeps. I believe TM
has a problem internally with the following "<foo>". If I have a space
or a bracket after the "l" like "<b>Das Einl| </b>" the completion
works fine.
Even if I have "Einl|foo" OR "Einl|<>" OR "Einl|</>" and I press ESC
TM tries to complete "Einl" correctly.
TM has ONLY a problem if between < and > occurs one or more characters
AND if the grammar is set to HTML (in Plain Text it works!).
Is this a bug? Is that behaviour configurable/changeable?
TM 1.5.7 (1464) on Mac OSX 10.5.2 (ppc)
Thanks,
--Hans
Hi all,
No I'm not asking for a PHP debugger in textmate, but I am curious what you
guys do to get around this. Currently I'm the only textmate user at the
company I work for, everyone else uses ZDE. While I wouldn't want to give
up all the things textmate offers, I am a bit jealous of the debugger they
have in their IDE as in some cases it really makes it easy to resolve
issues. So is there any options for us textemate users? Is there other
ways to use the debugger outside of ZDE that makes it possible to have a
debugger on the side?
Any advice would be appreciated.
Thanks,
Clark
hi there,
while fixing indentation of a php-file using 'indent selection' i
found that textmate is wrong in the following case:
if( condition ){
code;
}elseif( condition ){
code;
}
is indented like this:
if( condition ){
code;
}elseif( condition ){
code;
}
how to reproduce?
- enter the code above in an empty php-document
- select all
- indent selection
workaround:
put elseif on a new line
cheers
Till Backhaus