Page 1 of 1

How to lock pane size & highlight selected files/folders copied to clipboard

Posted: 10 Oct 2021 21:06
by raphaelmsx
Hi people.

I have two questions:

I had a configuration that when selecting files/folders to copy/cut, it will place a mark on the left side of the file/folder indicating that was infact selected, but I had to reinstall Windows, and now cannot find this setting anymore, I don't remember how it's called. Where is it?

Also, how can I lock resizing of the panes (in the middle, with the mouse)? Sometimes instead of clicking on a tab, I click right above it, and accidentaly resize it... I just want the default size locked.

Thanks!!

Re: How to lock pane size & highlight selected files/folders copied to clipboard

Posted: 10 Oct 2021 21:30
by highend
Configuration | Colors and Styles | Styles | Clipboard Markers | [x] Colored lines

Don't know if the splitter can be locked...

A script could reset them to a ratio (in this case 50%) if necessary...

Code: Select all

    $pane1Size = 50; // Percent
    $pane2Size = 100 - $pane1Size;
    end ($pane1Size >= 100 || $pane1Size <= 0), "Percent values out of bounds, aborted!";

    if (get("#800")) {
        $current = setlayout();
        $dpType  = get("#801", "Height", "Width");
        $size    = regexmatches($current, "Pane[12]" . $dpType . "=\d+", "+");
        $size    = regexreplace($size, "Pane[12]" . $dpType . "=");
        $size    = eval($size) + getkey("SplitterWidth", "General");
        $pane1Px = floor($pane1Size / 100 * $size);
        $pane2Px = $size - $pane1Px;
        setlayout("Pane1" . $dpType . "=" . $pane1Px . ",Pane2" . $dpType . "=" . $pane2Px);
    }

Re: How to lock pane size & highlight selected files/folders copied to clipboard

Posted: 10 Oct 2021 21:37
by raphaelmsx
I'll save the script in case this feature does not exist.

And if doesn't, I'll post on "Whishes".

Thanks !!!