mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-04-04 09:46:55 +00:00
days filter – docs and examples optimisations (#2972)
* Replacement icon stopwatch on As discussed in issue #2690 * Replacement icon stopwatch off As discussed in issue #2690 * Added missing tag "Resources" (Community Resource) * Tried to make a sentence clearer CamelCase words are NOT joined with hyphens (copy-paste error?). Copied "directly" from the line below to make the meaning even clearer. * Does deleting make the conflict go? * Recreate deleted file with updated text * days filter example should show highlights - show a highlight using a longer timespan (180 days) - added a second highlight to demo timespan with start AND end in the past - better readability * days Operator explanation optimisations - typo - readability (explain { positive | negative } first; remove duplication) * Remove additional blank line * Remove whitespace after save button When the save button was not the last edit button (tested by moving to another place via control panel > Appearance > Toolbars > Edit Toolbar by drag-and-drop) then we got additional spacing due to whitespace in the resulting HTML after the button. This is a fix for that, I discovered while developing additional edit buttons.
This commit is contained in:
parent
4e278d0cd7
commit
489f9a0079
@ -16,5 +16,4 @@ description: {{$:/language/Buttons/Save/Hint}}
|
||||
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Save/Caption}}/></span>
|
||||
</$list>
|
||||
</$button>
|
||||
</$fieldmangler>
|
||||
</$button></$fieldmangler>
|
||||
|
@ -3,14 +3,14 @@ title: days Operator
|
||||
type: text/vnd.tiddlywiki
|
||||
caption: days
|
||||
op-input: a [[selection of titles|Title Selection]]
|
||||
op-neg-output: those input tiddlers in which field <<.place F>> is at least <<.place D>> days in the { future | past }, where <<.place D>> is { positive | negative }
|
||||
op-output: those input tiddlers in which field <<.place F>> is <<.place D>> days in the { future | past } or any time { before | after } that, including { past | future }, where <<.place D>> is { positive | negative }
|
||||
op-parameter: a number of days, defaulting to 0
|
||||
op-neg-output: those input tiddlers in which field <<.place F>> is at least <<.place D>> days in the { future | past }
|
||||
op-output: those input tiddlers in which field <<.place F>> is <<.place D>> days in the { future | past } or any time { before | after } that, including { past | future }
|
||||
op-parameter: a number of days, defaulting to 0 { positive | negative }
|
||||
op-parameter-name: D
|
||||
op-purpose: filter the input by date
|
||||
op-suffix: the name of a [[date field|Date Fields]], defaulting to <<.field modified>>
|
||||
op-suffix-name: F
|
||||
|
||||
Select tiddlers where a specified date field (default "modified") is withing a specified date range. Time portion is ignored.
|
||||
Select tiddlers where a specified date field (default "modified") is within a specified date range. Time portion is ignored.
|
||||
|
||||
<<.operator-examples "days">>
|
||||
|
@ -11,7 +11,9 @@ The filter can be used to highlight new items in a list. For example:
|
||||
<ul>
|
||||
<$list filter="[tag[ReleaseNotes]!<currentTiddler>!sort[modified]]">
|
||||
<li>
|
||||
<$link><$view field="title"/></$link><$list filter="[<currentTiddler>days[-120]]"> @@color:red;^^new^^@@</$list>
|
||||
<$link><$view field="title"/></$link>
|
||||
<$list filter="[<currentTiddler>days[-180]]"> @@color:red;^^new^^@@</$list>
|
||||
<$list filter="[<currentTiddler>days[-500]!days[-180]]"> @@color:black;^^recent^^@@</$list>
|
||||
</li>
|
||||
</$list>
|
||||
</ul>
|
||||
|
Loading…
x
Reference in New Issue
Block a user