BBEdit has a nice feature called Hard Wrap that prompts for a column width, then hard wraps the selected text to that width. I would like to do the same thing in TextMate, but it doesn't seem possible. The Text > Reformat Paragraph command wraps to the window, not a specified length. Is there another way? Thanks,
Trevor
On Nov 22, 2006, at 7:14 PM, Trevor Harmon wrote:
BBEdit has a nice feature called Hard Wrap that prompts for a column width, then hard wraps the selected text to that width. I would like to do the same thing in TextMate, but it doesn't seem possible. The Text > Reformat Paragraph command wraps to the window, not a specified length. Is there another way? Thanks,
Trevor
You can set your window to wrap at a specific number of columns if you like. View > Wrap Column >
thomas Aylott — design42 — subtleGradient — CrazyEgg
On Nov 22, 2006, at 4:56 PM, thomas Aylott wrote:
You can set your window to wrap at a specific number of columns if you like. View > Wrap Column >
Yes, I suppose that's one way to do it:
1. Set view to desired column width 2. Text > Reformat Paragraph 3. Revert to original column width
Rather tedious, but I guess it's better than wrapping everything manually.
Trevor
On 23. Nov 2006, at 02:33, Trevor Harmon wrote:
On Nov 22, 2006, at 4:56 PM, thomas Aylott wrote:
You can set your window to wrap at a specific number of columns if you like. View > Wrap Column >
Yes, I suppose that's one way to do it:
- Set view to desired column width
- Text > Reformat Paragraph
- Revert to original column width
Rather tedious, but I guess it's better than wrapping everything manually.
You can also make a column selection, to restrain wrapping to the columns set by that selection.
Or alternatively, if the column changes a lot, write a command that prompts you for the width, here’s a simple proof-of-concept, if you click (to install) it will put the “ask for width” version of Reformat Selection on ⌃Q (replacing the built-in version):
On Nov 22, 2006, at 6:02 PM, Allan Odgaard wrote:
Or alternatively, if the column changes a lot, write a command that prompts you for the width, here’s a simple proof-of-concept, if you click (to install) it will put the “ask for width” version of Reformat Selection on ⌃Q (replacing the built-in version):
Hey, that's great! It should be included in the Text bundle (or someplace like that).
Trevor
Trevor Harmon wrote:
Hey, that's great! It should be included in the Text bundle (or someplace like that).
Nah, for the most part the column selection method works fine. I think maybe people should make a bbedit bundle though, for all those switchers who get lost in TM's features. ;)
On Nov 23, 2006, at 8:40 AM, Jacob Rus wrote:
Nah, for the most part the column selection method works fine. I think maybe people should make a bbedit bundle though, for all those switchers who get lost in TM's features. ;)
Column selection requires the mouse. Many people -- not just BBEdit users -- like to use the keyboard as much as possible.
Trevor
On 23. Nov 2006, at 18:57, Trevor Harmon wrote:
On Nov 23, 2006, at 8:40 AM, Jacob Rus wrote:
Nah, for the most part the column selection method works fine. I think maybe people should make a bbedit bundle though, for all those switchers who get lost in TM's features. ;)
Column selection requires the mouse. Many people -- not just BBEdit users -- like to use the keyboard as much as possible.
Column selections may require the mouse in other editors, but not in TextMate:
http://macromates.com/textmate/manual/ working_with_text#column_selections
So for a soft wrapped line, move to column 40 (or whatever) use ⇧⌘←, ⌥, and then ⌃Q to get a reformatted paragraph with a width of 40 columns.
You can also let the column selection start at column 4 or similar to have the reformatted paragraph indented.