<?xml version="1.0"?>
<opml version="2.0">
	<head>
		<title>opVisitVerbs</title>
		<dateCreated>Tue, 06 Apr 2021 15:33:40 GMT</dateCreated>
		<dateModified>Tue, 06 Apr 2021 16:56:19 GMT</dateModified>
		<expansionState>1,7</expansionState>
		<lastCursor>6</lastCursor>
		<ownerTwitterScreenName>davewiner</ownerTwitterScreenName>
		<ownerName>Dave Winer</ownerName>
		<ownerId>http://twitter.com/davewiner</ownerId>
		<urlUpdateSocket>ws://test.littleoutliner.com:1230/</urlUpdateSocket>
		</head>
	<body>
		<outline text="The op &quot;visit&quot; verbs" created="Tue, 06 Apr 2021 15:33:40 GMT">
			<outline text="There are three verbs in Drummer that are different from the others. This is where we explain how they work." created="Tue, 06 Apr 2021 15:34:26 GMT"/>
			<outline text="The three verbs are: op.visitAll, op.visitSubs, op.visitToSummit." created="Tue, 06 Apr 2021 15:34:51 GMT"/>
			<outline text="They make it easy to write script code that applies to all headlines in the outline, all the subs of the bar cursor headline and all the headlines on the path from the bar cursor to the summit of the outline. " created="Tue, 06 Apr 2021 15:36:24 GMT"/>
			<outline text="Inside the callbacks, you can get the text of a headline, or attributes. " created="Tue, 06 Apr 2021 16:55:16 GMT"/>
			<outline text="You can stop the traversal by returning false from the callback, or return true to continue." created="Tue, 06 Apr 2021 16:55:46 GMT"/>
			</outline>
		<outline text="op.visitAll" created="Tue, 06 Apr 2021 16:04:54 GMT">
			<outline text="var ct = 0;" created="Tue, 06 Apr 2021 16:15:30 GMT"/>
			<outline text="op.visitAll (function (headline) {" created="Tue, 06 Apr 2021 15:38:47 GMT">
				<outline text="ct++;" created="Tue, 06 Apr 2021 16:15:44 GMT"/>
				<outline text="console.log (string.padWithZeros (ct, 4) + &quot;: &quot; + headline.getLineText ());" created="Tue, 06 Apr 2021 15:39:12 GMT"/>
				<outline text="return (true);" created="Tue, 06 Apr 2021 16:05:56 GMT"/>
				<outline text="});" created="Tue, 06 Apr 2021 15:39:00 GMT"/>
				</outline>
			</outline>
		<outline text="op.visitToSummit" created="Tue, 06 Apr 2021 16:47:27 GMT">
			<outline text="op.visitToSummit (function (headline) {" created="Tue, 06 Apr 2021 15:38:47 GMT">
				<outline text="console.log (headline.getLineText ());" created="Tue, 06 Apr 2021 15:39:12 GMT"/>
				<outline text="return (true);" created="Tue, 06 Apr 2021 16:05:56 GMT"/>
				<outline text="});" created="Tue, 06 Apr 2021 15:39:00 GMT"/>
				</outline>
			</outline>
		<outline text="op.visitSubs" created="Tue, 06 Apr 2021 15:40:05 GMT">
			<outline text="op.visitSubs (function (headline, level) {" created="Tue, 06 Apr 2021 15:38:47 GMT">
				<outline text="console.log (string.filledString (&quot;\t&quot;, level) + headline.getLineText ());" created="Tue, 06 Apr 2021 15:39:12 GMT"/>
				<outline text="return (true);" created="Tue, 06 Apr 2021 16:05:56 GMT"/>
				<outline text="});" created="Tue, 06 Apr 2021 15:39:00 GMT"/>
				</outline>
			</outline>
		</body>
	</opml>
