hide sidebar results in unwanted window resize

96 views
Skip to first unread message

Tyler Neill

unread,
Apr 19, 2017, 11:14:56 AM4/19/17
to BBEdit Talk
Does anyone else experience this issue?

I like being able to toggle the sidebar on and off, but whenever I hide it, the window resizes down, i.e., shrinks accordingly. I basically never want the window to resize unless I tell it to; I end up always having to re-stretch my window back across the screen every time I want to use the sidebar and then hide it again.

I know about and appreciate the "Automatically show" option in "Appearances" under "Preferences". However, this doesn't help with the above resize issue, and I can't find anything else that does. Any thoughts? Ideas for work-arounds?

Thanks!
-Tyler

Running: Version 11.6.5 (397066) (demo)
On: Mac OS X Sierra 10.12.4, Macbook Air 2014

Barbara Snyder

unread,
Apr 19, 2017, 12:28:57 PM4/19/17
to bbe...@googlegroups.com
I think somebody else just brought this up recently as well, and I believe the answer was to contact support and request the behavior be changed.

--Barbara

--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"sup...@barebones.com" 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 bbedit+un...@googlegroups.com.
To post to this group, send email to bbe...@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.

Bruce Van Allen

unread,
Apr 19, 2017, 6:04:29 PM4/19/17
to bbe...@googlegroups.com
Hi Tyler,

On 4/19/17 at 7:47 AM, tyler....@gmail.com (Tyler Neill) wrote:
>I like being able to toggle the sidebar on and off, but
>whenever I hide it, the window resizes down, i.e., shrinks accordingly.

Save this Applescript to your BBEdit Scripts folder, and
remember that you can assign a keyboard shortcut to do it:


-- toggle file list of front window,
-- keeping overall window width constant
tell application "BBEdit"
set bnds to bounds of text window 1
set files visible of text window 1 to not the files visible
of text window 1
set bounds of text window 1 to bnds
end tell


HTH
--

- Bruce

_bruce__van_allen__santa_cruz__ca_

Tom Mai

unread,
Apr 20, 2017, 8:30:12 PM4/20/17
to BBEdit Talk
Thanks, Bruce! Works fine :)

Tyler Neill

unread,
Apr 24, 2017, 8:33:33 AM4/24/17
to BBEdit Talk
Very cool, thanks! It worked, and now I understand more for the next time I need something. Teach a man to fish...

solak

unread,
May 17, 2017, 2:37:19 PM5/17/17
to BBEdit Talk
Thanks from me also for the AppleScript, though I still suggest that this should be the default behavior.

@lbutlr

unread,
May 23, 2017, 11:20:22 AM5/23/17
to bbe...@googlegroups.com
On 17 May 2017, at 12:19, solak <sol...@gmail.com> wrote:
> Thanks from me also for the AppleScript, though I still suggest that this should be the default behavior.

I disagree. I want the width of my writing space to be maintained, no grow and shrink depending on other factors. I suspect I am in the majority.

However, this might be desirable on small screens, so maybe that is something BBEdit could check and model its behavior on that?

--
Apple broke AppleScripting signatures in Mail.app, so no random signatures.

Tyler Neill

unread,
Nov 15, 2019, 11:18:54 AM11/15/19
to BBEdit Talk
Hi again, Tyler here.

Still enjoying BBEdit after years of productivity.

Just switched over to licensed while upgrading to 13.0.2. (Installer swiftly deleted my old version, and then I had to finish upgrading to MacOS before I could use BBEdit again...oops...)

Same old issue coming back up here. I basically just like to be able to switch the Currently Open Documents sidebar on and off at will, with a shortcut, without the overall window getting whacked out of shaped in the process. Now, though, after upgrading (NB: I also upgraded to MacOS Catalina), if I try my trusty old modified shortcut script (from Bruce above), I get an error dialogue saying "A scripting error has occurred: BBEdit got an error: Can't make visible into type visible." On top of that, the options in the Sidebar part of Preferences (i.e. Automatically show sidebar: As needed, Always, Never) don't seem to have any effect, and the View > Window Appearance > Hide Currently Open Documents menu command is greyed out — seemingly most similar to this old post on the TextWrangler forum (way back in 2012): https://groups.google.com/forum/#!topic/textwrangler/zyXubgVEgnw.

Sadly, my Applescript debugging attempts are not getting me anywhere. Any help?

Cheers
Tyler

Rich Siegel

unread,
Nov 15, 2019, 11:21:30 AM11/15/19
to bbe...@googlegroups.com
On 11/15/19 at 11:16 AM, tyler....@gmail.com (Tyler Neill) wrote:

> Same old issue coming back up here. I basically just like to be able to
> switch the Currently Open Documents sidebar on and off at will, with a
> shortcut, without the overall window getting whacked out of shaped in the
> process.

Try this.

R.
--
Rich Siegel Bare Bones Software, Inc.
<sie...@barebones.com> <http://www.barebones.com/>

Someday I'll look back on all this and laugh... until they sedate me.
Screen Shot 2019-11-15 at 11.19.41 AM.png

Tyler Neill

unread,
Nov 15, 2019, 11:35:28 AM11/15/19
to bbe...@googlegroups.com
Hi Rich,

Thanks for the tip. The more pressing thing, however, is that I can't close the sidebar at all, in any way.

From above (emphasis added): "[T]he options in the Sidebar part of Preferences (i.e. Automatically show sidebar: As needed, Always, Never) don't seem to have any effect, and the View > Window Appearance > Hide Currently Open Documents menu command is greyed out — seemingly most similar to this old post on the TextWrangler forum (way back in 2012): https://groups.google.com/forum/#!topic/textwrangler/zyXubgVEgnw."

Screenshot:

Screen Shot 2019-11-15 at 11.29.48 AM.png

--
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 to the group.
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.

Rich Siegel

unread,
Nov 15, 2019, 11:38:37 AM11/15/19
to bbe...@googlegroups.com
On 11/15/19 at 11:32 AM, tyler....@gmail.com (Tyler Neill) wrote:

>Thanks for the tip. The more pressing thing, however, is that I can't close
>the sidebar at all, in any way.

It looks as though you've hidden the Show/Hide Sidebar command.
You can turn it back on in the "Menus & Shortcuts" preferences.
Screen Shot 2019-11-15 at 11.35.48 AM.png
Screen Shot 2019-11-15 at 11.37.29 AM.png

Tyler Neill

unread,
Nov 15, 2019, 11:48:00 AM11/15/19
to bbe...@googlegroups.com
Yes! Nailed it. Wow, I didn't even know that it was possible to have so much control over all the menu commands.

Re-enabled the menu command through Preferences > Menus & Shortcuts , gave it the preferred -0 keyboard shortcut, disabled the "Reshape window" option in Sidebar Preferences, and now I'm good to go.

Thanks for the super-fast help!

--
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 to the group.
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.
Reply all
Reply to author
Forward
0 new messages