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