Aliases for date constants

Have a suggestion for "Everything"? Please post it here.
Post Reply
fanSpokes
Posts: 2
Joined: Sat Jul 18, 2015 4:49 pm

Aliases for date constants

Post by fanSpokes » Thu May 02, 2019 9:05 am

Just having to type "t" instead of "today". Or "y" instead of "yesterday". It's only a few keystrokes but it would save a ton of time.

Some more examples:
"last1mins" -> 1m
"last2days" -> 2d
"last1weeks" -> 1w
"last1months" -> 1mo
"last1years" -> 1y

And so on...

The date functions themselves already have aliases (eg. date modified is already "dm"), so it would be perfect if their values did, too.

void
Site Admin
Posts: 4819
Joined: Fri Oct 16, 2009 11:31 pm

Re: Aliases for date constants

Post by void » Fri May 03, 2019 2:50 am

I have to be careful with t as t is used in iso-8601 dates to specify a time, for example:
dm:t23:09 would search for Today at 23:09 (for the next major version of Everything).

t on its own should be fine to use a Today.

I've added support for abbreviations for the next version of Everything, such as
1m for last1minute
2d for last2days
w for last1week
3mo for last3months
1y for last1year
y for yesterday (or would last1year be more appropriate? -yesterday seems more relevant)

Thanks for the suggestion.

For now, please consider adding a filter macro:
  • In Everything, from the Search menu, click Add to filters....
  • Change the Name to: Date Modified Today
  • Change the Search to: dm:today
  • Change the Macro to: dmt
  • Click OK.
  • Now, when you search for dmt: Everything, will instead search for dm:today.

Post Reply