Creating tiddler method for append prefix to text a remove tag.
This commit is contained in:
parent
60813a19b6
commit
8d02445163
@ -32,6 +32,15 @@ Tiddler class >> nowLocal [
|
||||
format: (ZTimestamp fromString: Time nowLocal asDateAndTime asString)) copyFrom: 1 to: 17
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
Tiddler >> appendPrefixToText: prefix [
|
||||
|
||||
| textPre |
|
||||
textPre := self text.
|
||||
self text: prefix, textPre.
|
||||
^ self
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
Tiddler >> asDictionary [
|
||||
| response |
|
||||
@ -470,6 +479,15 @@ Tiddler >> rawLinks [
|
||||
^ (WikiTextGrammar new linkSea star parse: self text) asSet
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
Tiddler >> removeTag: aTag [
|
||||
|
||||
| tagsPre |
|
||||
tagsPre := self tags.
|
||||
self tags: ('' join: (tagsPre splitOn: aTag)).
|
||||
^ self
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
Tiddler >> revision [
|
||||
^ revision
|
||||
|
@ -293,7 +293,7 @@ TiddlyWiki >> exportJSONSubtiddlers: subtiddlersCollection [
|
||||
{ #category : #accessing }
|
||||
TiddlyWiki >> exportJSONSubtiddlers: subtiddlersCollection as: aName [
|
||||
|
||||
^ MarkupFile exportAsFileOn: self file parent / aName, 'json' containing: (self jsonSubtiddlers: subtiddlersCollection)
|
||||
^ MarkupFile exportAsFileOn: self folder / aName, 'json' containing: (self jsonSubtiddlers: subtiddlersCollection)
|
||||
]
|
||||
|
||||
{ #category : #'export - json' }
|
||||
|
Loading…
Reference in New Issue
Block a user