Hello all. I'm trying to figure out a way to write a command that will take a selected block of soft-wrapped text, hard-wrap it to a given length, and then indent a given number of spaces. I do a lot of writing using Markdown, and I would like to find a way to make bulleted lists more clearly marked as such while in plain text mode. None of the current options under the TEXT menu do what I want. I don't need the command to ask for the wrap length or the spaces to be indented, I'm happy to adjust that within the command itself -- once I get what I want, I won't fool with it for months if not years.
If someone could even point me in the right direction, I'd be happy to try to hack at something on my own, but I honestly don't know where to start.
john
-- John Laudun laudun@louisiana.edu http://johnlaudun.org/ Twitter/Facebook/Flickr: johnlaudun
On 12 Apr 2009, at 01:07, John Laudun wrote:
Hello all. I'm trying to figure out a way to write a command that will take a selected block of soft-wrapped text, hard-wrap it to a given length, and then indent a given number of spaces. [...]
Make a column selection of the desired width (and with desired indent) then hit ⌃Q and TM will reflow the paragraph to be “in a box”.
So if you have a long soft wrapped line, go to column 4, now use ⇧→ 40 times to select to column 44, then hit ⌥ once (to toggle selection mode to “columnar” — there will be no visual change here) and then hit ⌃Q.