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

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
raphaelmsx
Posts: 27
Joined: 10 Oct 2021 20:55

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

Post 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!!

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

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

Post 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);
    }
One of my scripts helped you out? Please donate via Paypal

raphaelmsx
Posts: 27
Joined: 10 Oct 2021 20:55

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

Post by raphaelmsx »

I'll save the script in case this feature does not exist.

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

Thanks !!!

Post Reply