Page 1 of 1

View only selected

Posted: 22 Dec 2010 11:55
by vsub
Is there an option,script,way or anything that will allow me to view only the selected files in the list(they may be with different names and extensions)

Re: View only selected

Posted: 22 Dec 2010 14:14
by admin
A script:

Code: Select all

::filter '"sel" ' . get("SelectedItemsNames", "|"), 1;

Re: View only selected

Posted: 22 Dec 2010 14:37
by vsub
Thanks :)

Re: View only selected

Posted: 22 Dec 2010 17:02
by serendipity
Also, i use this from toolbar to toggle :

Code: Select all

//Toggle between Selected items and All items
  $tab= tab(,"term");
  IF($tab Like "*|*"){
  filter;
  }
  ELSE{
       filter '"' . get("SelectedItemsNames", """|""") . '"',1;
      }
And the opposite (hide the selected):

Code: Select all

//Toggle between Unselected items and All items
  $tab= tab(,"term");
  IF($tab Like "*|*"){
  filter;
  sel i;
  }
  ELSE{
       sel i;
       filter '"' . get("SelectedItemsNames", """|""") . '"',1;
      }



Re: View only selected

Posted: 22 Dec 2010 17:47
by admin
Tip: Use the new ", 1" argument with SC filter to get any file names with [ characters as well.

Re: View only selected

Posted: 22 Dec 2010 18:10
by serendipity
admin wrote:Tip: Use the new ", 1" argument with SC filter to get any file names with [ characters as well.
Thanks. :)

Re: View only selected

Posted: 22 Dec 2010 18:22
by vsub
serendipity I used the first code as button and I was unselecting the items and clicking again on the button to view all files again but with your code is better :)

Re: View only selected

Posted: 22 Dec 2010 18:55
by serendipity
vsub wrote:serendipity I used the first code as button and I was unselecting the items and clicking again on the button to view all files again but with your code is better :)
Please update your code, i added a ,1 as suggested by Don.

Re: View only selected

Posted: 22 Dec 2010 19:03
by vsub
Already did that when I saw his post