Raw links and tags detection/selection.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2021-08-17 08:34:23 -05:00
parent d7b7b5ac7e
commit 91e5d916c7
2 changed files with 12 additions and 0 deletions

View File

@ -187,6 +187,11 @@ Tiddler >> printOn: aStream [
nextPutAll: '( ', self title, ' )' nextPutAll: '( ', self title, ' )'
] ]
{ #category : #accessing }
Tiddler >> rawLinks [
^ (WikiTextGrammar new linkSea star parse: self text) asSet
]
{ #category : #accessing } { #category : #accessing }
Tiddler >> tags [ Tiddler >> tags [

View File

@ -39,6 +39,13 @@ TiddlyWiki >> printOn: aStream [
nextPutAll: '( ', self file basename ,' )' nextPutAll: '( ', self file basename ,' )'
] ]
{ #category : #accessing }
TiddlyWiki >> taggedWith: aTag [
^ self tiddlers select: [:tiddler |
tiddler tags isNotNil and: [tiddler tags includesSubstring: aTag ]
]
]
{ #category : #accessing } { #category : #accessing }
TiddlyWiki >> tiddlers [ TiddlyWiki >> tiddlers [