Best way to rewrap text?

48 views
Skip to first unread message

Ted Stresen-Reuter

unread,
Jul 12, 2022, 5:35:42 AM7/12/22
to bbe...@googlegroups.com
I'm working in Markdown files quite a bit lately and would like to "rewrap" blocks of text after editing some lines.

Expressed in Given When Then:

Given I've selected a paragraph of text
When I (select a command or text factory or something)
Then line breaks are removed AND Hard Wrap is applied to rewrap the text to my settings

Doesn't this already exist in BBEdit? If not, what is the shortest path to making this work?

TIA

Ted Stresen-Reuter

Ted Stresen-Reuter

unread,
Jul 12, 2022, 7:34:40 AM7/12/22
to BBEdit Talk
Also, is there any way to get keep Hard Wrap from breaking URLs in markdown format? In other words, if I have a URL that exceeds 72 characters, is there any setting that will keep Hard Wrap from actually splitting the URL?

TIA!

Fletcher Sandbeck

unread,
Jul 12, 2022, 10:55:13 AM7/12/22
to bbe...@googlegroups.com
There's a "Hard Wrap" command on the Text menu which can do this. I have it assigned to shortcut Command-\ which brings up the dialog and Command-Option-\ which applies using the last settings. I think these are the default shortcuts but I'm not sure. You can change the shortcut in the "Menus & Shortcuts" preferences if you need.

It does seem to break very long URLs on the / character. I don't know that there's a preference to change this.

Another option is to use Soft Wrap which you can access from the gear menu on each document. This will give you the appearance of wrapping without actually adding newlines.

[fletcher]


--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/CAKAQjifBbvGB-rAS6%2B8D1%3D%2BGc6GEDFMmc%3Dgx3GCAiaoYqV%2Bg8g%40mail.gmail.com.

Reply all
Reply to author
Forward
0 new messages