On May 24, 2013, at 01:30, 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.
______________________________________________________________________
Hey Ivar,
Clear so far.
> Surely, widening the window once a day is no big issue, but it feels so silly.
What are you wanting to happen here? In order to keep it from feeling 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.
What contradicting settings? You have not described a situation where BBEdit
could be at fault.
> Turning off soft wrap does not do the trick, it will still force me to widen
> the window.
What do you mean?
You mean that you have to widen the window, because the lines are no longer
wrapped - and you can't see the complete line?
Okay. To try to give you a useful answer I'm going to assume that the window
in question simply isn't wide enough to display the complete unwrapped (longer)
lines in your log file.
I see two basic options:
1) Change the default window size (in the Window menu).
2) Resize your window as necessary.
a) Manually
b) With a window manager utility.
c) With an Applescript.
------------------------------------------------------------------------------------------
# Auth: Christopher Stone
# dCre: 2010-10-15 : 23:47
# dMod: 2010-11-04 : 13:10
# Appl: BBEdit
# Task: Zoom the front window to the screen. (Not for multi-monitor set-ups.)
# Libs: None
# Osax: None
# Tags: @Applescript, @BBEdit, @Zoom, @Window, @Screen
------------------------------------------------------------------------------------------
try
tell application "Finder"
set deskBounds to bounds of window of desktop
end tell
set item 2 of deskBounds to 44
tell application "BBEdit"
tell front window
set bounds to deskBounds
end tell
end tell
on error e number n
set e to e & return & return & "Num: " & n
tell me to set dDlg to display dialog e with title "ERROR!" buttons
{"Cancel", "Copy", "OK"} default button "OK"
if button returned of dDlg = "Copy" then set the clipboard to e
end try
------------------------------------------------------------------------------------------
This script will zoom to the front BBEdit window to the size of your screen.
It will not handle multi-monitor set-ups, although it is possible to do that
with some extra complication.
Save it as an Applescript with the Applescript Editor, and put it in BBEdit's
scripts folder. Give it a keyboard shortcut, and you can resize your window in
a trice.
Of course you can pick a size smaller than the screen if desired.
To get the bounds of the front BBEdit window run this script in the Applescript
Editor:
-------------------------------------------------------------------------------------------
tell application "BBEdit"
bounds of front window
end tell
-------------------------------------------------------------------------------------------
Position your window the way you want it, run the script, then replace
deskBounds in the resizer script with the result.
--
Best Regards,
Chris
--
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].