Author Topic: Custom filters  (Read 16975 times)

hmbert

  • Newbie
  • *
  • Posts: 4
    • View Profile
Custom filters
« on: April 16, 2015, 05:09:32 »
Hello MC geeks,
I was wondering, would it be possible to define custom filters which would behave similarly to !today filter? Lets say, !size10, would filter out all more than 10MB files.
Any filters similar to !today?
« Last Edit: April 16, 2015, 05:13:34 by hmbert »

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4416
    • View Profile
    • Multi Commander
Re: Custom filters
« Reply #1 on: April 17, 2015, 21:03:58 »
No it is currently only supported by the expand/shrink selections. not view filters.
It was planed for 5.1 but time run out and it was not finished. However most of the work is already there so it will be completed for next release.


Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4416
    • View Profile
    • Multi Commander
Re: Custom filters
« Reply #2 on: April 18, 2015, 16:16:49 »
in version 5.1.1 this is now starting to work.

You can now enter filters like
>500G =  Show item larger then 500Gigabytes
<40M  = show items less then 40Megabytes
>40K = Show items less then 40 kilobytes.



hmbert

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Custom filters
« Reply #3 on: April 22, 2015, 04:42:11 »
Hi Mathias,
many thanks for the feedback. Waiting for the next release!  May I bother you to share with us:
1. how to define custom filter for  the expand/shrink selections
2. list of all filters similar to:
!today,
>500G =  Show item larger then 500Gigabytes
<40M  = show items less then 40Megabytes
>40K = Show items less then 40 kilobytes.

Thanks!!

Jungle

  • Contributor
  • VIP Member
  • *****
  • Posts: 537
  • Old Skull
    • View Profile
Re: Custom filters
« Reply #4 on: April 22, 2015, 06:27:07 »
1. You may right click either on Fiter icon or Select/Unselect icon and customize filters

2. You may create user defined command like (Configuration > User Defined Commands, New, Command type = Custom command)
Code: [Select]
MC.Explorer.Selection.Select FILTER="<10K"or
Code: [Select]
MC.Explorer.SetViewFilter FILTER=">40K"

hmbert

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Custom filters
« Reply #5 on: April 24, 2015, 07:58:29 »
hi Jungle, thanks for the info. I will clarify my intentions:
1. how to write a custom filter for the expand/shrink selection. Let say I want to write a filter which which would include only files greater than 10MB and having name starting with A and ending with B. The example which you've provided is reusing an existing filter.
2. List of all already available filters similar to !today


Thanks

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4416
    • View Profile
    • Multi Commander
Re: Custom filters
« Reply #6 on: April 24, 2015, 08:06:22 »
hi Jungle, thanks for the info. I will clarify my intentions:
1. how to write a custom filter for the expand/shrink selection. Let say I want to write a filter which which would include only files greater than 10MB and having name starting with A and ending with B. The example which you've provided is reusing an existing filter.
2. List of all already available filters similar to !today


Thanks
1. the Selection/View Filters do not support multi levels rules. then you have to use multiscript and match that your self.
2. Hover over filter box, only  ! for date, <> for size, - exlcude , / folder