Skip to content

Commit bb58ff7

Browse files
committed
chore: upgrade plugins and remove deprecated scm plugin
1 parent 7b351a4 commit bb58ff7

File tree

3 files changed

+11
-28
lines changed

3 files changed

+11
-28
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
[
22
{
3+
"text": "{\"tiddlers\":{\"$:/plugins/linonetwo/open-in-external-app/ViewToolbarButton/OpenInExternalApp\":{\"title\":\"$:/plugins/linonetwo/open-in-external-app/ViewToolbarButton/OpenInExternalApp\",\"tags\":\"$:/tags/ViewToolbar\",\"type\":\"text/vnd.tiddlywiki\",\"list-before\":\"$:/core/ui/Buttons/close\",\"caption\":\"{{$:/plugins/linonetwo/open-in-external-app/icons/open-in-app}} {{$:/plugins/linonetwo/open-in-external-app/button-caption-open-in-external-app}}\",\"short-caption\":\"{{$:/plugins/linonetwo/open-in-external-app/button-caption-open-in-external-app}}\",\"description\":\"Open tiddler in external app\",\"text\":\"\\\\whitespace trim\\n<$button tooltip={{!!description}} aria-label={{$:/plugins/linonetwo/open-in-external-app/button-caption-open-in-external-app}} class=<<tv-config-toolbar-class>>>\\n <% if [<currentTiddler>has[_canonical_uri]] %>\\n <$action-sendmessage $message=\\\"tm-open-in-external-app\\\" filePath={{{[<currentTiddler>get[_canonical_uri]]}}} />\\n <% else %>\\n <$action-sendmessage $message=\\\"tm-open-in-external-app\\\" title=<<currentTiddler>> />\\n <% endif %>\\n <$list filter=\\\"[<tv-config-toolbar-icons>match[yes]]\\\">\\n {{$:/plugins/linonetwo/open-in-external-app/icons/open-in-app}}\\n </$list>\\n <$list filter=\\\"[<tv-config-toolbar-text>match[yes]]\\\">\\n <span class=\\\"tc-btn-text\\\">\\n <$text text={{$:/plugins/linonetwo/open-in-external-app/button-caption-open-in-external-app}}/>\\n </span>\\n </$list>\\n</$button>\\n\"},\"$:/plugins/linonetwo/open-in-external-app/ViewToolbarButton/OpenInFolder\":{\"title\":\"$:/plugins/linonetwo/open-in-external-app/ViewToolbarButton/OpenInFolder\",\"tags\":\"$:/tags/ViewToolbar\",\"type\":\"text/vnd.tiddlywiki\",\"list-before\":\"$:/core/ui/Buttons/close\",\"caption\":\"{{$:/plugins/linonetwo/open-in-external-app/icons/open-in-folder}} {{$:/plugins/linonetwo/open-in-external-app/button-caption-open-in-folder}}\",\"short-caption\":\"{{$:/plugins/linonetwo/open-in-external-app/button-caption-open-in-folder}}\",\"description\":\"Open tiddler in folder\",\"text\":\"\\\\whitespace trim\\n<$button tooltip={{!!description}} aria-label={{$:/plugins/linonetwo/open-in-external-app/button-caption-open-in-folder}} class=<<tv-config-toolbar-class>>>\\n <% if [<currentTiddler>has[_canonical_uri]] %>\\n <$action-sendmessage $message=\\\"tm-open-in-folder\\\" filePath={{{[<currentTiddler>get[_canonical_uri]]}}} />\\n <% else %>\\n <$action-sendmessage $message=\\\"tm-open-in-folder\\\" title=<<currentTiddler>> />\\n <% endif %>\\n <$list filter=\\\"[<tv-config-toolbar-icons>match[yes]]\\\">\\n {{$:/plugins/linonetwo/open-in-external-app/icons/open-in-folder}}\\n </$list>\\n <$list filter=\\\"[<tv-config-toolbar-text>match[yes]]\\\">\\n <span class=\\\"tc-btn-text\\\">\\n <$text text={{$:/plugins/linonetwo/open-in-external-app/button-caption-open-in-folder}}/>\\n </span>\\n </$list>\\n</$button>\\n\"},\"$:/plugins/linonetwo/open-in-external-app/button-caption-open-in-external-app\":{\"title\":\"$:/plugins/linonetwo/open-in-external-app/button-caption-open-in-external-app\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"Open External\"},\"$:/plugins/linonetwo/open-in-external-app/button-caption-open-in-folder\":{\"title\":\"$:/plugins/linonetwo/open-in-external-app/button-caption-open-in-folder\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"Open in Folder\"},\"$:/plugins/linonetwo/open-in-external-app/changelog\":{\"title\":\"$:/plugins/linonetwo/open-in-external-app/changelog\",\"text\":\"! Changelog\\n\\n!! Version 0.3.0\\n\\n* **Breaking Change**: Requires TidGi-Desktop version 0.13.0 or higher\\n** Updated API usage: replaced `window?.meta?.()?.workspaceID` with `window?.meta?.()?.workspace`\\n\"},\"$:/plugins/linonetwo/open-in-external-app/icons/open-in-app\":{\"title\":\"$:/plugins/linonetwo/open-in-external-app/icons/open-in-app\",\"text\":\"<svg width=\\\"22pt\\\" height=\\\"22pt\\\" class=\\\"tc-image-tmd-application-settings tc-image-button\\\" viewBox=\\\"0 0 24 24\\\"><path d=\\\"M7 22H9V24H7V22M11 22H13V24H11V22M15 22H17V24H15V22M5 4H19A2 2 0 0 1 21 6V18A2 2 0 0 1 19 20H5A2 2 0 0 1 3 18V6A2 2 0 0 1 5 4M5 8V18H19V8H5\\\" /></svg>\"},\"$:/plugins/linonetwo/open-in-external-app/icons/open-in-folder\":{\"title\":\"$:/plugins/linonetwo/open-in-external-app/icons/open-in-folder\",\"text\":\"<svg width=\\\"22pt\\\" height=\\\"22pt\\\" class=\\\"tc-image-ri-folder-open-fill tc-image-button\\\" viewBox=\\\"0 0 24 24\\\"><g><path fill=\\\"none\\\" d=\\\"M0 0h24v24H0z\\\"/><path d=\\\"M3 21a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h7.414l2 2H20a1 1 0 0 1 1 1v3H4v9.996L6 11h16.5l-2.31 9.243a1 1 0 0 1-.97.757H3z\\\"/></g></svg>\"},\"$:/plugins/linonetwo/open-in-external-app/readme\":{\"title\":\"$:/plugins/linonetwo/open-in-external-app/readme\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"!! Compatibility\\n\\n- Requires TidGi Desktop >= 0.13.0.\\n\\n!! Basic Usage\\n\\nAfter you import a PDF or image file into your wiki, you can open that tiddler, and click on the button to open that file in external PDF viewer or image reader.\\n\\nNote that if you use this to open a `.tid` or `.md` file, and edit it, things won't change in the wiki, because the tiddlywiki currently doesn't reload changed files from the disk.\\n\\n!! Message usage\\n\\nYou can use `param` or `$param` to passing the parameter. Or use `title` in `tm-open-in-external-app` and `filePath` in `tm-open-path`.\\n\\n!!! tm-open-in-external-app\\n\\n```tw5\\n<$button message=\\\"tm-open-in-external-app\\\" param=\\\"SomePDFTiddlerTitle\\\">Open that PDF</$button>\\n```\\n\\n```tw5\\n<$button>\\n <$action-sendmessage $message=\\\"tm-open-in-external-app\\\" title=\\\"SomePDFTiddlerTitle\\\" />\\n Open that PDF with tiddler title\\n</$button>\\n```\\n\\n!!! tm-open-path\\n\\nYou can use absolute path:\\n\\n```tw5\\n<$button message=\\\"tm-open-path\\\" param=\\\"SomePDF/File/Absolute/Path\\\">Open that PDF</$button>\\n```\\n\\nOr use relative path from the current wiki folder (that contains the `tiddlers` folder and `tiddler.info` file).\\n\\n```tw5\\n<$button>\\n <$action-sendmessage $message=\\\"tm-open-path\\\" filePath=\\\"tiddlers/File/relative/Path/from/Wiki/Folder\\\" />\\n Open that PDF with filePath\\n</$button>\\n```\\n\\nTry this to open the info file:\\n\\n<$button>\\n <$action-sendmessage $message=\\\"tm-open-path\\\" filePath=\\\"tiddlywiki.info\\\" />\\n Open tiddlywiki.info\\n</$button>\\n\"},\"$:/plugins/linonetwo/open-in-external-app/tree\":{\"title\":\"$:/plugins/linonetwo/open-in-external-app/tree\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"<<tree prefix:\\\"$:/plugins/linonetwo/open-in-external-app/\\\">>\"},\"$:/plugins/linonetwo/open-in-external-app/listener.js\":{\"title\":\"$:/plugins/linonetwo/open-in-external-app/listener.js\",\"type\":\"application/javascript\",\"module-type\":\"startup\",\"Modern.TiddlyDev#Origin\":\"listener.ts\",\"text\":\"\\\"use strict\\\";async function getFilePath(t){let e=\\\"\\\",a;if(\\\"string\\\"==typeof t.param?e=t.param:\\\"object\\\"==typeof t.paramObject&&((i=t.paramObject)?.title&&(e=i.title),i?.filePath)&&(a=i.filePath),a=e?await window?.service?.wiki?.getTiddlerFilePath?.(e):a){if(!/^(?:[A-Za-z]:[/\\\\\\\\]|\\\\/)/.test(a)){var i=(window?.meta?.()?.workspace)?.wikiFolderLocation;if(!i)return;a=decodeURI(i+\\\"/\\\"+a)}return a}}exports.startup=()=>{$tw.browser&&($tw.rootWidget.addEventListener(\\\"tm-open-in-external-app\\\",async t=>{var e=await getFilePath(t);void 0!==e&&await window?.service?.[\\\"native\\\"]?.openPath?.(e)}),$tw.rootWidget.addEventListener(\\\"tm-open-in-folder\\\",async t=>{var e=await getFilePath(t);void 0!==e&&await window?.service?.[\\\"native\\\"]?.openPath?.(e,!0)}),$tw.rootWidget.addEventListener(\\\"tm-open-path\\\",async t=>{let e=\\\"\\\";var a;\\\"string\\\"==typeof t.param?e=t.param:\\\"object\\\"==typeof t.paramObject&&(a=t.paramObject)?.filePath&&(e=a.filePath),await window?.service?.[\\\"native\\\"]?.openPath?.(e)}))};\"}}}",
4+
"title": "$:/plugins/linonetwo/open-in-external-app",
5+
"type": "application/json",
36
"author": "LinOnetwo",
47
"core-version": ">=5.1.22",
58
"dependents": "",
69
"description": "(Requires TidGi) A toolbar button to open PDF tiddler in os default reader, or open in folder.",
7-
"list": "readme tree",
10+
"list": "readme changelog tree",
811
"name": "Open In External App",
912
"plugin-type": "plugin",
1013
"stability": "STABILITY_1_EXPERIMENTAL",
11-
"text": "{\"tiddlers\":{\"$:/plugins/linonetwo/open-in-external-app/ViewToolbarButton/OpenInExternalApp\":{\"title\":\"$:/plugins/linonetwo/open-in-external-app/ViewToolbarButton/OpenInExternalApp\",\"tags\":\"$:/tags/ViewToolbar\",\"type\":\"text/vnd.tiddlywiki\",\"list-before\":\"$:/core/ui/Buttons/close\",\"caption\":\"{{$:/plugins/linonetwo/open-in-external-app/icons/open-in-app}} {{$:/plugins/linonetwo/open-in-external-app/button-caption-open-in-external-app}}\",\"short-caption\":\"{{$:/plugins/linonetwo/open-in-external-app/button-caption-open-in-external-app}}\",\"description\":\"Open tiddler in external app\",\"text\":\"\\\\whitespace trim\\n<$button tooltip={{!!description}} aria-label={{$:/plugins/linonetwo/open-in-external-app/button-caption-open-in-external-app}} class=<<tv-config-toolbar-class>>>\\n <% if [<currentTiddler>has[_canonical_uri]] %>\\n <$action-sendmessage $message=\\\"tm-open-in-external-app\\\" filePath={{{[<currentTiddler>get[_canonical_uri]]}}} />\\n <% else %>\\n <$action-sendmessage $message=\\\"tm-open-in-external-app\\\" title=<<currentTiddler>> />\\n <% endif %>\\n <$list filter=\\\"[<tv-config-toolbar-icons>match[yes]]\\\">\\n {{$:/plugins/linonetwo/open-in-external-app/icons/open-in-app}}\\n </$list>\\n <$list filter=\\\"[<tv-config-toolbar-text>match[yes]]\\\">\\n <span class=\\\"tc-btn-text\\\">\\n <$text text={{$:/plugins/linonetwo/open-in-external-app/button-caption-open-in-external-app}}/>\\n </span>\\n </$list>\\n</$button>\\n\"},\"$:/plugins/linonetwo/open-in-external-app/ViewToolbarButton/OpenInFolder\":{\"title\":\"$:/plugins/linonetwo/open-in-external-app/ViewToolbarButton/OpenInFolder\",\"tags\":\"$:/tags/ViewToolbar\",\"type\":\"text/vnd.tiddlywiki\",\"list-before\":\"$:/core/ui/Buttons/close\",\"caption\":\"{{$:/plugins/linonetwo/open-in-external-app/icons/open-in-folder}} {{$:/plugins/linonetwo/open-in-external-app/button-caption-open-in-folder}}\",\"short-caption\":\"{{$:/plugins/linonetwo/open-in-external-app/button-caption-open-in-folder}}\",\"description\":\"Open tiddler in folder\",\"text\":\"\\\\whitespace trim\\n<$button tooltip={{!!description}} aria-label={{$:/plugins/linonetwo/open-in-external-app/button-caption-open-in-folder}} class=<<tv-config-toolbar-class>>>\\n <% if [<currentTiddler>has[_canonical_uri]] %>\\n <$action-sendmessage $message=\\\"tm-open-in-folder\\\" filePath={{{[<currentTiddler>get[_canonical_uri]]}}} />\\n <% else %>\\n <$action-sendmessage $message=\\\"tm-open-in-folder\\\" title=<<currentTiddler>> />\\n <% endif %>\\n <$list filter=\\\"[<tv-config-toolbar-icons>match[yes]]\\\">\\n {{$:/plugins/linonetwo/open-in-external-app/icons/open-in-folder}}\\n </$list>\\n <$list filter=\\\"[<tv-config-toolbar-text>match[yes]]\\\">\\n <span class=\\\"tc-btn-text\\\">\\n <$text text={{$:/plugins/linonetwo/open-in-external-app/button-caption-open-in-folder}}/>\\n </span>\\n </$list>\\n</$button>\\n\"},\"$:/plugins/linonetwo/open-in-external-app/button-caption-open-in-external-app\":{\"title\":\"$:/plugins/linonetwo/open-in-external-app/button-caption-open-in-external-app\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"Open External\"},\"$:/plugins/linonetwo/open-in-external-app/button-caption-open-in-folder\":{\"title\":\"$:/plugins/linonetwo/open-in-external-app/button-caption-open-in-folder\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"Open in Folder\"},\"$:/plugins/linonetwo/open-in-external-app/icons/open-in-app\":{\"title\":\"$:/plugins/linonetwo/open-in-external-app/icons/open-in-app\",\"text\":\"<svg width=\\\"22pt\\\" height=\\\"22pt\\\" class=\\\"tc-image-tmd-application-settings tc-image-button\\\" viewBox=\\\"0 0 24 24\\\"><path d=\\\"M7 22H9V24H7V22M11 22H13V24H11V22M15 22H17V24H15V22M5 4H19A2 2 0 0 1 21 6V18A2 2 0 0 1 19 20H5A2 2 0 0 1 3 18V6A2 2 0 0 1 5 4M5 8V18H19V8H5\\\" /></svg>\"},\"$:/plugins/linonetwo/open-in-external-app/icons/open-in-folder\":{\"title\":\"$:/plugins/linonetwo/open-in-external-app/icons/open-in-folder\",\"text\":\"<svg width=\\\"22pt\\\" height=\\\"22pt\\\" class=\\\"tc-image-ri-folder-open-fill tc-image-button\\\" viewBox=\\\"0 0 24 24\\\"><g><path fill=\\\"none\\\" d=\\\"M0 0h24v24H0z\\\"/><path d=\\\"M3 21a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h7.414l2 2H20a1 1 0 0 1 1 1v3H4v9.996L6 11h16.5l-2.31 9.243a1 1 0 0 1-.97.757H3z\\\"/></g></svg>\"},\"$:/plugins/linonetwo/open-in-external-app/readme\":{\"title\":\"$:/plugins/linonetwo/open-in-external-app/readme\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"!! Basic Usage\\n\\nAfter you import a PDF or image file into your wiki, you can open that tiddler, and click on the button to open that file in external PDF viewer or image reader.\\n\\nNote that if you use this to open a `.tid` or `.md` file, and edit it, things won't change in the wiki, because the tiddlywiki currently doesn't reload changed files from the disk.\\n\\n!! Message usage\\n\\nYou can use `param` or `$param` to passing the parameter. Or use `title` in `tm-open-in-external-app` and `filePath` in `tm-open-path`.\\n\\n!!! tm-open-in-external-app\\n\\n```tw5\\n<$button message=\\\"tm-open-in-external-app\\\" param=\\\"SomePDFTiddlerTitle\\\">Open that PDF</$button>\\n```\\n\\n```tw5\\n<$button>\\n <$action-sendmessage $message=\\\"tm-open-in-external-app\\\" title=\\\"SomePDFTiddlerTitle\\\" />\\n Open that PDF with tiddler title\\n</$button>\\n```\\n\\n!!! tm-open-path\\n\\nYou can use absolute path:\\n\\n```tw5\\n<$button message=\\\"tm-open-path\\\" param=\\\"SomePDF/File/Absolute/Path\\\">Open that PDF</$button>\\n```\\n\\nOr use relative path from the current wiki folder (that contains the `tiddlers` folder and `tiddler.info` file).\\n\\n```tw5\\n<$button>\\n <$action-sendmessage $message=\\\"tm-open-path\\\" filePath=\\\"tiddlers/File/relative/Path/from/Wiki/Folder\\\" />\\n Open that PDF with filePath\\n</$button>\\n```\\n\\nTry this to open the info file:\\n\\n<$button>\\n <$action-sendmessage $message=\\\"tm-open-path\\\" filePath=\\\"tiddlywiki.info\\\" />\\n Open tiddlywiki.info\\n</$button>\\n\"},\"$:/plugins/linonetwo/open-in-external-app/tree\":{\"title\":\"$:/plugins/linonetwo/open-in-external-app/tree\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"<<tree prefix:\\\"$:/plugins/linonetwo/open-in-external-app/\\\">>\"},\"$:/plugins/linonetwo/open-in-external-app/listener.js\":{\"title\":\"$:/plugins/linonetwo/open-in-external-app/listener.js\",\"type\":\"application/javascript\",\"module-type\":\"startup\",\"Modern.TiddlyDev#Origin\":\"listener.ts\",\"text\":\"\\\"use strict\\\";async function getFilePath(t){let e=\\\"\\\",a;if(\\\"string\\\"==typeof t.param?e=t.param:\\\"object\\\"==typeof t.paramObject&&((i=t.paramObject)?.title&&(e=i.title),i?.filePath)&&(a=i.filePath),a=e?await window?.service?.wiki?.getTiddlerFilePath?.(e):a){if(!/^(?:[A-Za-z]:[/\\\\\\\\]|\\\\/)/.test(a)){var i=window?.meta?.()?.workspaceID;if(!i)return;i=(await window?.service?.workspace?.get(i))?.wikiFolderLocation;if(!i)return;a=decodeURI(i+\\\"/\\\"+a)}return a}}exports.startup=()=>{$tw.browser&&($tw.rootWidget.addEventListener(\\\"tm-open-in-external-app\\\",async t=>{var e=await getFilePath(t);void 0!==e&&await window?.service?.[\\\"native\\\"]?.openPath?.(e)}),$tw.rootWidget.addEventListener(\\\"tm-open-in-folder\\\",async t=>{var e=await getFilePath(t);void 0!==e&&await window?.service?.[\\\"native\\\"]?.openPath?.(e,!0)}),$tw.rootWidget.addEventListener(\\\"tm-open-path\\\",async t=>{let e=\\\"\\\";var a;\\\"string\\\"==typeof t.param?e=t.param:\\\"object\\\"==typeof t.paramObject&&(a=t.paramObject)?.filePath&&(e=a.filePath),await window?.service?.[\\\"native\\\"]?.openPath?.(e)}))};\"}}}",
12-
"title": "$:/plugins/linonetwo/open-in-external-app",
13-
"type": "application/json",
14-
"version": "0.2.0",
15-
"Modern.TiddlyDev#SHA256-Hashed": "c75419365f90de13838a57962c22de8425c0a0483c1f1255ccd0cbb6f91ccf5a"
14+
"version": "0.3.0",
15+
"Modern.TiddlyDev#SHA256-Hashed": "b53423699cdf87477540569e7c60e27ca061e372ec6ccbf8fc411bb6d798628d"
1616
}
1717
]

0 commit comments

Comments
 (0)