Multi Commander > Script

Invert Selection

(1/1)

pncdaspropagandas:
As discussed here
http://forum.multicommander.com/forum/index.php/topic,1168.msg3985.html#msg3985

When inverting with only 1 selected file/folder on Explorer Style, all files/folders get selected.

So I wrote a Script to fix it until MC does it automaticaly. And I remmaped the keyboard shortcut to run the Script, so in all cases I get the correct invert selection.


--- Code: ---@var $selected_files = GetSourceSelectedFileNames();
MC.Explorer.Selection.InvertSelection
if( arrayCount($selected_files) == 1 )
{
MC.Explorer.Selection.Unselect FILTER={'"' + $selected_files[0] + '"'}
}

--- End code ---

Ulfhednar:
Thanks, I added this to one of my buttons :)

Navigation

[0] Message Index

Go to full version