On my US keyboard the [ ] characters do have their own keys, and if you
shift them they are { } (braces).
-rich
On 10/25/04 6:28 PM, "Allan Odgaard" <allan(a)macromates.com> wrote:
> On 25. Oct 2004, at 23:55, Richard Kilmer wrote:
>
>> I followed the procedure to copy the KeyBindings.dict file to:
>>
>> ~Library/Application Support/TextMate/KeyBindings.dict
>>
>> I want to map shift right/left to xcode-style/command + ] and command
>> + [
>>
>> "@[" = "shiftLeft:";
>> "@]" = "shiftRight:";
>>
>> But it does not seem to work!
>>
>> Any help would be appreciated.
>
> Are you using a US-keymap? i.e. does the [ and ] have their own keys,
> or are they e.g. on option-8, option-9 (as with some european keymaps).
>
> Kind regards Allan
>
> P.S. This is really a mailing list type of question! ;)
>
> http://lists.macromates.com/mailman/listinfo/textmate
>
>
I am making a syntax module for the Rebol language and I am having
trouble getting some keywords to match properly. This expression works:
match = "(action!|any-block!|any-function!|)"
but it is not ideal for I needed it to work with word boundaries. When
I include word boundaries in the regex, the rule is never matched.
match = "\\<(action!|any-block!|any-function!|)\\>"
I think this is a problem with the exclamation point "!". I have tried
using it with these escape sequences: \!, \\!, \041 \\041; with no luck
so far.
I had the same problem with keywords having the question mark "?" in
them, ie:
match = "\\<(about|abs|absolute|action?|add|alert|type?)\\>"
Ideas would be most welcome. Is there a limitation in the regex engine?
Thanks, Jaime
It would be useful if smart typing wasn't active when writing code
comments. The reason being you're more likely to be writing natural
language sentences than code.
for example:
<?php
// Don't forget the elephants!
$elephants = true;
?>
with smart typing comes out like this:
<?php
// Don't forget the elephants!'
$elephants = true;
?>
What do other's think?
drew.
I am making a syntax module for the Rebol language and I am having
trouble getting some keywords to match properly. This expression works:
match = "(action!|any-block!|any-function!|)"
but it is not ideal for I needed it to work with word boundaries. When
I include word boundaries in the regex, the rule is never matched.
match = "\\<(action!|any-block!|any-function!|)\\>"
I think this is a problem with the exclamation point "!". I have tried
using it with these escape sequences: \!, \\!, \041 \\041; with no luck
so far.
I had the same problem with keywords having the question mark "?" in
them, ie:
match = "\\<(about|abs|absolute|action?|add|alert|type?)\\>"
Ideas would be most welcome. Is there a limitation in the regex engine?
Thanks, Jaime
Allan,
I will do that, Ive asked her this morning, she's working on some other
stuff at the moment but I'll let you know as soon as possible. For myself
its a huge improvement, definitely works for me, I had made a few commands
that would wrap the current selection with quotes etc, but this is much
better, TextMate seems more and more to able to read my mind!
Nice one.
Chris
On 25/10/04 9:44 pm, "textmate-request(a)lists.macromates.com"
<textmate-request(a)lists.macromates.com> wrote:
> If you can make her use the latest beta, it would be cool to hear if
> the problem is fixed with the new rules -- even if it's no benefit for
> her (i.e. she doesn't use the new "wrap selection" or the general
> auto-insertion), alone the fact that it no longer clashes with her
> style would be a nice improvement!
>
> Of course other people are also welcome with their input! Just remember
> to give it at least five minutes before you deem it a success/failure!
> ;)
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
Yes, I tried this also as these keys are the same as BBEdit and its one of
those habits I just cant shake...
Be nice to be able to change it.
On 26/10/04 3:27 am, "textmate-request(a)lists.macromates.com"
<textmate-request(a)lists.macromates.com> wrote:
> I can second Richard on this one. I have a US keyboard where [ and ]
> are on their own keys, but when I change by KeyBindings.dict to have:
>
> "@[" = "shiftLeft:";
> "@]" = "shiftRight:";
>
> ... TextMate doesn't pick it up.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
It's great to see such weekly improvement of this product!
Smart typing is almost incredibly cool. I like the 'no doubling if
there's text in front' and the 'surround selection with braces' is
awesome... I was about to try to write a macro or command to simulate
this.
Issue 1. Documents with syntax highlighting disabled don't have smart
typing turned on, regardless of setting. I assume this is a little
bug and not intended behavior.
Issue 2. If I'm typing in the middle of the ()'s, I still have to
right-arrow over the last ) to get to the rest of the typing. Am I
supposed to be able to Tab out of the braces somehow? Otherwise,
it's not really saving me a keystroke since -> and ) are about
equally hard for me to hit.
Alpha under OS9 had an interesting implementation of this, where they
used bullets like • to mark tab stops; then when you hit Tab,
you knew you were jumping to the next bullet...
- Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
Hi All,
In some (many?) applications, one can activate internet protocols by
command-clicking on a portion of text that looks like an internet
address. For instance in MacSOUP, a command-click on :
www.macromates.com
will launch <http://www.macromates.com/> in my prefered browser.
Other text editor can do so. Is that feature system-dependant? Could
it be easily implemented in TM?
Have a nice day,
--
Jo <W:00°04'37" ; N:47°15'36">
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72
I just installed the latest beta, and now all the Syntax highlighting
options I had set for PHP are gone (I can't stand the white background,
and prefer the darker ones).
Anyway, the bundle is still in my home directory (~Library/Application
Support/TextMate/Bundles), but does not show up in Syntax Highlight
As...I removed it from that directory, and reinstalled it, but no
luck...Any ideas????
Ben
So after a few days of (hopefully) well deserved vacation, I'm back to
TM development, and I'm currently adding support for printing.
But printing plain text from a plain text editor is really alien to me
;) so I was curious, what options do people expect to see?
I.e. should it always be soft wrapped? Should the font be changeable in
the printing dialog, or just use the document font? Should it have the
option to print with/without line numbers? Another tab-size? How about
syntax-highlight, should that be turned into b/w (there's a quartz
filter to turn it into grey-scale by default)? etc. etc.
If you do use/desire printing, let me know which “options” you use
(let's try not to mention all the things printing _could_ have) and
what stuff you actually do print (as plain text), especially the latter
will help me better understand the target audience for this feature!
Kind regards Allan