Sync selected cols & widths in 2 pane-mode
-
MBaas
- Posts: 692
- Joined: 15 Feb 2016 21:08
Sync selected cols & widths in 2 pane-mode
Is there a way to easily sync the selection of displayed columns and their respective widths when working with 2 panes?
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: Sync selected cols & widths in 2 pane-mode
If you plan to do this frequently then I'd suggest a script:This gets the column visibility and widths from the active pane, switches to the inactive pane, applies those columns, then activates the original pane again.
The less automated way would be to use the column layout commands:
View | Columns | Save Column Layout As...
View | Columns | Load Column Layout...
Save the layout, switch panes, and then load the layout - this has the advantage of you probably won't need to save the columns as often as you'll load them. This too can be automated using the ColumnLayout() scripting function.
One lazy technique I've used to achieve this is to create a new tab (which will inherit the current tab's settings) and then move that tab to the other pane and change its location.
Code: Select all
"Copy Column Layout to Inactive Pane"
$flags = 1+2; // visibility + widths
$columns = setColumns(, $flags);
focus 'PI';
setColumns($columns, $flags);
focus 'PI';The less automated way would be to use the column layout commands:
View | Columns | Save Column Layout As...
View | Columns | Load Column Layout...
Save the layout, switch panes, and then load the layout - this has the advantage of you probably won't need to save the columns as often as you'll load them. This too can be automated using the ColumnLayout() scripting function.
One lazy technique I've used to achieve this is to create a new tab (which will inherit the current tab's settings) and then move that tab to the other pane and change its location.
-
MBaas
- Posts: 692
- Joined: 15 Feb 2016 21:08
Re: Sync selected cols & widths in 2 pane-mode
Thanks for that script! I also like your idea with the copied & moved pane, nice & slick 
XYplorer Beta Club