Fixing config file management and starting with remote JSON url definitions.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2021-11-05 08:21:59 -05:00
parent 56e048ecb3
commit 941d042570

View File

@ -26,13 +26,13 @@ TiddlyWiki class >> fromJSONUrl: anUrlString [
{ #category : #accessing }
TiddlyWiki >> addToConfigFile [
| cleaned |
| cleaned newConfig |
cleaned := self copy.
cleaned tiddlers: nil.
self configDictonary
newConfig := self configDictonary
at: cleaned name put: cleaned;
yourself.
MarkupFile exportAsFileOn: self configFile containing:(STON toStringPretty: self configDictonary)
^ MarkupFile exportAsFileOn: self configFile containing:(STON toStringPretty: newConfig)
]
{ #category : #accessing }
@ -215,6 +215,11 @@ TiddlyWiki >> tiddlersJSONFile [
^ jsonFile
]
{ #category : #accessing }
TiddlyWiki >> tiddlersJSONUrl [
self remote ifNil: [^ nil].
]
{ #category : #accessing }
TiddlyWiki >> withoutImages [
| filteredTiddlers tempWiki |