News:

MultiCommander v16.6 is released!

Main Menu

Invert Selection

Started by pncdaspropagandas, August 24, 2017, 15:29:19

Previous topic - Next topic

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.

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

Ulfhednar

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