Hello, I'm just trying out TextMate and I very much like the feature for collapsing brackets. (I remember seeing a post on some mac blog about using OmniOutliner to write code just so a similar feature could be achieved. Anyway...)
However, I have a suggestion. I have trouble distinguishing between the little triangle icons used on the left side. I was thinking adding color to them would make it much easier to see which is the top and bottom and which is collapsed. So I looked in the resources of the app and found the graphics files and tried changing them. The colors I chose are perhaps a bit much, but perhaps this post will inspire someone else (or the developers) to come up with a better color scheme.
I went with a red-yellow-green stop-light color metaphor. Green is the top of an open triangle. Red is the bottom of an open triangle. And Yellow is a collapsed triangle. If that makes any sense...
Basically, I changed these files: Folding Bottom Cap.png -> tint Red Folding Collapsed.png -> tint Yellow Folding Ellipsis.png -> tint Yellow Folding Top Cap.png -> tint Green
I've attached a zip containing my newly tinted PNGs. I'm not sure if this mailing list will let attachments go through, but if it does, enjoy. Otherwise, I guess you'll have to tint 'em yourself.
Simon in New Orleans
I've already submitted this to "the boys", however I figured i'd bring it up here.
For a snippet, there should be a variable say "$s" that references the text selected when the snippet was acted on, so that say, if I select noel@noeljackson.com and click on my href snippet, it will replace $s with noel@noeljackson.com, allowing easy creation of headers etc in HTML without going back, or creating macros.
-Noel
When pasting HTML in from a web browser to TextMate, it loses it's tabbed formatting. Whereas BBEdit will keep the tabs and returns of the text. I'm using firefox.
-Noel
---------------------- noel@noeljackson.com http://noeljackson.com http://relevantly.com ----------------------
Actually, when copying and pasting HTML from any other editor to TextMate, even with the "Indented Paste" option checked, it still comes out all jumbled together (not cool).
-Noel
On Oct 6, 2004, at 3:09 PM, Noel D.Jackson wrote:
When pasting HTML in from a web browser to TextMate, it loses it's tabbed formatting. Whereas BBEdit will keep the tabs and returns of the text. I'm using firefox.
---------------------- noel@noeljackson.com http://noeljackson.com http://relevantly.com ----------------------
On 6/10-2004, at 21:16, Noel D.Jackson wrote:
Actually, when copying and pasting HTML from any other editor to TextMate, even with the "Indented Paste" option checked, it still comes out all jumbled together (not cool).
Have you tried toggling the Tab Emulation setting? I am not sure that has anything to do with it though.
Sure have. Only editor that I can paste to and from is TextEdit. Even copying from BBEdit to TextMate doesn't work right.
On Oct 6, 2004, at 5:35 PM, Sune Foldager wrote:
Have you tried toggling the Tab Emulation setting? I am not sure that has anything to do with it though.
---------------------- noel@noeljackson.com http://noeljackson.com http://relevantly.com ----------------------
On 6/10-2004, at 23:53, Noel D.Jackson wrote:
Sure have. Only editor that I can paste to and from is TextEdit. Even copying from BBEdit to TextMate doesn't work right.
Hmm.. maybe this is a feature in BBEdit where it cleans up the pasted result? Try this from a shell to see what format the text on the clipboard really has: pbpaste
Are there tabs and linebreaks there?
No. this isn't a BBEdit feature. Copying and pasting text from any application normally retains its "shape". Try pasting from a web browser to textedit. It retains the shape. Try pasting the same text (html is best as it has a lot of tabs) into TextMate, it just gets pasted as one big chunk! Disappointing.
-Noel
On Oct 6, 2004, at 6:10 PM, Sune Foldager wrote:
Hmm.. maybe this is a feature in BBEdit where it cleans up the pasted result? Try this from a shell to see what format the text on the clipboard really has: pbpaste
Are there tabs and linebreaks there?
---------------------- noel@noeljackson.com http://noeljackson.com http://relevantly.com ----------------------
On 7/10-2004, at 1:11, Noel D.Jackson wrote:
No. this isn't a BBEdit feature. Copying and pasting text from any application normally retains its "shape". Try pasting from a web browser to textedit. It retains the shape. Try pasting the same text (html is best as it has a lot of tabs) into TextMate, it just gets pasted as one big chunk! Disappointing.
Yes, disappointing, but maybe we should be a bit more constructive here :-). Can you give a concrete example we can try, because I don't think we are quite sure what is going on.. it seems to work fine here. Maybe an URL and what you exactly do?
I'm seeing something like this, too -- a paste into TextMate loses all newlines and winds up as one long line. However, I think I'm only noticing it when I paste from Firefox.
So, here's a repeatable example:
* Open Firefox to http://instiki.org/ * Click "Edit Page" at the bottom. * Select all in the editable textarea. * Paste into a TextMate window
... you should see that all the newlines have disappeared.
I haven't been able to make this paste problem happen yet copying from anything except Firefox.
Interestingly, if you save the TextMate buffer to a file (leaving it as is, with the newlines gone), then close the window and re-open it in TextMate ... the newlines have been preserved in the underlying file and now show up.
I hope that helps, I assume the original poster is seeing something along these lines and that this is not a separate but related issue.
same sort of thing, except it happens when going from any non-cocoa program to textmate. not just firefox.
-Noel
On Oct 6, 2004, at 7:34 PM, Chris Brierley wrote:
I'm seeing something like this, too -- a paste into TextMate loses all newlines and winds up as one long line. However, I think I'm only noticing it when I paste from Firefox.
So, here's a repeatable example:
* Open Firefox to http://instiki.org/ * Click "Edit Page" at the bottom. * Select all in the editable textarea. * Paste into a TextMate window
... you should see that all the newlines have disappeared.
I haven't been able to make this paste problem happen yet copying from anything except Firefox.
Interestingly, if you save the TextMate buffer to a file (leaving it as is, with the newlines gone), then close the window and re-open it in TextMate ... the newlines have been preserved in the underlying file and now show up.
I hope that helps, I assume the original poster is seeing something along these lines and that this is not a separate but related issue.
---------------------- noel@noeljackson.com http://noeljackson.com http://relevantly.com ----------------------
On 7/10-2004, at 1:41, Noel D.Jackson wrote:
same sort of thing, except it happens when going from any non-cocoa program to textmate. not just firefox.
My guess is that it is related to their use of \r instead of \n for line-endings.. I am having it verified, hang on! :-).
Alright, we just tested this bug. The problem is that non-Cocoa programs (apparently.. maybe others also) use the old-style \r for line endings, instead of the new-style (and posix-style) \n.
This bug will be fixed ASAP, and a version 1.0.1 will be released :-).
On Oct 6, 2004, at 6:34 PM, Chris Brierley wrote:
Interestingly, if you save the TextMate buffer to a file (leaving it as is, with the newlines gone), then close the window and re-open it in TextMate ... the newlines have been preserved in the underlying file and now show up.
Sounds like a line-ending encoding issue (cr vs. lf vs. crlf)...
On Oct 6, 2004, at 8:52 AM, Noel D.Jackson wrote:
I've already submitted this to "the boys", however I figured i'd bring it up here.
For a snippet, there should be a variable say "$s" that references the text selected when the snippet was acted on, so that say, if I select noel@noeljackson.com and click on my href snippet, it will replace $s with noel@noeljackson.com, allowing easy creation of headers etc in HTML without going back, or creating macros.
Agreed, a selected text variable is a must. I hope we can get this high on the version 1.2 list please
For a snippet, there should be a variable say "$s" that references the text selected when the snippet was acted on, so that say, if I select noel@noeljackson.com and click on my href snippet, it will replace $s with noel@noeljackson.com, allowing easy creation of headers etc in HTML without going back, or creating macros.
Agreed, a selected text variable is a must. I hope we can get this high on the version 1.2 list please
Surely a better solution would be to allow any variables in snippets, just like you can with templates, that way you could just use $TM_SELECTED_TEXT to get this.
Ian.
#ifndef __COMMON_SENSE__ | Ian Phillips #include <std_disclaimer> | http://ianp.org #endif
On 07/10/2004, at 5:44 PM, timothy martens wrote:
On Oct 6, 2004, at 8:52 AM, Noel D.Jackson wrote:
I've already submitted this to "the boys", however I figured i'd bring it up here.
For a snippet, there should be a variable say "$s" that references the text selected when the snippet was acted on, so that say, if I select noel@noeljackson.com and click on my href snippet, it will replace $s with noel@noeljackson.com, allowing easy creation of headers etc in HTML without going back, or creating macros.
Agreed, a selected text variable is a must. I hope we can get this high on the version 1.2 list please
In the meantime, I use Macros for this... in fact, check out "Selection as Anchor" in the Macro's list (Ctl-Shift-L as well). It will turn the current word or selected text into an <a href... link. It works with both words and email address'.
noel@noeljackson.com => <a href="mailto:noel@noeljackson.com">noel@noeljackson.com</a> about => <a href="about.html">about</a>
Incidently, I think I'll change the name of "Selection as Anchor" to "Make HTML Link" in 1.01, since everyone seems to overlook it.
Justin
Making macros for every header list item, and paragraphs takes forever! lol
On Oct 7, 2004, at 10:14 AM, Justin French wrote:
In the meantime, I use Macros for this... in fact, check out "Selection as Anchor" in the Macro's list (Ctl-Shift-L as well). It will turn the current word or selected text into an <a href... link. It works with both words and email address'.
noel@noeljackson.com => <a href="mailto:noel@noeljackson.com">noel@noeljackson.com</a> about => <a href="about.html">about</a>
Incidently, I think I'll change the name of "Selection as Anchor" to "Make HTML Link" in 1.01, since everyone seems to overlook it.
Justin
---------------------- noel@noeljackson.com http://noeljackson.com http://relevantly.com ----------------------
On Oct 7, 2004, at 4:14 AM, Justin French wrote:
Incidently, I think I'll change the name of "Selection as Anchor" to "Make HTML Link" in 1.01, since everyone seems to overlook it.
Good idea. Clear labeling is as important as the function itself.
-t