Visual filter question

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Ysl
Posts: 165
Joined: 03 Jan 2007 22:22

Visual filter question

Post by Ysl »

Hi

I would like to make a visual filter to see only audio files created in the last seven days...is this possible and if yes, how ?

Thanks for your help

Ysl

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: Visual filter question

Post by nas8e9 »

At first glance, Visual Filters can only select based on aspects of the filename, but not on file date.

The Find Files-tab of the Info Panel however, can specify Audio files as type (the definition of which is configurable through Configuration > Previewed Formats) and also has a Date-subtab. You can even save the search as a Template through the button on the right of the tab for future reuse.

Ysl
Posts: 165
Joined: 03 Jan 2007 22:22

Re: Visual filter question

Post by Ysl »

Thanks for your reply

I knew that but would like to have a quicker way to do it

Ysl

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: Visual filter question

Post by nas8e9 »

Ysl wrote:I knew that but would like to have a quicker way to do it
I'm not a scripter, but you could use the loadsearch-command to load and execute a search. The loadsearch-section in the Scripting Commands-help topic has more information.

Edited.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Visual filter question

Post by TheQwerty »

If you wanted to just highlight them in the list you could achieve this with Color Filters... (if not quit reading this :P)

Code: Select all

+ageC: <= 1 w AND *.mp3>FFFF00,FF0000
This would give all MP3s created in the last week yellow text on a red background.

There is also an undocumented feature of Color Filters that tells XY to merge the background color from one filter with the font color of another. This would allow you to give all items created in the last week a background of red, all audio files a text color of yellow, and then when both cases are true you end up with the yellow on red.

Code: Select all

+ageC:<= 1 w //m|>,FF0000
+*.mp3>FFFF00,
Rather than explain it again take a look at this post: http://www.xyplorer.com/xyfc/viewtopic. ... 851#p56851

Ysl
Posts: 165
Joined: 03 Jan 2007 22:22

Re: Visual filter question

Post by Ysl »

Thanks for your help but I already use the color filter also...
For to complicated reason to explain, I really would like a simple way to show all mp3 created in the last week (or a few days) in a window...and nothing else (thus only mp3)
But if there is no way, i can live with it !
Thanks again
Ysl

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: Visual filter question

Post by nas8e9 »

Ysl wrote:Thanks for your help but I already use the color filter also...
For to complicated reason to explain, I really would like a simple way to show all mp3 created in the last week (or a few days) in a window...and nothing else (thus only mp3)
loadsearch isn't that difficult. It requires the following steps:
1. perform the search you want and if correct, save it to a template. Please note that I've set the location to Auto sync; also, if you want to include subfolders in the search, that option needs to be enabled before saving the search as a template;
2. add a user button to the toolbar;
3. set the On click-field to the following:

Code: Select all

::loadsearch "TemplateName", r
This will immediately execute the search as defined in the Template, in the current tab for the current folder.

Ysl
Posts: 165
Joined: 03 Jan 2007 22:22

Re: Visual filter question

Post by Ysl »

Thanks !

This is the closer to what I look for !

The only problem is it does not auto refresh

Ysl

Post Reply