1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-30 09:13:16 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/filters/splitbefore.tid
2015-02-03 19:29:25 +00:00

23 lines
884 B
Plaintext

created: 20150126142522000
modified: 20150203192107000
tags: [[Filter Operators]] [[String Operators]]
title: splitbefore Operator
type: text/vnd.tiddlywiki
caption: splitbefore
op-purpose: select a delimited prefix from each input title
op-input: a [[selection of titles|Title Selection]]
op-parameter: a string of characters marking the end of the prefix
op-parameter-name: S
op-output: the prefix, up to and including <<.place S>>, of each input title
Each input title is processed in turn.
* A title that contains <<.place S>> contributes everything up to and including <<.place S>>.
* A title that doesn't contain <<.place S>> simply contributes itself to the output.
Contributions are [[dominantly appended|Dominant Append]] to the output.
The <<.clink "`toc`" TableOfContentsMacro>> macros use this operator with `/` as the parameter.
<<.operator-examples "splitbefore">>