Improving defaults and user feedback messages.
This commit is contained in:
parent
18ac255deb
commit
56e048ecb3
@ -60,7 +60,11 @@ TiddlyWiki >> exportJSONSubtiddlers: subtiddlersCollection [
|
||||
{ #category : #accessing }
|
||||
TiddlyWiki >> exportSTONFile [
|
||||
| stonFile output wikiTemp |
|
||||
stonFile := self tiddlersJSONFile withoutExtension, 'ston'.
|
||||
self tiddlersJSONFile
|
||||
ifNil: [
|
||||
self inform: 'No JSON Tiddlers file found. If you have one, please provide its location'.
|
||||
stonFile := FileLocator temp / 'tiddlers.ston' ]
|
||||
ifNotNil: [ stonFile := self tiddlersJSONFile withoutExtension, 'ston' ].
|
||||
output := '' writeStream.
|
||||
(STON writer on: output )
|
||||
newLine: String lf;
|
||||
@ -199,8 +203,8 @@ TiddlyWiki >> tiddlers: anOrderedCollection [
|
||||
{ #category : #accessing }
|
||||
TiddlyWiki >> tiddlersJSONFile [
|
||||
| jsonFile |
|
||||
file ifNil: [
|
||||
self inform: 'Provide the location of the TiddlyWiki HTML file.'.
|
||||
self file ifNil: [
|
||||
self inform: 'No TiddlyWiki HTML file found. If you have one, please provide its location.'.
|
||||
^ nil
|
||||
].
|
||||
jsonFile := file parent / 'tiddlers.json'.
|
||||
|
Loading…
Reference in New Issue
Block a user