View only selected

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
vsub
Posts: 69
Joined: 23 Nov 2010 19:07

View only selected

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

admin
Site Admin
Posts: 66350
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: View only selected

Post by admin »

A script:

Code: Select all

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

vsub
Posts: 69
Joined: 23 Nov 2010 19:07

Re: View only selected

Post by vsub »

Thanks :)

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: View only selected

Post 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;
      }


Last edited by serendipity on 22 Dec 2010 18:54, edited 1 time in total.

admin
Site Admin
Posts: 66350
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: View only selected

Post by admin »

Tip: Use the new ", 1" argument with SC filter to get any file names with [ characters as well.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: View only selected

Post by serendipity »

admin wrote:Tip: Use the new ", 1" argument with SC filter to get any file names with [ characters as well.
Thanks. :)

vsub
Posts: 69
Joined: 23 Nov 2010 19:07

Re: View only selected

Post 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 :)

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: View only selected

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

vsub
Posts: 69
Joined: 23 Nov 2010 19:07

Re: View only selected

Post by vsub »

Already did that when I saw his post

Post Reply