Hi,
Following advice of some people, i'm giving TextMate a try.
There is a feature i don't find in TextMate: hard wrapping. I'm editing big XML files and i've not figured how to automatically cut the lines when they reach the right column.
I know about Soft Wrap, but i don't want to use it as the document will be sent to people who are using different text editors: i don't want they see a paragraph as a single long long line.
In fact, i'm a Emacs user and i need something like 'auto-fill-mode' : when the line reaches the right margin, Emacs insert a newline.
To achieve the same thing with TextMate, the only way i've found so far is to reformat the paragraph or the selection, which is not very productive.
Is there something to automate this process or should i live with it?
Best regards,
On Dec 16, 2004, at 12:17, Éric Jacoboni wrote:
Is there something to automate this process or should i live with it?
For now there is no auto-fill mode or hard wrap other than the reformat options (it's on the to-do, but currently haven't got the highest priority, in fact you're the first to actually mention it as a desired feature ;) ).
I'd suggest using soft wrap and when you need to mail the document (to recipients which use editors w/o soft wrap ;) ) pipe the document through e.g. 'fold -sw78' to have it hard wrapped.
On Dec 16, 2004, at 4:47 PM, Allan Odgaard wrote:
On Dec 16, 2004, at 12:17, Éric Jacoboni wrote:
Is there something to automate this process or should i live with it?
For now there is no auto-fill mode or hard wrap other than the reformat options (it's on the to-do, but currently haven't got the highest priority, in fact you're the first to actually mention it as a desired feature ;) ).
Please, add one more :-).
-- fxn
On Dec 16, 2004, at 6:35 PM, Éric Jacoboni wrote:
in fact you're the first to actually mention it as a desired feature ;) ).
Well... I suppose TextMate is mainly used by developpers. Soft Wrap is enough then.
But when it comes to typing text (e.g. XML/LaTeX), hard wrap is an essential feature, imho.
In addition to text and text-like modes, depending on the sophistication of the editor wrapping is language-aware, so you get multi-line comments in C whose rewrapper gets the bullets right, paragraphs in POD sections in Perl, etc. All of them use true newlines. I seldom use soft wrap in fact.
-- fxn
According to Éric Jacoboni:
But when it comes to typing text (e.g. XML/LaTeX), hard wrap is an essential feature, imho.
Agreed. I haven't written anything other than code right now with TM so I didn't run into this but please note a +1 from me.
On 16. dec 2004, at 18:35, Éric Jacoboni wrote:
But when it comes to typing text (e.g. XML/LaTeX), hard wrap is an essential feature, imho.
Eh... why?? I use softwrap for all my LaTeX, since any editor I might use on the same document at university for instance, also has softwrap.
I also like to have hard wrap - then I can visually organise my text more easily, even for latex files. (+1)
Normand
Le 04-12-16, à 20:50, Sune Foldager a écrit :
On 16. dec 2004, at 18:35, Éric Jacoboni wrote:
But when it comes to typing text (e.g. XML/LaTeX), hard wrap is an essential feature, imho.
Eh... why?? I use softwrap for all my LaTeX, since any editor I might use on the same document at university for instance, also has softwrap.
-- Sune.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/mailman/listinfo/textmate
******************************************************************* Normand Mousseau Professeur agrégé Chaire de recherche du Canada en physique numérique des matériaux complexes
Département de physique tél: +1 (514) 343-6614 Université de Montréal fax: +1 (514) 343-2071 C.P. 6128, succ. Centre-ville Montréal (Québec) H3C 3J7 Canada Normand.Mousseau@umontreal.ca http://www.phys.umontreal.ca/~mousseau *******************************************************************
Eh... why?? I use softwrap for all my LaTeX, since any editor I might use on the same document at university for instance, also has softwrap.
Yes, but you're a specific case: you know your file will be read with a soft wrapping editor.
If you cannot claim that, you may expect that, someday, your file will be read with an editor without soft read (i know people who edit all their stuff with vi).
In my case, the files i edit are then sent to my editor and/or reviiewers and i cannot make any asumption about their text editor, nor their OS.
On 17. dec 2004, at 11:07, Éric Jacoboni wrote:
In my case, the files i edit are then sent to my editor and/or reviiewers and i cannot make any asumption about their text editor, nor their OS.
Hopefully, you may assume that they can display and maybe edit text ;-).