Skip to content

Instantly share code, notes, and snippets.

@iriyak
Created May 11, 2025 10:11
Show Gist options
  • Save iriyak/b8a6ed150bb57a905369b59f4c515811 to your computer and use it in GitHub Desktop.
Save iriyak/b8a6ed150bb57a905369b59f4c515811 to your computer and use it in GitHub Desktop.
keyword := 'phlow'.
databases := LeDatabasesRegistry uniqueInstance defaultLogicalDatabase databases.
found := OrderedCollection new.
databases
do: [ :database |
| asyncPages |
asyncPages := database asyncPagesForWord: keyword.
(asyncPages asyncSimilarCopy
do: [ :page | found add: page -> database databaseName ]) wait ].
aPager := GtPager new matchParent.
found
do: [ :assoc |
| pageStencil |
pageStencil := GtSceneryLepiterPageStencil new
pageName: assoc key type title;
databaseName: assoc value.
aPager addWrapped: pageStencil create matchParent ].
aPager scrollToLast.
BlSpace new
rootDo: [ :r | r addChild: aPager ];
withSceneDriller;
title: 'Matched Pages in LeDatabases - ' , keyword;
position: 0 @ 0;
extent: 1920 @ 1080;
show
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment