Question: Filter by Names from the clipboard *solved*

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
phaidon
Junior Member
Junior Member
Posts: 12
Joined: 2005-04-29, 11:29 UTC

Question: Filter by Names from the clipboard *solved*

Post by *phaidon »

Hello - quick question:

a) There is "cm_CopyFullNamesToClip" in order to copy the filespec of the selected files into the clipboard.
b) There is "cm_LoadSelectionFromClip" .. to "re" select the files based on the specs from the clipboard.

In my case i don't want to select them .. i want to see (filter) only this files within the current folder.

Within the Extended English Menus i found a kind of workaround with a limitation. (max 1018 bit size of the filespecs)
They used:

[em_ext_show_selected]
cmd=cd
param=%Z;%S ?"
menu=Show Only Selected Files
button=wcmicons.dll,73

With TCM 9.x .. is there maybe in the meanwhile a built-in function to "filter" by names from the clipboard directly within the left or right "window" ?
Or is there a better solution which allows some more names?

Thank you
Last edited by phaidon on 2018-12-09, 16:41 UTC, edited 1 time in total.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6482
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Question: Filter by Names from the clipboard.

Post by *Horst.Epp »

There is a default internal TC command to show only selected files
cm_ShowOnlySelected

Add it as a button or into your menu file.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3447)
TC 11.03 x64 / x86
Everything 1.5.0.1372a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Re: Question: Filter by Names from the clipboard.

Post by *Gral »

Create a button with command chain

Code: Select all

cm_LoadSelectionFromClip,cm_ShowOnlySelected,cm_ClearAll
phaidon
Junior Member
Junior Member
Posts: 12
Joined: 2005-04-29, 11:29 UTC

Re: Question: Filter by Names from the clipboard.

Post by *phaidon »

thx Horst, Gral - yes .. this helped / aimed into the correct direction.
for basic file operations this will work properly.

Unfortunately require 'cm_LoadSelectionFromClip' always a full filepath and wildcards within the filername are ignored.
But this could be solved by an external script .. to "prepare" the clipboard.
I guess this question is answered .. thx for the quick feedback.
Post Reply