Set a radius value

Discussion related to "Everything" 1.5.
Post Reply
lotnaguv
Posts: 5
Joined: Wed Sep 03, 2025 9:37 pm

Set a radius value

Post by lotnaguv »

Hello,

Is there any way to set a radius when searching for specific values ?

For example if I want to search for a video which is 10 seconds long, I would type length:10

But if I wanted to include also videos that have 1 second less, or 1 more second, I wish I could type for example length:10 r:1 to set a 1 second radius.

I know I can already type length:9..11 but that's way slower and less convenient than just setting a radius, added to the fact that it requires mathematic skills :roll:

I've been looking carefully for this function but I couldn't find it, does it already exist ?

Thanks !

ps : A big thanks to the creators of Everything, you improved the life of so much people we all love your work !!
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: Set a radius value

Post by void »

There's no option to set a radius.

What has been suggested and is on my TODO list is a +- suffix, for example:
length:10+-1


Thank you for the feedback and suggestion.



One way to do this now is to create a filter:
  • In Everything, from the Search menu, click Add to filters....
  • Change the Name to:
    Length Radius
  • Change the Search to:
    length:[eval:[element:$param:,",",1]-[element:$param:,",",2]]..[eval:[element:$param:,",",1]+[element:$param:,",",2]]
  • Change the Macro to:
    lr
  • Click OK.
Now you can search for
lr:10,1
which is replaced with
length:9..11
lotnaguv
Posts: 5
Joined: Wed Sep 03, 2025 9:37 pm

Re: Set a radius value

Post by lotnaguv »

Perfect thank you so much for your answer the filter works great !

The only issue is that it only accepts seconds, so I have to convert all length into seconds to use it while with length: , to write 1 hour and 30 minutes for example, I can write 1h30m or 01:30:00 or 5400.

With that filter I can only write 5400

Would it be possible to make the filter as versatile as length: regarding time formats ?

Thanks !
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: Set a radius value

Post by void »

Are you only looking to set the radius in seconds?

-If so, please consider the following filter:
  • In Everything, from the Search menu, click Add to filters....
  • Change the Name to:
    Length hh:mm:ss Radius
  • Change the Search to:
    length:[eval:([element:$param:,":,",1]*3600)+([element:$param:,":,",2]*60)+[element:$param:,":,",3]-[element:$param:,":,",4]]..[eval:([element:$param:,":,",1]*3600)+([element:$param:,":,",2]*60)+[element:$param:,":,",3]+[element:$param:,":,",4]]
  • Change the Macro to:
    lhmsr
  • Click OK.
Now you can search for
lhmsr:1:30:0,1

(lhmsr:hh:mm:ss,radius)
which is replaced with
length:5399..5401


You will have to always specify the hours, so if you want to match only 30 minutes, use:
lhmsr:0:30:0,1
lotnaguv
Posts: 5
Joined: Wed Sep 03, 2025 9:37 pm

Re: Set a radius value

Post by lotnaguv »

That workaround will do the job, thank you very much !

I'm curious, when you will implement the +- suffix do you think it will work with any time format (1h30m / 1:30:0 / 5400) like with length: ?
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: Set a radius value

Post by void »

I doubt it will happen for Everything 1.5.

The plan is support for:

length:1h30m+-20m
length:1h30m+-20s
Post Reply