Author Topic: Invert Selection  (Read 28652 times)

pncdaspropagandas

  • Contributor
  • Active Member
  • *****
  • Posts: 93
    • View Profile
Invert Selection
« on: August 24, 2017, 15:29:19 »
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: [Select]
@var $selected_files = GetSourceSelectedFileNames();
MC.Explorer.Selection.InvertSelection
if( arrayCount($selected_files) == 1 )
{
MC.Explorer.Selection.Unselect FILTER={'"' + $selected_files[0] + '"'}
}
« Last Edit: August 25, 2017, 12:42:25 by pncdaspropagandas »

Ulfhednar

  • Contributor
  • VIP Member
  • *****
  • Posts: 514
    • View Profile
Re: Invert Selection
« Reply #1 on: October 26, 2017, 18:18:45 »
Thanks, I added this to one of my buttons :)