Filter for jar-files in my project folders

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Giant_Panda
Junior Member
Junior Member
Posts: 2
Joined: 2015-04-22, 13:07 UTC

Filter for jar-files in my project folders

Post by *Giant_Panda »

Hi all,
I've been looking for something that allows me to do the following, but I haven't found anything that seems to do just that.

I'm working on a large Java-project where I have to copy the jar files to another directory every time I build a project. To speed things up it would be nice to have a list of these jar-files, updated.
For now I've tried several plugins, but either I don't understand them, or they do not do what I want them to do.
I've been looking for virtual folders, or some sort of dynamic list-box, but nothing has solved my problem.

As a temporary solution I've created a custom filter for jar-files and view all files in the sub-folders with branch view.

So to be clear: I'm looking for a way to search through my folders for jar-files, and list them in a single list.

Thanks!
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

Hi and welcome Giant_Panda.

Idea 1:

1) Search for *.jar
2) press button [Feed to listbox]
3) ...do what you want with that list...


Idea 2:

1) switch to branch view
2) select a *.jar file
3) execute cm_SelectCurrentExtension=527;Select all files with same ext.
4) ...do what you want with that selected files...


Idea 3 (as yours):

1) switch to branch view
2) execute cm_SpreadSelection=521;Select group
3) type in *.jar
4) ...do what you want with that selected files...


What else do you want?

A script to do that all at once by one single click?
Like: Recursive search for *.jar files in current panel and copy all to target panel.
But then, how to copy? Include folders? If not, what if there is a name collision?

.
Giant_Panda
Junior Member
Junior Member
Posts: 2
Joined: 2015-04-22, 13:07 UTC

Post by *Giant_Panda »

Well, I've tried the first idea, and am using the 3rd idea. But, what I'd like to have is a list that automatically searches for the jar-files, without having to manually start something. The problem with each idea is that it isn't updated when a new jar-file is added. But you're right, as long as no new files are added, this works.

But in Foobar2000 (a music player) an "autoplaylist" is available, which lists all files that satisfy a certain condition (eg artist or year). I'd hoped something similar existed for Total Commander.
User avatar
Dalai
Power Member
Power Member
Posts: 10035
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

You can save your search and use it later, e.g. in Num+ dialog. To make it even easier, you can set up a user command (em_*) which searches for the files (using the saved search) and marks the files.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
nsp
Power Member
Power Member
Posts: 1953
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

Giant_Panda wrote:Well, I've tried the first idea, and am using the 3rd idea. But, what I'd like to have is a list that automatically searches for the jar-files, without having to manually start something. The problem with each idea is that it isn't updated when a new jar-file is added. But you're right, as long as no new files are added, this works.

But in Foobar2000 (a music player) an "autoplaylist" is available, which lists all files that satisfy a certain condition (eg artist or year). I'd hoped something similar existed for Total Commander.
If you do not need unicode filname nor autorefresh, you can use a glob utility (see here)
ex glob -e *.jar "C:\MyProject\**" -o filelist.txt
After you can reuse the filelist with tcbl or any powershell script... It is also possible to use the globing filelist to populate a "virtual folder" inside Virtual Panel using Virtual Panel with autoUpdate script...

An automated way is to use WatchDirectory
Post Reply