Improving filtering tiddlers.

This commit is contained in:
ruidajo 2022-03-12 12:51:08 -05:00
parent a8dc7a6c11
commit 21c97c8893
1 changed files with 13 additions and 0 deletions

View File

@ -534,12 +534,25 @@ TiddlyWiki >> resynchronize [
yourself.
]
{ #category : #accessing }
TiddlyWiki >> selectByTagsIncludes: string [
^ (self tiddlers select: [ :tiddler | tiddler tags notNil ])
select: [ :tiddler | tiddler tags includesSubstring: string ]
]
{ #category : #accessing }
TiddlyWiki >> selectContentType: mimeType [
^ self tiddlers select: [ :tiddler | tiddler type isNotNil and: [tiddler type beginsWith: mimeType ]]
]
{ #category : #accessing }
TiddlyWiki >> selectTitleIncludes: string [
^ self tiddlers select: [ :tiddler | tiddler title includesSubstring: string ]
]
{ #category : #accessing }
TiddlyWiki >> shadow [
"Shadow tiddlers are tiddlers that are loaded from plugins.