[evolution] I#1151 - Tasks: Add Advanced Search filters for Due dates
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] I#1151 - Tasks: Add Advanced Search filters for Due dates
- Date: Wed, 14 Oct 2020 08:55:57 +0000 (UTC)
commit 9a734dc230f60d57df734e503b6fc436f4b688d1
Author: Milan Crha <mcrha redhat com>
Date: Wed Oct 14 10:54:24 2020 +0200
I#1151 - Tasks: Add Advanced Search filters for Due dates
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1151
src/calendar/gui/tasktypes.xml.in | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
---
diff --git a/src/calendar/gui/tasktypes.xml.in b/src/calendar/gui/tasktypes.xml.in
index f3d64e17f2..48b773097c 100644
--- a/src/calendar/gui/tasktypes.xml.in
+++ b/src/calendar/gui/tasktypes.xml.in
@@ -200,6 +200,39 @@
<input type="completedpercent" name="versus"/>
</part>
+ <part name="currentstate">
+ <_title>Current State</_title>
+ <input type="optionlist" name="currentstate-type">
+ <option value="is-overdue">
+ <_title>is Overdue</_title>
+ <code>(and (due-in-time-range? (make-time "19700101T000000Z") (time-day-end time-now))
(not (is-completed?)))</code>
+ </option>
+ <option value="is-scheduled">
+ <_title>is Scheduled</_title>
+ <code>(has-due?)</code>
+ </option>
+ <option value="is-not-scheduled">
+ <_title>is not Scheduled</_title>
+ <code>(not (has-due?))</code>
+ </option>
+ </input>
+ </part>
+
+ <part name="duein">
+ <_title>Due In</_title>
+ <input type="optionlist" name="duein-type">
+ <option value="nextdays">
+ <_title>Next Days</_title>
+ <code>(due-in-time-range? (time-day-end time-now) (time-add-day (time-day-end time-now)
${value}))</code>
+ </option>
+ <option value="prevdays">
+ <_title>Previous Days</_title>
+ <code>(due-in-time-range? (time-add-day (time-day-begin time-now) (- 0 ${value}))
(time-day-begin time-now))</code>
+ </option>
+ </input>
+ <input type="integer" name="value"/>
+ </part>
+
<part name="sexp">
<_title>Expression</_title>
<input type="code" name="code"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]