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
On 25. Oct 2004, at 14:02, José Campos wrote:
> I've just tried the print option in v.1.0.2ß1 : *very nice!*
> (apart from the vertical bar of the final "d"'s that are missing ;-)
Can you send me the resulting PDF (and also the text file and tell me
which font you used)?
> Could wrapping be improved so that the wrapping of a line that
> begins with tab(s) be done at the position of the tab instead of the
> left side of the page?
Yes, this sounds like a good idea (as an option).
Kind regards Allan
I just tried the new Print... option. I know syntax highlight is not on
and that it is using the document font but it seems that the text is too
big for a 12pt font. Marging are too high too.
Nice job.
--
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto(a)keltia.freenix.fr
Darwin snuadh.freenix.org Kernel Version 7.5.0: Wed May 12 16:58:24 PDT 2004
Ive been watching a few colleagues of mine using TextMate and one of them
has switched off the smart typing as she finds it doesn't really help her,
the reason is to do with the way she works, which admittedly is slightly
inefficient, but I myself have fallen foul of this as well, here's what she
does:
She types a word and then decides it needs to be a string, so she steps the
caret back to the start of the word and types a quote, but 2 quotes get
added so she then has to delete one of them, then she moves to the end of
the word and types the closing quote, and the same thing happens. So she
switches the feature off as its "annoying". Now she could make a command to
wrap a selection in quotes (as I have done), but it would be nicer if it
could be smarter about when to insert the pair.
Perhaps the pair of characters only get added if they are surrounded by
white space, or if some customisable regex is matched?
Chris
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
>> Insert header in every page of the document with file path, date
>> last saved, insert page footer with page number and total number of
>> page of the document etc...
>
> And if this header was customisable with TM_* variables (and some new
> vars), etc etc, that would be great.
I second this idea, and I also think that print options should be
relatively simple: use the document font and tabs, and allow a choice
of printing with syntax highlighting on or off (or just use the
greyscale Quartz filter). There should also be an option to print to
PDF, as in the standard MacOS X Print dialog.
Would it also be possible to print from the web preview? I often write
short notes for others in Markdown, so that I can send them a
marginally more pretty version to them as hard copy or PDF, but keep a
simple text file for myself. It would be nice to be able to print it
from the rendered web preview, without having to render it as a
separate HTML file, open that in a browser and print from there.
Jackie
--
Jackie Chappell
jmchappell(a)mac.com
Hello,
I am trying to improve the syntaxe for the Latex bundle. However, I am not familiar with plist.
In addition to structures of the type
\begin{..}
\end{...}
I would like to add a folding of the \section, \chapter, \subsection structure.
For this, I thought of adding in a snipped a line at the end of these structures which would be considered as a comment by Latex:
\section{This is a section}
%\end-section{This is a section}
\section{A new section}
....
I have tried to modified the current Latex.plist to :
<key>foldingStartMarker</key>
<string>(\\begin\{.*\}|\\(((sub)*section)|(chapter)|(paragraph)|(part))(\*?)\{.*\})</string>
<key>foldingStopMarker</key>
<string>(\\end\{.*\}|%\\end-(((sub)*section)|(chapter)|(paragraph)|(part))(\*?)\{.*\})</string>
However, this does not work very well as if there is any substructure in a \section of the type (\end{equation}, for example), the folding occurs from \section to \end{equation}.
Anybody could tell me how to correct that??
I thank you in advance!
Normand Mousseau
I am trying to improve the syntaxe for the Latex bundle. However, I am not familiar with plist.
In addition to structures of the type
\begin{..}
\end{...}
I would like to add a folding of the \section, \chapter, \subsection structure.
For this, I thought of adding in a snipped a line at the end of these structures which would be considered as a comment by Latex:
\section{This is a section}
%\end-section{This is a section}
\section{A new section}
....
I have tried to modified the current Latex.plist to :
<key>foldingStartMarker</key>
<string>(\\begin\{.*\}|\\(((sub)*section)|(chapter)|(paragraph)|(part))(\*?)\{.*\})</string>
<key>foldingStopMarker</key>
<string>(\\end\{.*\}|%\\end-(((sub)*section)|(chapter)|(paragraph)|(part))(\*?)\{.*\})</string>
However, this does not work very well as if there is any substructure in a \section of the type (\end{equation}, for example), the folding occurs from \section to \end{equation}.
Anybody could tell me how to correct that??
I thank you in advance!
Normand Mousseau
On 23. Oct 2004, at 9:23, José Campos wrote:
>> [...] the extension is a 8-digit number representing the date the
>> document was edited (*.20041023 for instance)
> and added : <string>[0-9]+</string>
> But it does not seem to ork
One of the few places I decided not to use a regex or shell command ;)
Would it be possible for you to add an extra .txt to the file names?
I _could_ make the file extensions regular expressions, but I would
prefer a user workaround, since the rest of OS X does use fixed text
extensions more or less exclusively (if we ignore the legacy stuff with
four characters creator/type codes).
Kind regards Allan
Emailed VersionTracker earlier today and just got this reply:
>
> On Oct 23, 2004, at 2:06 AM, Allan Moult wrote:
>
>> How come you haven't got TextMate listed?
>
> Good pointer - just got it. Thanks for keeping us on the ball, and
> have a great weekend!
> --
> Michael Kincaid - Mac Content Editor
> VersionTracker: http://versiontracker.com
Looking forward to the feedback.
Allan [the other one]
Hi All,
In the project drawer, a right-click on a file icon opens a dialog
where one can find :
Treat Files with ".xxx" Extension as Text
Where does TM store this infos afterwards? Did not find anything in
"Application Support" nor in "Preferences"
The point is to have TM consider files with a variable extension as
text, like the ones I have to deal with : the extension is a 8-digit
number representing the date the document was edited (*.20041023 for
instance)
Thanks,
--
Jo <W:00°04'37" ; N:47°15'36">
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72
Hello all.
I'm not sure why people have seized upon this font-size issue. It is,
as a few people have already noted, a minor point, and anyone who
really cares can change it just like I did. What is *really* important
are the other, functional behaviour changes I suggested:
1. Store the Base URL in the project file. Why must I retype this every
time the Preview disappears, speaking of which:
2. Keep the preview open until *I* close it, don't make it disappear.
If a user opened it, chances are they're doing web design, and they'll
want to use it again. This shouldn't be hard, right?
3. Change the preview to display the contents of the current tab *if
that tab is HTML*. Quick Hint: if you are syntax-highlighting something
as HTML, you should sensibly be able to preview it. Likewise for PHP.
This is a bit trickier, yes.
4. Have an option to update the view if *any* project file changes.
This is probably on a par in implementational difficulty with the
previous suggestion.
---
Justin says:
> Firefox and Safari and pretty much every other browser ship with 16px
> -- I'm 99% certain of this. Eventually a preference is planned for
> you
> to pick your own I think. When the first betas shipped, it was set to
> 12, but people complained about it not being like Safari and Firefox,
> so whatyagonnado?
Set it to the same value as Safari and Firefox - surely the majority of
the mac browser share. Why would you ever set it differently? Why
12pts? ...
> Can't please everyone until there's a font size preview -- and even if
> TM were to preview things EXACTLY the way YOU prefer (14px), it's only
> previewing your Safari/Firefox set-up, not previewing my set-up, or
> some guy down the road surfing the web on his XBox.
... if the font value was the same as the default for other browsers,
you'd please *most* people. If that's 16pts, not 14pts, fine - i was
just guessing as I hacked around. I could be wrong, and in this case,
my eyes were a few pts out :)
My point is, why is TextMate deliberately different from what seems to
be the standard here?
> It's a quick and handy HTML preview, not a full-on browser... and isn't
> that good enough?
For a preview to be useful, it needs to be somewhat accurate,
especially if you are using it for CSS design. I don't ask for a full
on browser (presumably by that you mean history, bookmarks?), just a
quick pane that displays reasonably accurately what the page I'm
hacking up will look like in most browsers.
Timothy says:
> I have to side with Justin here. You
> should leave the Browser default text size alone especially when
> testing design & accessibility.
I'm not suggesting that I'd want to change it as part of my design
process. Just that it be set to a better default value.
I'll repeat - I don't understand why the OakWebPreview sets it's
default to 12pts if the two most popular browsers are different. I'd
love to hear a justification. A preference to change it at some point
would be great, but clearly isn't high-priority, nor do I feel it
should be. Just set the default sensibly - doesn't that better fit the
TextMate philosophy of "no preferences"?
Someone wondered if anyone codes static HTML pages any more. Surely the
answer is YES! Pretty much everyone does. Most design takes place using
placeholder content - a static page - which is the broken up and fed to
the appropriate dynamic parts of Rails, Smarty or whatever. If there
are people designing html using only fragments and relying on dynamic
systems to put them all together without even once just checking that
the html jigsaw pieces they are carving fit together nicely, well kudos
to you :) I must be old school, but I design the whole page first (with
forethought, of course), and then separate the components into
different files/functions.
Kumar said:
> I would also vote to not put too much development
> into WebPreview since Safari is only a command-tab + command-R away....
> unless there was a feature like SubEthaEdit that did WebPreview in
> realtime as you type.
The Web Preview *does* auto-update, like SubEthaEdit, unless I am
imagining things, and that is what makes it most useful. Why hit the
keyboard at all if you don't have to.
---
I've suggested some simple aesthetic changes, and some simple
behavioural changes that AFAIK won't take more than a few hours
consideration, but will surely improve the usefulness of the Web
Preview feature for those of us that do feel it is handy. The font-size
note is tiny compared to these other 'ideas'.
Does anyone else think Web Preview is useful? If you don't use it...
you've not lost anything. If you do, you've gained a lot.
I hope I've made my case more effectively here, thanks for reading guys.
- James
Hello!
I have to get this out of my system: this is possibly my favorite new
mac app. Amazing work!
Anyway, these are my thoughts about how TextMate should respond to
double-clicks on text, based on my preferences and the way other mac
applications like BBedit or TextEdit perform.
When I double click on whitespace, I like for the selection to stop at
the beginning/end of the line, or the nearest adjacent non-whitespace
character, whichcever comes first:
[ ]word word
Textmate selects the white space until the beginning/end of the line,
or the nearest adjacent word, whichever comes first:
[ word] word
When I double click on a word, and then shift click to the right or
left of the selected word, I like the selection to expand to include
the word or whitespace I shift-clicked on:
[word] --> [ word]
Textmate, interestingly, does this when I click to the right of a
selected word, but when I click to the left of one, the selection is
changed to the characters between where I clicked and the beginning of
the old selection:
word [word] --> [word ]word
I'd say it's praise that this is my biggest gripe after switching to
TextMate a little less than 24 hours ago. Yeay textmate!
John
def self.extend_object( obj ); self.setup_for( obj ); end
In the above, TextMate (v1.0.1) is treating everything from the first
paren to the last paren as the argument list. Should account for the
above, as well as:
def foo( bar=")" ); puts( 'yay' ); end;
--
(-, /\ \/ / /\/
(copied from http://interblah.net/2004/10/22/textmate-web-preview/ )
I have posted some feedback about the Web Preview to the
[wiki](http://wiki.macromates.com), along with a
[screenshot](http://www.lazyatom.com/media/images/textmate-web-
preview.jpg). I'm happy to provide my revised .nib file too.
In summary, and in order of perceived importance, the changes are:
* changed the base font size of the OakWebPreview to 14 - this way it
matches at least my setup for Safari and Firefox, and I'm not aware of
every having changed the defaults in those apps. Either way, ENSURE
that the font sizes are similar, otherwise the preview is pretty much
useless.
* move, resize, relabel and re-anchor the "Back", "Forward", and
"Reload" buttons. The top row of controls is now Back, Forward, URL,
Reload. This more closely-matches real browsers. The Reload could be
placed to the left of the URL, the important point is that these
controls go on top
* Remove the window texture - it's unnecessary, and unattractive. This
isn't a rant against metal, I like metal, it's just *better* as aqua
here.
* Resize the "Show Options" checkbox to "small", and place it flush
against the bottom of the view. Then Increase the vertical size of the
OakWebPreview accordingly.
### Feature Requests
1. Have the web preview always shown, if it has been opened. It should
then display whatever is in the selected tab, if the file meets some
"web previewable" criteria. If the current tab is showing an html file,
or a php file, or a .asp file, change the web preview to it, otherwise,
leave it displaying the last file that did match.
This will enable a lot of very useful editing, like changing the CSS
and having the preview update automagically, as outlined next.
2. Have another option which updates the preview, after whatever delay,
if ANY file in the project is changed. This way, I can:
* edit an html, open the web preview
* check the NEW "update if any file is modified" option on the web
preview (a project-persistent option)
* switch to the CSS (or JS, whatever) in the project. Note that
since CSS/JS aren't "previewable", the web preview window still shows
the html file
* as changes are made to the file, the web preview is told to
update, with whatever delay
* now, the consequences of any changes I make to external files are
updated automatically in the preview
This feature would REALLY kick ass. You know it.
3. Keep the "Base URL" persistent within a single project. Store the
base url within that project! This doesn't require a preference, just
each time it's manually updated, change the entry in the .tmproj file
None of these features/fixes are very hard, nor can I think of any way
that they negatively impair the current workings of TextMate - what are
the chances of seeing any of them in 1.0.2?
i'm not sure when it happenend, but it sopped working, so I plopped a
copy of Markdown.pl in:
~/Library/Application Support/TextMate/
which is same as:
/Users/tim/Library/Application Support/TextMate/
yes?
and now I get:
Base URL: file:///Users/tim/Documents/projects/GTD/waitingOn
/bin/sh: line 1: /Users/tim/Library/Application: No such file or
directory
help???
This is a very simple set of snippets to automate your PHP Documentor
tags [http://www.phpdoc.org/] while writing PHP classes using TextMate.
download: http://farmdev.com/downloads/PHPDoc.tar.gz
Here are the commands:
phpdoc_c : creates a PHPDoc class block
phpdoc_d : creates a PHPDoc definition block (constant definition)
phpdoc_f : creates a PHPDoc function block
phpdoc_h : creates a PHPDoc header for the top of your script
phpdoc_v : creates a PHPDoc class variable
** There is a very nice feature in TextMate that allows you to
reference a cursor position in a snippet by simply repeating the
numeric variable. What I like to do when writing functions is always
comment the end of the function with its name so you know what the last
trailing bracket is closing. This is fully automated for class and
function blocks. As an example:
function do_something($input)
{
// lots of code ...
// lots of code ...
// lots of code ...
// lots of code ...
// lots of code ...
// lots of code ...
// lots of code ...
// lots of code ...
} // END function do_something($input)
I must also say that with TextMate 1.0.1 I am sold! Many thanks to the
dev team and hopefully my license will help keep things moving. And
feel free to include this in the default package if you see fit.
---
Here is a complete example of how a script would look using these
snippets :
<?php
/**
* Description of document
*
* @author Author Name
* @version $Id$
* @copyright Author Name, 22 October, 2004
* @package default
**/
/**
* Define DocBlock
**/
/**
* undocumented class
*
* @package default
* @author author
**/
class Some_Class
{
/**
* undocumented class variable
*
* @access public
* @var string
**/
var $some_var;
/**
* undocumented function
*
* @access public
* @return void
* @param string $input
* @author author
**/
function do_something_cool($input)
{
} // END function do_something_cool($input)
} // END class Some_Class
?>
I'm working on a big php class file (with heavy coloring syntax bundle).
I modify something.
I save the file.
I go to Safari and test.
When I switch back to TextMate, it looks like TM is refreshing
everyhing, being unavailable for 2 or 3 seconds with the spinning
wheel. Then it seems to move to the caret (like when one presses
command-J).
Note that this does not happen if I don't save the file before.
Dominique PERETTI
http://www.lachoseinteractive.net
Can anyone tell me how I should checkout the svn bundles (java + xml)?
I get this error:
Expected version '2' of repository; found no version at all; is
'/media/subversion/repos' a valid repository path?
Kind regards Allan
i'm part of those weird guys that 'HATE' text wrapping.....
in text mate disabling text wrapping leads the gutter to disappear when
scrolling horizontally .... do the gutter has to be attached that way
to the text? i don't think so ...it should be a static bar on the left
of the GUI..... no? seems crazy to all of you ?
thanks
olivier
Hi there
When I fired up the latest release, it seems that it has overriden my
custom PHP/HTML syntax coloring.
I had my own version in my home directory in the correct location.
All of a sudden my php pages are with a dark background (#2e2e2e) when
set to HTML(PHP) coloring.
The weird thing is I can't find a reference to this hex value in any
of the bundle files so I'm at a loss to correct it.
I thought the bundle file saved as HTML-PHP.plist set the syntax
coloring for HTML(PHP). If so, why is my local version with it's
background color of #efefef not taking effect?
Any clues appreciated...
bongoman
Hi,
It may just be me but Find doesn't seem to work very well at the
moment. (b8 btw)
I've got a reasonably large file open (about 400 lines) and if I have
no text selected I can Find no problem.
If all of the text is selected (Through Select All) then Find doesn't
work with either 'Entire File' or 'Selected Text'.
If a small portion of text is selected then 'Entire File' appears to
work but 'Selected Text' functions the same as Entire File, i.e. it
ignores the selected text boundaries.
Anyone seeing the same thing?
Thanks,
Richard
1) If I put the cursor at the front of a collapsed, folded section and
press tab, I expected (and desire) it to be the equivalent of
performing a Shift Right on the entire fold.
2) (more controversial, perhaps) if I select a few lines, starting in
the middle of the first line, I expect/desire Shift Right and Left to
apply to the start of the line where the selection starts, not to
insert tabs in the middle of it.
In the following example, | marks the start and end of the selection:
class Foo
def bar
puts "That's gre|at it starts with an earthquake"
puts "birds and snakes and aeroplanes"
puts "and Lenny |Bruce is not afraid."
end
end
This selection is because I was in the middle of the word 'great' and
performed shift+down arrow twice.
When I Shift Right, it should do this:
class Foo
def bar
| puts "That's great it starts with an earthquake"
puts "birds and snakes and aeroplanes"
puts "and Lenny Bruce is not afraid." |
end
end
And not this:
class Foo
def bar
puts "That's gre |at it starts with an earthquake"
puts "birds and snakes and aeroplanes"
puts "and Lenny |Bruce is not afraid."
end
end
A workaround that I suppose I could get used to is to perform Select
Line after selecting the text, before shifting...but that should happen
automatically. (As noted in the example, the act of shifting left/right
should not only affect the entire line, it should also select the full
lines.)
Operating in rectangular selection/column mode is a different story,
but doesn't change how it should (IMO) behave in this case.
--
(-, /\ \/ / /\/
hi....switching from tab to tab in textmate leads to a recentering of
each page on the cursor...is it a feature or a bug?
if it's a feature it would be cool to be able to switch it off on a
user preference basis .... i find this terribly annoying cause that
prevent me to scroll a text to see a portion of code, and then to
switch back and forth ....
i also have this undo stack disappearing ....
very strange
keep up the good work...textmate rocks
thanks
Hi all,
With window splitting implemented, I may consider switching from
emacs. One thing that gets me though is that 'Set Mark' does not seem
to work properly. I use this all the time to select a block of text
without having to hold down shift. "setMark:" is set in my Default
Key Binding, yet I get the blip of unknown command from TextMate when
I try to use it. This works great in TextEdit, btw.
What do other people use to select text without using the mouse? I
could hold down shift, but then that blocks me from using my other
bindings (^p and ^n for line up and down respectively). Is shift and
the arrow keys the only option?
Thanks,
Wayne
From the release notes :
> Changed default key binding for “select line” to option-shift-l.
Hopefully TextMate now sucks less in Germany ;)
Yeah, but now it does in France !!
Dominique PERETTI
http://www.lachoseinteractive.net/
Backdrop Folders : Open "views" of your folders at desktop levels and
interact with them
(http://www.lachoseinteractive.net/en/products/backdropfolders)
Heres another idea which Im pretty sure would satisfy my original
comment. Currently TM inserts the closing character of the pair at the
same point as the user types the opening character, if on the other
hand it waits for one more key press before deciding whether to insert
the closing part of the pair, it could perhaps make a better guess as
to whether that is what the user wants. For example; moving the cursor
could be construed as a cancelling operation, so the closing character
would be omitted if the user simply pops back to add a quote character
to the start of a word and then clicks somewhere else in the document
(or uses the arrow keys), whereas simply continuing to type after
pressing the opening character would be construed as a confirmation and
the closing character inserted as it is now.
so what im saying is: wait to see what the user types next, and then
decide whether to insert the closing part of the pair.
does that make sense?
Chris
I'm not sure if this relates to my system or a particular (undocumented)
tweak in the latest build, but all the outstanding text peculiarities
have cleared up.
For example, in ProFont 9pt anti-aliased I was seeing a lowercase 'L'
being represented at double thickness (2px). This has all gone, and it's
*beautiful*.
Along with all the other visual tweaks in the latest build, TextMate is
really sweeping me away.
My dollars are going down today. New customer.
drew.
I like being able to start a new document from a template when you are
working in a project, but it would be nice to have that feature when
you are not working in a project.
- Juan
Not sure if this has been suggested before (or even if it already lies
hidden beneath the sleek exterior of TM and I'm just an idiot), but I
would like to be able to shift-click or alt-click on a fold to select
all contained text rather than expanding or collapsing the fold. This
can then be used for drag/drop, copy/cut and paste and, most
importantly for me, search and replace criteria, i.e. allowing me to
use search within selection to quickly do replaces within a single
defined function or other logical block.
A further possibility, which may be a step too far, is to use shift-alt
click to select multiple, non-contiguous, folds though I suspect that
this would be too confusing and not useful enough. Views?
Thanks again for a great product.
Cheers,
James
Yeah, that's what I figured, in fact the more I think about it, the less
simple it seems to become!
Its one of those classic software problems, in making something "smart"
there are always occasions when its not so smart. Perhaps Ill just get my
friend to adjust her typing style.
> "only surrounded by white space" doesn't work -- consider something
> like $foo[' which smart typing should match with '] automatically, yet
> neither the [ or ' are surrounded by white space.
>
> "only FOLLOWED by white space" is a bit better, but still doesn't work
>
> "only surrounded by white space or other smart typing pairs" is a lot
> better
>
> ... but I think in practice, it will take a lot of thinking before a
> real solution is found... no quick patch here :)
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
hi,
i found something quite annoying and possibly dangerous.....when
editing a script its very usual to delete a block just to see what
happens....but hitting the Apple-S seems to kill the undo list
sometime...
can't get this behavior repeated each time....
weird
The ruby regexp highlighting works much better now, but still gets
confused by something like:
%r{hel{2,10}o}
(The highlighting stops at the first "}").
Adding this:
{ name = "Arbitrary repetition"; match = "({\\d+(,\d+)?})";
foregroundColor = "#CCCC33"; }
to the Regular Expression II set in Ruby.plist appears to sort this.
Doesn't work if you have a regexp like this though:
%r{foo\{2,10}
Admittedly it's a bit of an extreme edge case, but if someone with
better regexp skillz feels like figuring it out...
(Note: I don't subscribe to this list, but do check the archives every
so often.)
- Peter
I just tried to delete a file by dragging it from the Project Drawer to
the Trash. It didn't work.
Is that an absent feature or an unrealistic expectation?
drew.
I don't know if TM now sucks less for germans but when I press
alt-shift-L to select the current line, I get a fl ligature character
instead :-p.
--
Sune.
"Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn"
http://cyanite.org -- Content follows ;-).
hi,
when scrolling horizontally a 'non wrapped' document the gutter scrolls
with the text.
has it been already mentioned ?
it's quite annoying cause scrolling to the right means loosing
bookmarks, folding and line numbers....
if it's not a bug , why such a design choice?
thanks
this text editor is becoming THE TEXT editor on macosx....way cool
There currently is no way to define foldingstopmarkers for these things.
Allan informed me that he is planning to rewrite the folding code so that
it is possible to fold these things.
Jeroen.
PS. Please don't use reply on a message to start a new thread. It messes
up the threading display in clients that support it.
Hi All,
I'm trying to create a new command to submit current file to W3C
html validator. This one does not work :
open http://validator.w3.org/check/$TM_FILEPATH
Of cours I could install the validator directly in MacOS X as
<http://developer.apple.com/internet/opensource/validator.html> but the
first way seemed easier.
Any idea?
Have a nice day,
--
Jo <W:00°04'37" ; N:47°15'36">
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72
OK, I might be opening my mouth and removing all doubts about my
stupidity here, but I can't think of a solution to this problem, so
here goes..
I have a project in the following location: [
/Users/mats/Sites/projectName/ ]
In my template I use Custom Shell variables to auto-enter the relevant
info.
The "TM_FILEPATH" returns: [
/Volumes/WorkDisk/Users/mats/Sites/projectName/index.php ]
*but* I would prefer to have: [ /projectName/index.php ]
in other words remove [ /Volumes/WorkDisk/Users/mats/Sites ] from the
TM_FILEPATH or alternatively create a new shell variable with this
info only.
I guess that I would use some form of 'grep' and remove the bits that I
don't want, but I can't work out how.
Any help would be greatly appreciated.
Kind regards,
Mats
A few Find&Replace problems:
1. If you Replace and Find without a prior Find, it will just insert
the replace text at the carret. This could be a feature, but I think it
would be better if it just did a Find in that case instead.
2. When a window is outof focus, selection highlighting is dimmed. This
makes it _very_ hard to see where Find has found a particular word
since the Find window is the active one during F&R.
--
Sune.
"Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn"
http://cyanite.org -- Content follows ;-).
I'm on a 17" PB @ 1 GHz with 1 GB of RAM, running a few apps (mozilla, a
dozen iTerm, Mail.app, X, iTunes and TM). In my current project I have 9
open files (a few hundred lines of Ruby total) and switching from file to
file take a noticable amount of time. Am I the only one?
--
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto(a)keltia.freenix.fr
Darwin snuadh.freenix.org Kernel Version 7.5.0: Wed May 12 16:58:24 PDT 2004
On Oct 19, 2004, at 12:11, Allan Odgaard wrote:
>> Here's a really wacky feature request: a way to specify an argument
>> to the command each time I run it. When I'm developing, sometimes I
>> want to run "make" then "make set-up-test-data" then "make test", or
>> do things in a different order.
>
> I think this will be possible when I introduce project-specific shell
> variables, as requested by Ivan (IIRC).
In a very spooky coincidence I was just writing an e-mail with this
feature request when the above appeared in my inbox. : )
So here's my take on project-specific shell variables. As a web
developer I have a number of current projects on the go in my ~Sites
folder. For each project I have a number of variables that are common
and would ideally be possible to collect and auto-enter into new files
or Macros.
Examples:
Project Dev URL: (local desktop URL)
Project Live URL:
ClientName:
Development Version:
etc etc.
So I was thinking that we could have the following section in the
.tmproj file, (which is a .plist file really):
<key>ProjectShellVariables</key>
<dict>
<key>TM_PROJECT_CLIENTNAME</key>
<string>MacroMates.</string>
<key>TM_PROJECT_VERSION</key>
<string>1.0</string>
<key>TM_PROJECT_LIVEURL</key>
<string>http://www.macromates.com/</string>
<key> TM_PROJECT_DEVURL</key>
<string>http://macromates.dev/</string>
</dict>
Later on there could be a GUI for this functionality as well - sort of
a copy of Macros/Snippets/Commands window -, but to begin with we could
open the .tmproj file in TM / Property List Editor and add/change our
own variables.
If these variables could be accessed in Snippets, Commands and when
creating new files as well it would be even greater.
Also if the .tmproj file could remember the toggled state of
groups/directories inside the project drawer when closing the project
it would be great as well.
Kind regards,
Mats