diff --git a/package.json b/package.json index 671de62..5831e5f 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "registry": "https://registry.npmjs.org" }, "license": "MIT", - "version": "2.7.0", + "version": "2.8.0", "packageManager": "pnpm@9.0.6", "scripts": { "update:config": " pnpm ts-node scripts/generateConfig.ts", diff --git a/src/tiddlywiki-codemirror-6/plugin.info b/src/tiddlywiki-codemirror-6/plugin.info index d6a2a44..7461570 100644 --- a/src/tiddlywiki-codemirror-6/plugin.info +++ b/src/tiddlywiki-codemirror-6/plugin.info @@ -2,7 +2,7 @@ "title": "$:/plugins/oeyoews/tiddlywiki-codemirror-6", "name": "CodeMirror6", "description": "CodeMirror 6 editor", - "version": "2.7.0", + "version": "2.8.0", "core-version": ">=5.3.4", "list": "readme usage" } \ No newline at end of file diff --git a/src/tiddlywiki-codemirror-6/tiddlers/ui/ControlPanel/settings.tid b/src/tiddlywiki-codemirror-6/tiddlers/ui/ControlPanel/settings.tid index 0a71890..5634177 100644 --- a/src/tiddlywiki-codemirror-6/tiddlers/ui/ControlPanel/settings.tid +++ b/src/tiddlywiki-codemirror-6/tiddlers/ui/ControlPanel/settings.tid @@ -9,6 +9,10 @@ subtitle: {{||$:/esc}} [get[settings-group]!is[blank]else[!general]] [get[id]!is[blank]else[99]] +[join[]] \end +\define useSound() +<$action-sendmessage $message="neotw-play-sound" audioTiddler="$:/plugins/oeyoews/neotw-play-sound/sounds/bite.mp3" /> +\end + Your codemirror6 config tiddlers: <$count filter="[prefix[$:/config/codemirror-6]] "/>/<$count filter="[all[tiddlers+shadows]prefix[$:/config/codemirror-6]]"/> (<$text text= {{{ [[$:/plugins/oeyoews/tiddlywiki-codemirror-6]get[version]] }}} />) Language: <$select tiddler="$:/config/codemirror6/language" tooltip='change codemirror6 config language'> @@ -28,11 +32,67 @@ Your codemirror6 config tiddlers: <$count filter="[prefix[$:/config/codemirror-6 <$list filter="[all[shadows+tiddlers]prefix[$:/config/codemirror-6/]has[settings-template]] +[search:title,caption,description{$:/state/codemirror-6/settings/search}] +[sortsub]"> <$list filter={{{[{!!condition}!is[blank]] :else[{!!title}]}}} variable="list-condition">
- diff --git a/src/tiddlywiki-codemirror-6/tiddlers/ui/Templates/settings-input-switch-template.tid b/src/tiddlywiki-codemirror-6/tiddlers/ui/Templates/settings-input-switch-template.tid deleted file mode 100644 index b0a468f..0000000 --- a/src/tiddlywiki-codemirror-6/tiddlers/ui/Templates/settings-input-switch-template.tid +++ /dev/null @@ -1,42 +0,0 @@ -title: $:/plugins/oeyoews/tiddlywiki-codemirror-6/ui/templates/settings/input-switch - -\define useSound() -<$action-sendmessage $message="neotw-play-sound" audioTiddler="$:/plugins/oeyoews/neotw-play-sound/sounds/bite.mp3" /> -\end - - - - -<% if [[$:/config/codemirror-6/useSound]get[text]match[yes]] %> -<$checkbox field="text" checked="yes" unchecked="no" class="btcui-form-switch" actions=<>/> -<% else %> -<$checkbox field="text" checked="yes" unchecked="no" class="btcui-form-switch"/> -<% endif %> \ No newline at end of file diff --git a/src/tiddlywiki-codemirror-6/tiddlers/ui/Templates/settings-input-template.tid b/src/tiddlywiki-codemirror-6/tiddlers/ui/Templates/settings-input-template.tid deleted file mode 100644 index 58ef637..0000000 --- a/src/tiddlywiki-codemirror-6/tiddlers/ui/Templates/settings-input-template.tid +++ /dev/null @@ -1,33 +0,0 @@ -title: $:/plugins/oeyoews/tiddlywiki-codemirror-6/ui/templates/settings/input - - - -<$edit-text tag="input" class="btcui-form-input"/> \ No newline at end of file diff --git a/src/tiddlywiki-codemirror-6/tiddlers/ui/Templates/settings-select-template.tid b/src/tiddlywiki-codemirror-6/tiddlers/ui/Templates/settings-select-template.tid deleted file mode 100644 index 138b936..0000000 --- a/src/tiddlywiki-codemirror-6/tiddlers/ui/Templates/settings-select-template.tid +++ /dev/null @@ -1,38 +0,0 @@ -title: $:/plugins/oeyoews/tiddlywiki-codemirror-6/ui/templates/settings/select - - -<$vars cnt={{{[enlist{!!option-names}count[]]}}}}> -<$select class="btcui-form-select"> -<$list filter="[range]" variable="index"> - - - -