Selecting Exact Files: How?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Selecting Exact Files: How?

Post by SkyFrontier »

1. do a dupe search;

2. on the results list, select first or non-first items then copy their full paths (ctrl+p).

How do i have them selected again, based off the clipboard (or a previously built list)?

selfilter() wont do (it's not meant to work with paths and selecting by base name will get duplicates either, which is not desired), nor selecitems() (it grabs all dupes either), nor Select Items... (ctrl+shift+m).

Bear in mind: exact files (minding full path) is the objective here.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Selecting Exact Files: How?

Post by SkyFrontier »

no way?
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

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

Re: Selecting Exact Files: How?

Post by serendipity »

Selfilter will do it. You can choose which column to match from, in your case Path.
If you have already copied the paths to clipboard using File|To Clipboard|Item Paths then this script will work:

Code: Select all

  sel;//Unselect 
  foreach($item,"<clipboard>","<crlf>"){
    selfilter("""$item""",,"Path",1);
  }
The assumption is that you did dupe search and hence your search result will have exactly one path for each dupe item.

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Selecting Exact Files: How?

Post by SkyFrontier »

No, it won't.
=\

Variations like

Code: Select all

  sel;//Unselect
  foreach($item,"<clipboard>","<crlf>"){
    $item = getpathcomponent("$item", path);
    selfilter("""$item""", d,"Path",1);
  }
or

Code: Select all

  sel;//Unselect
  foreach($item,"<clipboard>","<crlf>"){
    $item = getpathcomponent("$item", path);
    selfilter("$item", d,"Path",1);
  }
or

Code: Select all

  sel;//Unselect
  foreach($item,"<clipboard>","<crlf>"){
    selfilter("$item",,"Path",1);
  }
are not working, either. Selfilter broken on this aspect? Can please anyone else check this?
Thanks, serendipity. The code does make sense.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

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

Re: Selecting Exact Files: How?

Post by admin »

OK, this did not work indeed. It was not really a bug but a missing feature. The next beta will bring enhancements. Then the following will work:

Code: Select all

sel; //Unselect
  selectitems "<clipboard>", 2;

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Selecting Exact Files: How?

Post by SkyFrontier »

The more I use Select Items with Paper Folders, the more I miss a tick box to match exact paths there.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

Post Reply