diff options
Diffstat (limited to 'filter/vfoldertypes.xml')
-rw-r--r-- | filter/vfoldertypes.xml | 54 |
1 files changed, 52 insertions, 2 deletions
diff --git a/filter/vfoldertypes.xml b/filter/vfoldertypes.xml index 34353e46c6..daa873d184 100644 --- a/filter/vfoldertypes.xml +++ b/filter/vfoldertypes.xml @@ -260,19 +260,69 @@ <option value="is"> <title>is</title> <code> - (match-all (= (get-label) ${versus})) + (match-all (= (user-tag "label") ${versus})) </code> </option> <option value="is-not"> <title>is not</title> <code> - (match-all (not (= (get-label) ${versus}))) + (match-all (not (= (user-tag "label") ${versus}))) </code> </option> </input> <input type="label" name="versus"/> </part> + <part name="score"> + <title>Score</title> + <input type="optionlist" name="score-type"> + <option value="is"> + <title>is</title> + <code> + (match-all (= (cast-int (user-tag "score")) ${versus})) + </code> + </option> + <option value="is-not"> + <title>is not</title> + <code> + (match-all (not (= (cast-int (user-tag "score")) ${versus}))) + </code> + </option> + <option value="greater-than"> + <title>is greater than</title> + <code> + (match-all (> (cast-int (user-tag "score")) ${versus})) + </code> + </option> + <option value="less-than"> + <title>is less than</title> + <code> + (match-all (< (cast-int (user-tag "score")) ${versus})) + </code> + </option> + </input> + <input type="score" name="versus"/> + </part> + + <part name="size"> + <title>Size (kB)</title> + <input type="optionlist" name="size-type"> + <option value="greater-than"> + <title>is greater than</title> + <code> + (match-all (> (get-size) ${versus})) + </code> + </option> + <option value="less-than"> + <title>is less than</title> + <code> + (match-all (< (get-size) ${versus})) + </code> + </option> + </input> + <input type="integer" name="versus"/> + </part> + <part name="status"> <title>Status</title> <input type="optionlist" name="match-type"> |