I've just been trying TextMate, trying to move away from TextEdit and TextWrangler. One thing which is really bugging me is the way it underlines hyperlinks on the 'Plain Text' setting. If I wanted that kind of behaviour I'd use Microsoft Word! Is there a way I can set it up so that plain text is exactly that, completely plain vanilla typing?
Thanks,
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
J. Simon van der Walt wrote:
I've just been trying TextMate, trying to move away from TextEdit and TextWrangler. One thing which is really bugging me is the way it underlines hyperlinks on the 'Plain Text' setting. If I wanted that kind of behaviour I'd use Microsoft Word! Is there a way I can set it up so that plain text is exactly that, completely plain vanilla typing?
Thanks
Go to the Bundle Editor (Bundle -> Bundle Editor -> Show Bundle Editor) and open the Text Bundle (click on the triangle). Then to scroll down to the object "Plain Text" with a gray L in front of it. If you want to remove all markings then just delete everything. If you just want to remove the underlined links then delete the following:
{ begin = '^([ \t]*)(?=\S)'; end = '^(?!\1(?=\S))'; patterns = ( { name = 'markup.underline.link'; match = '(?x) ( (https?|s?ftp|ftps|file|smb|afp|nfs|(x-)?man|gopher|txmt)://|mailto:) [-:@a-zA-Z0-9_.,~%+/?=&#]+(?<![.,?:]) '; }, ); contentName = 'meta.paragraph.text'; },
Then close the bundle editor and TextMate and start it again.
I hope this helps, Simon - -- + privacy is necessary + using http://gnupg.org + public key id: 0x6115F804EFB33229
On 4/29/07, Simon Ruderich simon@ruderich.com wrote:
If you just want to remove the underlined links then delete the following: [...]
Or you could just delete the preference item "Style: Underline".
Robin
I've just been trying TextMate, trying to move away from TextEdit and TextWrangler. One thing which is really bugging me is the way it underlines hyperlinks on the 'Plain Text' setting. If I wanted that kind of behaviour I'd use Microsoft Word! Is there a way I can set it up so that plain text is exactly that, completely plain vanilla typing?
If you just want to remove the underlined links then delete the following: [...]
Or you could just delete the preference item "Style: Underline".
Or you could even add a "- text.plain" to the underline style.
The real question here is *why* do you want "completely plain vanilla typing". Do you also not want to be able to invoke links by pressing ⌅ on them? Do you not want plain text to have scopes for paragraphs which you can use reformatting commands on, etc? Or is this just a visual style issue?
-Jacob
Thanks for replies. Taking them one by one;
From: Simon Ruderich simon@ruderich.com Go to the Bundle Editor (Bundle -> Bundle Editor -> Show Bundle Editor)
[snip]
Ok, I found that. I guess I could hack around in there as you suggest.
From: Robin Houston robin.houston@gmail.com Or you could just delete the preference item "Style: Underline".
Preference item? Oh, I see where that is. Ok, I changed that to
{ underline = '0'; }
which seems to work, and means I can turn it back on if I want it.
From: Jacob Rus jacobolus@gmail.com Or you could even add a "- text.plain" to the underline style.
What would be the syntax for that, exactly?
The real question here is *why* do you want "completely plain vanilla typing".
I'm no kind of programmer, although I do hack around with html, which is one of the things I want TxMt for. The thing I use plain text for more is when I am writing and organising my ideas; I like to get just the words down, I find if I try to write in a word processor I get immediately distracted by formatting issues and don't get my thoughts out.
Do you also not want to be able to invoke links by pressing ? on them?
Nah.
Do you not want plain text to have scopes for paragraphs which you can use reformatting commands on, etc?
I'll have to look at some of the tutorials; I only have a vague idea what you might mean here. What's that got to do with underlining links?
Or is this just a visual style issue?
Pretty much - like, I've read 'The Mac is Not a Typewriter' and I know that underlining, er, what's the technical term again... sucks!
On Mon, 30 Apr 2007 16:48:57 +0100, J. Simon van der Walt wrote:
... I've read 'The Mac is Not a Typewriter' and I know that underlining, er, what's the technical term again... sucks!
On paper, yes, underlining sucks. (Or on something meant to look like paper.) On screen, underlined links signalling "this is a link" are a different issue. Reading a piece of text on screen with the links un-marked is not very helpful.
But I can certainly see that you're typing and not reading, and your goal (to not be interrupted or confused by visual cues that you didn't need) makes perfect sense.
David
J. Simon van der Walt:
Robin Houston: Or you could just delete the preference item "Style: Underline".
Preference item? Oh, I see where that is. Ok, I changed that to
{ underline = '0'; }
which seems to work, and means I can turn it back on if I want it.
Jacob Rus:
Or you could even add a "- text.plain" to the underline style.
What would be the syntax for that, exactly?
Ah, I had forgotten that underline is globally declared, rather than being in each style.
So what you want to do is open up that preference item, and instead of changing 1 to 0, just change the scope selector at the bottom from `markup.underline` to `markup.underline - text.plain`, and you should be all set.
-Jacob
On 01/05/07, Jacob Rus jacobolus@gmail.com wrote:
So what you want to do is open up that preference item, and instead of changing 1 to 0, just change the scope selector at the bottom from `markup.underline` to `markup.underline - text.plain`, and you should be all set.
Great, that works! Thanks.
JS