Task
I have roughly 100 notes together comprising a (very) ‘Old’ draft of a book, and another 100 or so notes comprising a ‘New’ draft written years later. I got the notes into Tinderbox by exporting as markdown from Scrivener and importing and exploding the text using ## headings as the delimiter.
The wording and organization vary significantly between the two drafts. I need to relate notes in ‘New’ to the closest corresponding notes in ‘Old’ to check for consistency and voice. And I need to go through each note in ‘Old’ and understand whether its material is included in ‘New,’ perhaps adding back omissions.
Now using:
Tinderbox is helping! The ‘Suggested’ pane with popups into text window(s) is handy. But the pane includes all similar notes regardless of container. For my purposes, that generates too many unwanted results to sift through and curate.
I encounter the same problem with export: ^similarTo("this”,10)^ . There seems to be no way to limit scope. Or is there?
Needed:
Collect only notes from a specific container, or exclude notes from certain container(s), e.g. ‘Old’ notes to only include names of similar notes from ‘New’, and vice versa. From there I will manually curate.
Attempts with action code:
Agent query: similarTo($Name(agent),10)&inside(/Drafts/New);
… where the agent’s name is the same as the target note.
Seems to work! But I need to get from there to an attribute in each note listing similar notes.
So I managed to come up with the following:
-Stamp for notes in Old:
$MySet=collect_if(all,similarTo($Name(that),10)&inside(/Drafts/New),$Name)
- Stamp for notes in New:
$MySet=collect_if(all,similarTo($Name(that),10)&inside(/Drafts/Old),$Name)
Questions:
1 - Can there be some consideration given to providing some control over scope for ‘Suggested’ pane assuming that it doesn’t already exist?
2 - Is the above proper usage of similarTo action code? Or are there better ways?
3 - Is the order of results significant (order is different in Suggested pane and from the order from code)?
4 - Why the unexpected results (from the stamp, but not in export) when I change the 10 to a small number, say 3? To test this, I viewed ‘0-Tehran’ and noted a large number in ‘Suggested’. Then I appled the ‘Similar=collect_if-container literal string’ stamp to ‘Test note to apply stamp’ and got one result (when set to 3).
5 - Once I have a curated set of related notes in an attribute in each note, I have high hopes for Attribute Browser. It will also help (I am hoping) in constructing a simple index of Names and Places, starting with NLNames and NLPlaces.
a. Is there a way to change the background color in AB? It seems to follow different rules from other views. (I use dark mode with Dark Coral or another dark theme and the appearance of AB is off).
b. Is there a way to reduce the font size of the headers in AB to be more consistent with other views and give me more information on the screen?
c. (Most important) Is there a way to get results from AB for use elsewhere (as a start to construct my indexes)? If not, are there other ways to get the output I need?
Here is a test TBX file with a few made-up notes to illustrate:
Test-similarTo.tbx (199.7 KB)




