On 20-Apr-2008, at 19:27, Jim Correia wrote:
On Apr 20, 2008, at 1:11 PM, [EMAIL PROTECTED] wrote:
On 19-Apr-2008, at 10:58, Jim Correia wrote:
On Apr 19, 2008, at 12:26 PM, [EMAIL PROTECTED] wrote:
Is there a way to specify the wrap margin when launching bbedit
from the cli? Is there a way to specify it as a HARD wrap? Is
there anyway to tell BBEdit to hard wrap a new document? All the
instances of 'wrap' in the manual are about soft wrap.
What specifically are you doing?
Editing files form the CLI that need to be wrapped at 72 characters.
I can do this with nano and vi (eg vim +'set tw=72'), but not in
bbedit.
Or are you trying to use the bbedit tool as your EDITOR for some
other terminal based software?
This, mostly. But also when typing
bbedit newfile
I would like to be able to tell BBEdit that this file need to be hard
wrapped at a certain character width. With a newfile it is not that
huge an issue as I can usually just select the entire file and then
Text -> Hard Wrap.
If this is the later, I'm having deja vu. Didn't we just have a long
thread about this?
We talked about this peripherally as I am using bbedit as my editor
for slrn and I was trying to figure out how to post-process the file
to wrap the text. This avenue dead-ended though as everything I tried
either wrapped the headers as well, destroying the message, or re-
wrapped the quoted material incorrectly, messing up the quoting.
for example, if I select the entire post's body
<<<QUOTE
> this
> is a sample of some quoted text that is spaced out over a few lines
> and is more than 72 characters
And here is my reply which is also over seventy-two characters in
length, but just.
QUOTE;
and then I rewrap it within BBEdit
I get:
<<<QUOTE
> this > is a sample of some quoted text that is spaced out over a few
lines > and is more than 72 characters
And here is my reply which is also over seventy-two characters in
length, but just.
QUOTE;
So, I cannot simply select the entire body of the post to rewrap. I
only want the NEW content to be wrapped.
Anyway, I was hoping by rephrasing my question, someone might have a
different solution that hadn't occurred to them when I was talking
just about posting.
There is on specific feature in BBEdit that will automatically
enforce hard wrapping to a certain width. You are, of course, free
to hard wrap the text before you save and close the document.
Automatically? I find I can only hard wrap by selecting the text and
rewrapping it, and I have to be careful to only select the NEW text.
It sounds like you want to automate this. If you are using the
bbedit tool as your editor, I'd suggest wrapping it in a script so
you can post-process the results.
Well, yes, that SOUNDS like the best solution, but as you can see, the
issue of wrapping is not that cut-and-dried and this would take a
rather smart script.
Still, it seems rather a long way to go for something that, as far as
I can tell, every CLI editor has and would take simply having some way
to tell bbedit "use hard wrap instead of softwrap" since other than
that, bbedit/BBEdit behave exactly like I want.
I also tried using a text service (Format -> Reformat) which almost
works perfectly, but alas, strips the quote characters from the quoted
material
--
Yeah, Nick. Nick's the kinda guy you can trust. Nick's your buddy
Nick's the
kinda guy you drink beers with. The kinda guy that doesn' care if you
puke in his car. Nick.
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>