This is an issue I just discovered, and I was wondering if it could get fixed:
TextMate doesn't make coffee yet (black is fine, no sugar or milk needed).
Also, I told it to wake me on time for the news, and it was 8 minutes late.
Allan?
Regards,
Martin
>Date: Fri, 5 Nov 2004 18:20:01 -0700
>From: Curtis Schofield <schofiel(a)telusplanet.net>
>
>I'm trying to get used to the automatic () {} behaviour.. sometimes i
>wrap
>if/parameterlists around existing code and i get an automatic } or )
>when i don't
>expect.
What I do it select the text I want to enclose and then press the '('
or '{' and it's done. It's kinda scary the first time, 'cause you'd
expect the selected text to be replaced by the character you typed.
But the second time will bring a smile to your face.
eg. type 'if' hold the shift key down, press the arrow key to move the
cursor to where you want it, press the '(' and so on...
Carl
>Date: Sat, 6 Nov 2004 18:37:49 +1100
>From: Justin French <justin.french(a)indent.com.au>
>
>Wait 'till you find yourself back in BBEdit or any other program and
>*expect* them (and completion, and snippets) to work and they don't.
>I'm starting to wish everything (Mail.app, where I do the bulk of my
>typing for example) behaved like TM.
Yes. When I have to use Vi or command line psql and no matter how long
I wait, the closing thing never appears. It seems so _broken_...
Carl
Hi All,
Just wanted every web developer to know about these scripts/commands
that I have just created and available here:
[ http://wiki.macromates.com/textmate/show/Howtos ]
1. Preview in Browser: Safari, Firefox and IE5
These commands will take the current file and then load it in a new
browser window. Works with both local files [ file://path/to/file.html
] and
web server based files [ http://www.somesite.com/file.html ] as long as
you create a new project Shell Variable called TM_PROJ_SITEURL with the
full URL.
Please note. Still some issues with Safari not being able to open a new
window on its own to sort out.
2. Reload Browser: Safari, Firefox, IE5 and All 3 browsers.
These commands will do a reload of the current page in each browser
separately or all at the same time.
Hope they are useful to you all.
Kind regards,
Mats
On Nov 5, 2004, at 19:12, Mike Chambers wrote:
> First of all, just bought my license, and want to say what a great
> editor this has been thus far.
> Now, onto my question:
>
> I am trying to duplicate the refresh safari command to work with
> FireFox. Here is what I have thus far:
>
> osascript -e 'tell application "FireFox" to activate'
> osascript -e 'tell application "FireFox" to do JavaScript
> "window.location.reload();" in first document'
>
> This works, except that FireFox does not refresh the active page.
>
> Anyone have any ideas on how to get this working?
> mike c
Hi Mike & welcome to the fold.
You've helped me before on the Flash mailing list (many years ago now),
so I thought I should help you as far as I can tonight (it's 9.30pm
here)
The problems you are having is to do with the AppleScript syntax and
limited AS support in Firefox.
The following Applescript works in Script Editor and just needs to be
converted into TM working code. Don't have time to do so tonight : (
set theActiveURL to "http://www.macromedia.com/"
tell application "Firefox"
activate
OpenURL theActiveURL
end tell
You would use $TM_FILE_PATH to get the path to the file and load it as
a local non-parsed file. IF you are previewing a file through a web
server, then I guess you need to add a Project Shell Variable (info btn
in project drawer when no file is selected) with the URL prefix and
then use a bit of fancy footwork to add the variables together into a
full URL.
I'll think about it over the weekend, but can't promise a solution, but
I'm sure you - and many others - will have worked it out before then. :
)
Hope that helped you a bit on the way.
Kind regards,
Mats
The tab metaphor for opened files works fairly well, especially if you
make the effort to open related files next to each other. The tabs
should shrink smaller imo, but that's a separate issue.
The question I have is -- if you are working on two files that are far
apart in the tab bar, is there any shortcut for switching between them?
My thought is that the program could maintain a history list of viewed
files, and then a key binding could be assigned to navigate back and
forward over that history list. Could this be added? (Or does this
capability exist somehow?)
Cheers,
Wayne
Hi,
When I've got many files open in the project drawer, it's difficult to
track down the one I want. It would be great if there was an option to
sort the files alphabetically.
Cheers,
Andrew.
--
All views are my own - who else would want them?
http://www.andrewsavory.com/blog/
Hello,
Is there a way to adjust the height of the tab bar and force the tabs to
"wrap" (similar to how UltraEdit does it), rather than having to click
on the double arrows and select from the dropdown on the right when the
tabs spill over?
If not, is this something that could go into a future release?
Thanks,
-Justin
Sorry to gripe, but pressing undo after writing a line of code is like
trying to walk up a downward moving escalator. I know it's been said
before but here is another plea to the steadfast, cooperative
developers: at least consider an option to let undo step back word by
word instead of character by character (what would be the nicest is to
step back in logical "chunks" the same way bbedit does).
thanks, Kumar
Hello everyone. I tweaked the folding icons again. Still using the
Stoplight color metaphor, but made them a little less saturated and a little
smoother around the edges. I made the Bookmark Icon blue too. Attached is
a screenshot and the required PNGs.
To install:
1. control-click on TextMate in the Finder and select "Show Package
Contents"
2. double-click on "Contents" in the window that opens
3. double-click on "Resources"
4. copy my replacement pngs to this Resources folder. Accept the dialog to
replace the existing pngs.
Feel free to add this to the wiki.
Simon
Cmd-Shift-L for select line only selects the physical line, not the logical;
if the line was wrapped it will not select the second part. This also causes
the default Duplicate Line macro to not work correctly on wrapped lines I
think. Is this easily fixable?
Regards,
Martin
PS. just ritually sacrificed BBEdit, now that TextMate supports the ODB
Editor Suite.
Hi Allan,
When I double-click on a PHP variable name it selects the whole word
(without the preceding $) as expected. Because I want to select the
whole thing I automatically do a Shift-Left Arrow to add the $ but
something strange happens and I get about half the word selected
without the $. Any chance of fixing this?
My expected behaviour is whichever arrow key (left or right) you first
start using after selecting the text should allow you to expand or
contract the selection at the appropriate end.
Also a suggestion (which BBEdit supports) is that a second shift double
click on a different word should select everything between and
including the two words.
Thanks for your time,
James
Hi,
I am trying to edit some SVG documents. When I open them one at a time
they work fine. When I try to open them in a project (to get tabs even
though I don't want the drawer and stuff :) it doesn't work. They don't
display, and if I click or double-click them in the drawer they try to
open in the browser instead of in the editor.
Is there a list of known bugs to not dupe reports? I couldn't find one,
but then I'm rather tired today.
Thanks,
--
Robin Berjon
Two marvelously useful features that I use heavily for programming all
kinds of language in Emacs and XEmacs are:
- Tab Always Indent: when this option is on, hitting the TAB key
always just indents the current line
- indent-region: re-indent the selection
I see you already have editing over sftp in your todo for 1.1.
TextMate looks like a good start and might find a nice niche. It's a
bit rough around the edges at the moment. And I find it hard to work
without the two indent features I mention above. Maybe I should add
them to the Feature requests page?
-Travis
Hi,
one feature I would really love to have would be the ability to have
tabs without needing a project (if there is I really couldn't find it).
I really like tabs but I only occasionally work using projects. Having
the option to say "any files I open are opened as a tab in the current
window" would positively rock.
Also, having a way of telling TM that you want all your windows full
screen at 0,0 would be really nice and far more usable than what the
default OSX behaviour provides.
--
Robin Berjon
There is really only one rule (apart from normal netiquette) I want you
to uphold:
When you write a _new_ letter to this mailing list, _don't_ use “reply”
on an existing letter (to get the To: filled in).
It screws up threading!!!
If you're using Mail.app, you can control-click the “To” of an existing
letter and select “New Message” to get a compose window with the “To”
header filled in.
Threading is a very useful feature, and especially for me with this
mailing list, since it's basically an archive of user feedback, and I'd
like for the table-of-contents to show _every_ thread, which it
currently doesn't, when one thread contain 2-3 _different_ subjects,
because people have used reply (then it only show the first subject).
So PLEASE remember _not_ to use reply (for new letters)!!!
Is there a compelling reason to use cmd-opt-arrows for tab shifting?
Safari uses Cmd-Shift-Arrow...if there's no reason to stay with the
current setting, I request that TextMate match Safari.
--
(-, /\ \/ / /\/
Hi,
Is it possible to do a "columnar selection" with the keyboard only?
Hold Alt while moving the cursor would be the logical shortcut for
such a thing I think (it doesn't seem to be used for other things?).
I don't use the tabs (ie. they're hidden) whenever I have a project
open (in the project drawer), is it possible to navigate up/down in
the projectdrawer with the keyboard?
-- johan
Does anyone know if there is any way to manually define what TM considers to
be a "word" when double-clicking to select? At the moment a dollar sign does
not seem to be part of what TM thinks is a word, and I use these to prefix
variable names. I seem to remember that within S-E-E there is some way of
defining which characters are legit for variable names or something, is such
a thing planned for TM?
Regards
Chris Jenkins
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
I really liked when folder names were bold in one of the past betas.
Do other people share my point of view ?
Setting this with a preference, should this require to go to the
terminal and type some "defaults..." thing, would be great.
Dominique PERETTI
http://www.lachoseinteractive.net
Allan, I know you made the change to call bash sub-shells with
'--login' in response to people's problems getting their PATHs set
straight, but I'd like to make an argument towards putting it back the
way it was.
Philosophically, it's just not how things are supposed to work with
bash. The reason .bash_profile is only called on a login shell,
.bashrc is only called on an interactive non-login shell, and BASH_ENV
is consulted for non-interactive shells is so that you can separate
initialization code for these very different conditions.
Practically, since, by default, .bash_profile is only called on a
login shell, people use it to put initialization code that should only
be run when they log in ... knowing that that's the only time it will
run. For example, people output stuff to the screen, they mess with
their stty settings to get their keyboard working correctly, etc.
People don't typically protect any of that stuff in if statements so
that it only runs if there is a tty because ... there should always be
one in a login shell.
By changing TextMate to use a login shell, it now executes all that
cruft in the subshell. Every time I run a command it now inserts into
the TextMate buffer all this extra stuff from my .bash_profile that
I've sent to the screen, and errors from my trying to run stty without
a tty. To combat that, I'm going to have to go through my
.bash_profile and surround any of that kind of code with if statements
that test if there is a tty or not.
So, in trying to make things easier for people (not having to set
BASH_ENV in their enviroment) I think this is going to wind up making
it harder for people (having to escape code with if statements all
through their .bash_profile). I would bet that you'll start to see a
lot of problems come in related to this.
What are your thoughts? Any chance I can convince you to change your
mind on this?
Thanks much.
this is a separate note but related to Dominique's message on orphaned
wiki pages ...
I have twice posted a link to a bundle containing snippets for creating
PHP Documentor tags in PHP scripts ... but both times the link has been
wiped out. Now the wiki seems to have been reorganized so I am
hesitant to repost. Should we have a new page for snippet-related
bundles? I'm not sure if maybe people are wiping out my entry because
it is not a syntax highlighter bundle.
The link is still available here btw :
http://farmdev.com/downloads/PHPDoc.tar.gz
kumar
Sorry, but I kinda liked being able to use Cmd-P for my own purposes :-)
Is there a way to disable that shortcut (using the current beta)?
Regards,
Martin
Two things I miss from BB:
a) Opening/saving directly by FTP/SFTP (not going through Transmit,
Interarchy, etc)
b) "show invisibles"!!! I know this has been asked for already... I
just wasted 10 mins on a file where 2 spaces were emulating a tab;
partly my fault (confused about Tab Emulation) but show invisibles
would be great...
Otherwise I'm loving it. The recent HTML-PHP syntax coloring seems
better, or is that my imagination :) I found myself running MySQL
queries directly in TM... cool! Just think of the possibilities with a
macro :)
Paul
>I have twice posted a link to a bundle containing snippets for
>creating PHP Documentor tags in PHP scripts ... but both times the
>link has been wiped out. Now the wiki seems to have been reorganized
>so I am hesitant to repost. Should we have a new page for
>snippet-related bundles? I'm not sure if maybe people are wiping out
>my entry because it is not a syntax highlighter bundle.
Hi Kumar,
I re-posted your link to the wiki. If it disappears, I'll help you
restore it. I suspect it was deleted out of clumsiness and not any
secret standards for what should be on the front page. I think the
nature of a wiki is that all the users have to evolve standards for
how things should be organized and how people should edit. I
personally think nothing should ever be deleted. At worst, it should
be put in a separate link or 'refactored' by being summarized.
I did the last reorganization because (1) most of the front page was
obsolete due to Allan's including them in the distribution and (2)
someone had incompetently edited the front page to nuke most of the
writing people did. It's possible that in restoring the old writing
I accidentally lost some post-nuking changes you made (but I did try
to check).
best wishes, Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
I just joined so I apologize if this is a recurring subject, but I would
like to see TextMate become ODB protocol compliant. Specifically, I work
with a few other programs like MarsEdit which allow editing of the text
in programs like BBEdit or SubEthaEdit. I have talked with a few of the
designers including Brett and for TextMate to also be included it needs
to include the ODB protocol. Is this possible for a future release?
Thanks
Robert
All I want for Christmas is world peace, an end to hunger, and for
TextMate to either support (s)ftp or be supportive of the external
editor thing. As in this:
http://www.merzwaren.com/external_editor.html
I'd become so reliant on Transmit's ability to open a text file in
BBEdit, where I could just sit 'save' and have it upload automatically,
that having to do it by hand again is really getting up my nose.
For the moment, can anyone recommend a way to get around this lack of
support? I still have BBEdit, of course, but I'd rather be using
TextMate. I'm not so good with shell scripting so I wouldn't know the
first place to start where that's concerned.
Can anyone help?
Regards,
Raena
>Just a quick note to stress that there are more and more orphaned pages
>in the wiki http://wiki.macromates.com/textmate/list/ .
>People should pay attention to other's links when they edit a page...
This is a good suggestion in general.
However, that page list isn't working right. The first three links
are from the front page. There are wanted pages that aren't listed...
I don't know how to fix it, so I'm just ignoring it for now.
- Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
Hey all,
Anyone know what happened to the XML bundle? Last I see from the
archives, whoever had it in an svn repo said he'd post a tarball, but
there's nothing after...then just a message much like this one, asking
where it went...
Just pining for it, s'all
d
Hi All(an),
Yet another smart release, v1.0.2ß2 is really great, print options
match exactly what we need :)
> Added a default set of smart typing pairs, these are: ({[""""]}).
Would you please add "« »"? i.e. something like
"« (caret here) »"
Have a nice week-end,
--
Jo <W:00°04'37" ; N:47°15'36">
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72
This is another minor/major feature request for Allan : )
The order of the open files windows tabs - in top of project window -
has confused me for a while, as the open files have not followed an
immediately identifiable method/structure. Having created a simple test
project with files named a1,a2, b1, b2 etc etc. I have finally worked
it out.
Newly opened files will always be added immediately behind the
currently selected tab, and not in an alphabetical order nor in a order
of opened status which I had kind of assumed it would do just like
Safari tabs do.
Therefore, could it be possible to implement this as an options
preference:
1. follow alphabetical order
2. order of open status (last opened is last in order)
IF this could be fixed I would be very grateful, as working with 10+
files open means I have to look through the tab bar for where my opened
files has been located.
What's the general view on this ? Apologies if this has been discussed
earlier without me noticing it.
Kind regards,
Mats
> Date: Fri, 29 Oct 2004 07:58:15 -0600 (MDT)
> From: William Douglas Neumann <wdnx(a)unm.edu>
>>There already is a feature for this: when you move over a parens/brace/etc,
>>the matching one lights up briefly.
>
> Although this could be improved as well. Right now, the hilighting only
> occurs when you move forward over the closing member of the pair (unless
> I'm missing a menu option somewhere), instead of either direction over
> either opening or closing members. BTW: Consider this a feature request,
> if it's not already an option, and a plea for guidance otherwise.
This feature is too "subtle" for me. I have great difficulty finding
the matched character. I like the way S-E-E does it: a double click on
a paren/brace/bracket selects the contents of the pair. This is very
clear and potentially very useful if you want to relocate the text.
I *reallyyyy* like putting paired characters around selected text.
That has become one of my favourite features. It makes writing nested
conditionals very easy. No more counting pairs. Selecting text between
pairs would be a nice counterpart. Hmmm, would also be useful for
single and double quotes too....
Have fun,
Carl
here is the issue i am having...
1. i scroll to a place deep within a long document to do some editing,
say a css file
2. i then switch to another document to apply some other edits, i
switch documents by clicking on their tab
3. when i return to the first document, the css file in this case, the
caret has returned to the top of the document and i have to scroll
again to find the place that i was editing...
is there anyone else having this issue?
thanks for a great product none-the-less!!
------------------------------------------------------
www.arrival5.com web
336,577,8014 mobile
336,992,3751 home office
I'm trying out 1.0.1. Hard to believe with that list of languages that
Java isn't present. I found the link to Brian Lalor's bundle for it on
the wiki, but the link is currently dead.
-Travis
Howdy textmaters. (that does sound kinda naughty, doesn't it?)
As I live in Denmark I commonly use the special danish characters æøå,
and has tried to make a command to the php htmlentities(9 command on
the selected text:
php -r "echo htmlentities('$TM_SELECTED_TEXT', ENT_QUOTES);"
But, alas, as in the terminal æøå gets mangled into
\303\246\303\270\303\245 before being entitized.
<, &, ", ' and other "normal" special chars gets converted just fine.
Is there a workaround for the brutal mangling of the innocent danish characters?
I know there is already a "Convert to entities" command, but it
converts every character, not just the special ones. And its a bit of
a chore to select every instance of a special character and running a
command on it.
Any thoughts? Anyone?
Nis "Have-a-nice-day" Sarup.
--
BTW: I have 5 Gmail invites. Write me at nis.sarup(a)gmail.com if you
are in desperate need of a new and fancy email.
I just make a rectangular selection of a column about 20 lines long, and
copied it to the clipboard.
Pasting this further down the document failed to create the extra space
needed for the code being pasted, and effectively 'merged' the pasted
code with the existing code following the insertion point.
Hard to explain. Will screen shot the steps if necessary.
drew.
On Mon, 25 Oct 2004 23:55:02 -0500 Kjell Olsen wrote:
> I can't make the date function work within the command - If I execute
> my script outside of textmate it works beautifully, but from within
> textmate I get:
>
> <code>
> date: illegal time format
> usage: date [-nu] [-r seconds] [+format]
> date [[[[[cc]yy]mm]dd]hh]mm[.ss]
> </code>
Timothy Martens' solution of using an external script which is then
called with a command works well, or -- if you'd prefer to keep it all
within TextMate, you could try something like:
ruby <<END
task_text = "$TM_SELECTED_TEXT"
task_text.gsub!("\[ \] ","[X] ")
print ""
from = File.basename("$TM_FILEPATH",".txt")
comp_time = Time.now
datestamp = comp_time.strftime("%d/%m/%Y at %H:%M")
File.open("/Users/me/completed.txt",'a'){|archive_file|
archive_file.puts
archive_file.puts "#{task_text} => in #{from} on #{datestamp}"
}
END
I ran into a similar problem, which I suspect in my case was down to
escaping the quotes in the format string wrongly. The double quotes to
form the Ruby string make this tricky. I decided to side-step the issue
slightly long-windedly by using Ruby's 'date' methods. Note also that
this code works on selected text: I have Standard in = selected text
and Standard out = Replace selected text. The selected task then gets
deleted from the original file and pasted in to the completed.txt file
with a checkbox ([X]).
I also put the date stamp on the same line as the text to make it
easier to grep for; when someone chases me about something I've done, I
can double-check when I did it ;-)
I'm a Ruby-newbie too, so I'm sure more experienced coders could make
it more efficient.
Jackie
--
Jackie Chappell
jmchappell(a)mac.com
On Tue, 26 Oct 2004 13:17:50 -1000 Timothy Martens wrote:
> /bin/sh: line 1: ruby: command not found
>
> why? do I need the full path in line 1?
Hmm. I don't use the full path for Ruby but it works for me. Also
whereis ruby returns nothing for me, but I also have Ruby 1.8.1 in
/usr/local/bin.
my $PATH is:
PATH="/usr/local/bin:/usr/local/teTeX/bin/powerpc-apple-darwin-current:
/usr/local/mysql/bin:$PATH"
export PATH
in .bashrc, but you can also put it in .bash_profile (I 'source'
.bashrc in .bash_profile). I found that if I put the default $PATH
first, the shell would find the Panther version of Ruby (in /usr/bin)
first before my 1.8.1 version in /usr/local/bin, but YMMV.
I think this must be a path issue. Does the command work if you specify
the full path instead of just ruby?
Jackie
--
Jackie Chappell
jmchappell(a)mac.com
Allan,
Thought you would like to know that my colleague at work is very happy with
the new auto-insert features in 1.02b1, I have even seen her use the
wrap-selection-in-quotes feature.
Well done.
Chris
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
Allan,
Thought you would like to know that my colleague at work is very happy with
the new auto-insert features in 1.02b1, I have even seen her use the
wrap-selection-in-quotes feature.
Well done.
Chris
DDB London - Effectiveness Agency of the Year
DDB Worldwide - Global Network of the Year
The Information given in the above email
and / or attachment is provided without warranty of
any kind, either expressed or implied on the part
of the writer or the Agency.
______________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________
1. I think the program rocks.
2. I was writing some HTML and I had the need to have a command that
jumped to the *inside* of the next tag. I couldn't figure out how to
do this in TM (or any other editor), playing with snippets and Perl
shell command ideas until I realized I could record a macro that did:
find <(.*?)> as regular expression
hit left arrow (to go to start of found selection), hit right arrow
(to skip over the <)
find [^>]* to select all characters up to the >.
It works just great.
3. In some corner of my head I feel like snippets, macros and
commands should really all be one type of automation entity. I'm not
sure how to do that, but it's a little confusing to have so much
power distributed across three different kinds of triggers...
4. Actual interface bug (in my opinion). If you start a selection,
say in the middle of the screen, and drag up past the window top, TM
should select everything up through the first character of the
document. Instead, it only selects up to the first line stopping at
the original column.
- Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
On 26. Oct 2004, at 19:47, Ian G. Gillespie wrote:
> Does anyone know of a good program that one can use to create a help
> file and a PDF manual without maintaining two sets of documents?
LaTeX does really nice PDF and with tex4ht I think the HTML result is
also reasonable good.
Another option is DocBook, though the PDF is not very nice when using
the freeware converters available.
Basically you just want to settle on some generic markup language that
allows you to convert it to whatever format you desire.
Which markup language is best suited probably depends mostly of what
type of documentation you're writing, i.e. is it heavily interlinked,
using all sorts of "typegraphic" features, footnotes, images etc.
Kind regards Allan
--
http://macromates.com/ ::: TextMate, OS X text editor
http://macromates.com/sigpipe/ ::: Personal weblog about
programming
On 26. Oct 2004, at 23:26, kumar mcmillan wrote:
> when copying and pasting text from one document to another document in
> a project, the pasted text gets shifted to the right one column.
Disable “Indented Paste” from the Behavior menu.
It tries to match the indent level of where you paste -- some
improvements could probably be made though (I think it fails to
properly treat spaces and tabs transparently).
> also... if you select several lines of text (like the require
> statement + comments above), then choose Text > Move Selection >
> Column Right, TextMate only moves the first line, not all lines of the
> selection. The same thing happens for Text > Move Selection > Column
> Left.
Yes, move column left/right only makes real sense for either selecting
sub-lines (e.g. words) or doing a columnar selection.
Kind regards Allan
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.