On 24 May 2013, at 1:30 AM, Ivar <[email protected]> wrote:

> I get a daily log-file sent from my web based application and it contains 
> single log entries, 1 per line. While some are short and are visible when I 
> open the file, others are longer and get soft wrapped to the next line. I 
> then enlarge the BBedit window so these longer lines also fit on one line. 
> This is just easier to read.
> 
> Surely, widening the window once a day is no big issue, but it feels so 
> silly. So I wonder if anyone else recognizes this and either has a solution 
> or can tell me it is no use because of contradicting settings. Turning off 
> soft wrap does not do the trick, it will still force me to widen the window.

I have two suggestions, one that I have no experience with, and one I do:

First, you can write an AppleScript that attaches to the documentDidOpen event. 
Detect whether it's a log, and resize the window as you wish. You can also turn 
off soft wrapping for that file. You're done.

See page 291ff of the BBEdit User Manual (version 10.5.4). If you have a 
different edition, look in the table of contents for "Attaching AppleScripts to 
Events."

Second, partial, and you say you don't want it. It turns soft wrapping off for 
log files:

First, open the Languages preferences, and add Log File to the upper list. 
Double click it, and in the Editor tab, turn off soft wrapping.

If your files consistently have the name extension .log, you're done.

If they don't have the .log extension, but do have a consistent, unique 
extension, use the lower list in the Languages panel, add Log File, 
double-click it, and add your extension.

        — F

-- 
Fritz Anderson
Xcode 4 Unleashed: 4.5 supplement for free!
http://www.informit.com/store/xcode-4-unleashed-9780672333279

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.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 [email protected].
To post to this group, send email to [email protected].


Reply via email to