Pane resize commands to assign shortcuts to

Have a suggestion for "Everything"? Please post it here.
Post Reply
meteorquake
Posts: 496
Joined: Thu Dec 15, 2016 9:44 pm

Pane resize commands to assign shortcuts to

Post by meteorquake »

You often have to resize the Folder Bar, but because the divider is thin it's very easy to misclick and cause a lot of scrolling.

* It would be very handy if there was also a keyboard way to to it instead of the mouse, so I would think four commands, that moved the divider to enlarge or shrink the pane dimension in width or height, then one could do it all from the keyboard. Similarly for the Preview pane too.

Since the panes can be rearranged I think the horizontal movement would need to apply to the edge that's not at the left/right screen edge.

Because the preview can be put in line with the Folders, this accounts for having vertical ones too, which would be the edge that's not at the top/bottom screen edge.

I think they would go nicely with the existing keyboard actions to navigate within the Folder Bar.

Cheers, David
void
Developer
Posts: 16698
Joined: Fri Oct 16, 2009 11:31 pm

Re: Pane resize commands to assign shortcuts to

Post by void »

Consider the following bookmarks:

Name: Increase left sidebar width
Search: /left_sidebar_wide=left_sidebar_wide+25

Name: Decrease left sidebar width
Search: /left_sidebar_wide=left_sidebar_wide-25
Search: /left_sidebar_wide=left_sidebar_wide>32?left_sidebar_wide-25:32

Optionally bind keyboard shortcuts.



I will add an option to customize the width of the divider.

Thank you for the suggestions.
Last edited by void on Fri Aug 16, 2024 11:05 am, edited 1 time in total.
Reason: clamp min wide to 32 logical pixels
meteorquake
Posts: 496
Joined: Thu Dec 15, 2016 9:44 pm

Re: Pane resize commands to assign shortcuts to

Post by meteorquake »

Cheers! It works very nicely as a keyboard action.

Note there's a minor bug relevant to holding the key down to resize... in shrinking the Folder Bar window you can actually make it a negative size. Although it just displays as narrow, if you try to enlarge again, it doesn't do anything until it's incremented past 0 again. I think width should have a lower limit of 0. Maybe an upper limit is needed likewise.

d
void
Developer
Posts: 16698
Joined: Fri Oct 16, 2009 11:31 pm

Re: Pane resize commands to assign shortcuts to

Post by void »

Please try the following bookmark instead:

Name: Decrease left sidebar width
Search: /left_sidebar_wide=left_sidebar_wide>32?left_sidebar_wide-25:32
Post Reply