eikek / eikek/docspell

Support `today` in queries for custom fields with type date

Open
#1,655 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
Elm
Stars
2.3k
Forks
184
Avg merge
8h 2m
Merged PRs (30d)
4

Description

I have some custom fields with the "date" type.
When I query "due>=today", I get results based on today and all future relevant documents.

However with custom fields the behavior seems to be like this:
"f:customfield>=today" => no results at all
"f:customfield<=today" => results in past and future items (just like "f:customfield:*")

A workaround is to use "hardcoded/dynamic" dates like this:
"f:customfield>=2022-07-15" (whereas 2022-07-15 is today)

I haven't tested other custom fields with other datatypes. But it might be worth a look, if there's a similar issue.

Maybe it's an issue of interpreting "today" rather than the operator...

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.