Retaking taging as a way to improve document export/import.
This commit is contained in:
parent
6e58c5631d
commit
6072fd8971
@ -61,6 +61,5 @@ LeTextSnippet >> parentId [
|
||||
|
||||
{ #category : #'*MiniDocs' }
|
||||
LeTextSnippet >> taggedWith: aString [
|
||||
self metadata at: 'tags' ifPresent: [ (self metadata at: 'tags') add: aString; yourself ] ifAbsentPut: [ Set new ].
|
||||
^ self metadata at: 'tags'
|
||||
self tags add: aString.
|
||||
]
|
||||
|
@ -81,6 +81,11 @@ LeTextualSnippet >> contentAsStringCustomized [
|
||||
ifFalse: [ ^ self contentAsString ]
|
||||
]
|
||||
|
||||
{ #category : #'*MiniDocs' }
|
||||
LeTextualSnippet >> extra [
|
||||
^ self optionAt: 'extra' ifAbsentPut: [ Dictionary new ]
|
||||
]
|
||||
|
||||
{ #category : #'*MiniDocs' }
|
||||
LeTextualSnippet >> markdeepCustomCloser [
|
||||
^ ''
|
||||
@ -134,6 +139,7 @@ LeTextualSnippet >> metadataUpdate [
|
||||
at: 'modified' put: self latestEditTime asString;
|
||||
at: 'creator' put: createEmailSanitized;
|
||||
at: 'modifier' put: editEmailSanitized;
|
||||
at: 'extra' put: self extra;
|
||||
yourself
|
||||
]
|
||||
|
||||
@ -151,5 +157,5 @@ LeTextualSnippet >> sanitizeMetadata [
|
||||
|
||||
{ #category : #'*MiniDocs' }
|
||||
LeTextualSnippet >> tags [
|
||||
^ self metadata at: 'tags' ifAbsentPut: [ Set new ]
|
||||
^ self extra at: 'tags' ifAbsentPut: [ Set new ]
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user