I love the feature that automatically inserts the opening square
bracket.
However one case that it always seems to get wrong:
if(!aString isEqualToString:anotherString
When typing the closing bracket, the opening brackte is inserted
before the '!' instead of behind.
Gerd
Hi,
When generating log messages in my Cocoa projects I make heavy use of
TM's ability to convert output in the format 'SourceFile.m:lineNo:' to
links.
This does not work for grouped files if the 'Path Type' in Xcode is
set to 'Relative to Enclosing Group'. Changing it to 'Relative to
Project' fixes it.
Not sure if that is new with Xcode 3 or if it can be fixed
(Xcode.tmbundle/Support/bin/run_xcode_target.rb, path_for_basename()),
my ruby/.xcodeproj fu is not up to speed...
Gerd
Hi
I've made a drag command for dragging css files into other css files.
The current behavior when you drag a css file onto another is to paste
the content of the dragged css into the other css.
This command will rather insert an @import url("relative/path/to/css");
The import rule for css is specified here: http://www.w3.org/TR/REC-CSS2/cascade.html#at-import
ph
Hi all,
I've just installed the Git bundle (on Tiger), and I keep getting
those error messages :
Git log =>
/tmp/temp_textmate.U9qQdq:4: command not found: git log _notes.markdown
Gits status =>
sh: line 2: git: command not found /tmp/temp_textmate.j2NZhz:4:
command not found: git ls-files -o --exclude-per-directory=.gitignore
/tmp/temp_textmate.j2NZhz:4: command not found: git ls-files -m
--exclude-per-directory=.gitignore
Note: when I run those commands in the terminal, they work fine.
Alain
* I'm currently experimenting with TextMate as an alternative to xemacs and have encountered a problem in the python bundle.
* The problem is that PyMate is providing its own sitecustomize.py to hook various functions.
* This conflicts with our company's production/testing platforms. They also uses sitecustomize to make site-specific customizations (such as hooking the logging module handlers etc).
* I'm sure our approach isn't unusual. Unfortunately TextMate's usage of it for *application* specific reasons prevents our own site customisations from loading.
* Is a possible alternative for TextMate to use a launcher script approach? eg something that
- hooks the desired functions as currently
- hacks sys.argv and execfiles into the target file, such as
# remove us from the argument list, set __file__ to be the script to run then exec it
del sys.argv[0]
__file__ = sys.argv[0]
execfile(sys.argv[0])
This should have the same effect and ensure that a platforms sitecustomize is loaded. I'm happy to work on and submit a patch to the appropriate people if desired (not sure who that would be)
derek.
--
E-Mail sent with anti-spam site TrashMail.net!
Free disposable email addresses: http://www.trashmail.net/
Hi,
I use the Dvorak-Qwerty-Cmd keyboard layout and some key combinations don't
work as they should. More specifically, TextMate seems to be trying to
intercept the physical key information rather than the logical key as
defined by the layout. Let me try to clarify that with some examples.
- If I press ^P, instead of moving up one line TextMate executes a shell
command based on the current word, which is bound to ^R. That is because the
letter P of the Dvorak layout is in the place of the R of the usual layout;
- Likewise, if I press ^' TextMate reformats the paragraph, because
reformatting the paragraph is ^Q and ' is in the place of the Q of the usual
layout.
If there's no TextMate action associated with the physical key, the action
associated with the LOGICAL key gets executed instead, for instance:
- ^F, ^B and ^B work normally to go forward, back and line down with the
caret, because F, B and N are respectively Y, N and L in the usual layout,
and there aren't actions associated to ^Y, ^N an ^L;
- ^R and ^Q do what they're supposed to do (execute shell command and
reformat paragraph), as physically I'm pressing ^O and ^X, which again have
no actions associated to them, so the logical keys are considered. As a
result, I have pairs of key combinations that do the exact same thing, e.g.
^P and ^R, ^' and ^Q (and no key combination moves the caret one line up :(
).
The actions that involve the Cmd key aren't affected, because by definition
when you press Cmd on the Dvorak-Qwerty-Cmd layout the remaining keys are
supposed to behave just live in the usual layout (this is meant to make it
easier to use keyboard shortcuts such as Cmd-C and Cmd-V).
The real problem isn't much the fact that some keys behave like different
keys, but the fact that it prevents me from using some shortcuts at all, for
instance there's no longer a shortcut tho move the caret up one like, like I
said above.
So if anyone has anything to say about that, I'd appreciate.
-Alexandre.
I'm just updating the Perl language definition to support the new
keywords and operators in 5.10. I notice that keyword.control.perl
includes 'switch' and 'case' (which aren't Perl keywords; it's given/
when in 5.10) and also 'select' which is a function rather than a
control keyword.
Is there a compelling reason not to remove switch, case and move
select to the functions list?
Also, because I'm a TM language definition newbie, does anyone have
any tips about how to handle the // (defined or) operator? In some
contexts // is an empty regex; in others it's an operator
my @x = split //, $line; # regex, common idiom to chop into chars
my $x = $y // $z; # operator, equiv: my $x = defined $y ? $y : $z
--
Andy Armstrong, Hexten
My absence through January was caused by a longer trip to the southern
part of Africa (South Africa, Botswana, Zimbabwe, and a short day-trip
to Zambia).
I’ll be going through mailing list letters chronologically the next
couple of days and hopefully reply to most unanswered questions etc.
In a Ruby file, when I press command-R to run, about half the time I get an
error indicating that we tried to compile as an Xcode project and we are not
an Xcode project. Why is TextMate doing this and how can I prevent it? The
language thingy at the bottom says it's Ruby so clearly someone in there
knows it is; it just doesn't seem to be the same guy who responds to
command-R. Thx. m.
--
matt neuburg, phd = matt(a)tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>