%now% keyword in Tracker queries
|Reported by:||jonas.kirilla||Owned by:||axeld|
|Has a Patch:||no||Platform:||All|
Trying to monitor what happens in a live system I often use queries to watch changes in the filesystem, and so it would be nice to have a %now% keyword. (example: last_modified>%now%) That would be the time when the query is opened, and should remain the same for as long as the query is open.
I think Tracker refreshes queries with "dynamic dates" periodically so it might be best if Tracker would replace %now% with a simple timestamp instead of passing it on. The query file should store the logical name though, so the same query can be closed and reused later on in a meaningful way.
The keyword %now% would not be relevant to /bin/query as it doesn't keep queries open (live) so it wouldn't catch anything most of the time.
Most other applications are probably better off with node monitoring, which is a lot more focused, so one could probably add this directly in Tracker and not add anything to BQuery or the (v)fs.
Just an idea.