Merge 21c97c8893
This commit is contained in:
commit
8d607a6aea
@ -58,6 +58,20 @@ TiddlyWiki >> addToConfigFile [
|
|||||||
^ MarkupFile exportAsFileOn: self configFile containing:(STON toStringPretty: newConfig)
|
^ MarkupFile exportAsFileOn: self configFile containing:(STON toStringPretty: newConfig)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
{ #category : #accessing }
|
||||||
|
TiddlyWiki >> addUnversionedLargeTiddlersToRepo [
|
||||||
|
|
||||||
|
| stonfiles largeTiddlersFileReference repository |
|
||||||
|
repository := self repository.
|
||||||
|
stonfiles := (self file parent / 'largeTiddlers') files
|
||||||
|
select: [ :each | each fullName endsWith: '.ston' ].
|
||||||
|
largeTiddlersFileReference := stonfiles collect: [ :each |
|
||||||
|
each fullName withoutPrefix:
|
||||||
|
repository local fullName , '/' ].
|
||||||
|
largeTiddlersFileReference do: [ :each | repository addUnversioned: each ].
|
||||||
|
^ largeTiddlersFileReference
|
||||||
|
]
|
||||||
|
|
||||||
{ #category : #testing }
|
{ #category : #testing }
|
||||||
TiddlyWiki >> belongsToLocalRepository [
|
TiddlyWiki >> belongsToLocalRepository [
|
||||||
|
|
||||||
@ -506,6 +520,7 @@ TiddlyWiki >> resynchronize [
|
|||||||
| repository return |
|
| repository return |
|
||||||
repository := self repository.
|
repository := self repository.
|
||||||
repository update.
|
repository update.
|
||||||
|
repository syncUnversioned.
|
||||||
return := Dictionary new
|
return := Dictionary new
|
||||||
at: 'status' put: self addRecentChangesToRepo.
|
at: 'status' put: self addRecentChangesToRepo.
|
||||||
self exportSTONFiles.
|
self exportSTONFiles.
|
||||||
@ -523,12 +538,25 @@ TiddlyWiki >> resynchronizeWithHtml [
|
|||||||
importJSONFile.
|
importJSONFile.
|
||||||
]
|
]
|
||||||
|
|
||||||
|
{ #category : #accessing }
|
||||||
|
TiddlyWiki >> selectByTagsIncludes: string [
|
||||||
|
|
||||||
|
^ (self tiddlers select: [ :tiddler | tiddler tags notNil ])
|
||||||
|
select: [ :tiddler | tiddler tags includesSubstring: string ]
|
||||||
|
]
|
||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
TiddlyWiki >> selectContentType: mimeType [
|
TiddlyWiki >> selectContentType: mimeType [
|
||||||
|
|
||||||
^ self tiddlers select: [ :tiddler | tiddler type isNotNil and: [tiddler type beginsWith: mimeType ]]
|
^ self tiddlers select: [ :tiddler | tiddler type isNotNil and: [tiddler type beginsWith: mimeType ]]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
{ #category : #accessing }
|
||||||
|
TiddlyWiki >> selectTitleIncludes: string [
|
||||||
|
|
||||||
|
^ self tiddlers select: [ :tiddler | tiddler title includesSubstring: string ]
|
||||||
|
]
|
||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
TiddlyWiki >> shadow [
|
TiddlyWiki >> shadow [
|
||||||
"Shadow tiddlers are tiddlers that are loaded from plugins.
|
"Shadow tiddlers are tiddlers that are loaded from plugins.
|
||||||
|
Loading…
Reference in New Issue
Block a user