-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce "field" suffix for "has" filter operator (#2066)
* has:field — tested & documented allows to test whether a field exists * fixed inverted condition * added from version to docs
- Loading branch information
Showing
4 changed files
with
54 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
created: 20150118165921000 | ||
modified: 20150118183219000 | ||
created: 20151111150157416 | ||
emptyfield: | ||
modified: 20151111150201093 | ||
tags: [[has Operator]] [[Operator Examples]] | ||
title: has Operator (Examples) | ||
type: text/vnd.tiddlywiki | ||
|
||
<<.operator-example 1 "[has[color]]">> | ||
<<.operator-example 2 "[tag[Concepts]!has[modified]]">> | ||
|
||
<<.operator-example 3 "[has:field[emptyfield]]">> | ||
<<.operator-example 4 "[all[current]!has:field[doesntexist]]">> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
created: 20140410103123179 | ||
modified: 20150203191843000 | ||
tags: [[Filter Operators]] [[Common Operators]] [[Field Operators]] [[Negatable Operators]] | ||
title: has Operator | ||
type: text/vnd.tiddlywiki | ||
caption: has | ||
op-purpose: filter the input by field existence | ||
created: 20140410103123179 | ||
modified: 20151111150117431 | ||
op-input: a [[selection of titles|Title Selection]] | ||
op-neg-output: ''without suffix'' or with ''suffix `value`''<br>» those input tiddlers in which field <<.place F>> does <<.em not>> exist or has an empty value<br>''suffix `field`''<br>» those input tiddlers in which field <<.place F>> exists | ||
op-output: ''without suffix'' or with ''suffix `value`''<br>» those input tiddlers in which field <<.place F>> has a non-empty value<br>''suffix `field`''<br>» those input tiddlers in which field <<.place F>> does <<.em not>> exist | ||
op-parameter: the name of a [[field|TiddlerFields]] | ||
op-parameter-name: F | ||
op-output: those input tiddlers in which field <<.place F>> has a non-empty value | ||
op-neg-output: those input tiddlers in which field <<.place F>> does <<.em not>> exist or has an empty value | ||
op-purpose: filter the input by field existence | ||
op-suffix: <<.from-version "5.1.14">> optionally, the name of a [[field|TiddlerFields]] | ||
op-suffix-name: F | ||
tags: [[Filter Operators]] [[Common Operators]] [[Field Operators]] [[Negatable Operators]] | ||
title: has Operator | ||
type: text/vnd.tiddlywiki | ||
|
||
<<.operator-examples "has">> | ||
<<.operator-examples "has">> |
6085936
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @tobibeer over on the mailing list, @telmiger asks:
It looks like he might be right, what do you reckon?
6085936
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Jermolene: Indeed, looks like the docs were inverted from what they should. Looks like it was fixed in the meantime. Thanks and sry for the confusion. :-)
6085936
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @tobibeer