Skip to content

Commit

Permalink
24.2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
tablacus committed Feb 8, 2024
1 parent c814987 commit f5f89da
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 77 deletions.
4 changes: 2 additions & 2 deletions docs/index.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<TablacusExplorer><Item Id="mpv"><General><Version>1.01</Version><MinVersion>2023.9.13</MinVersion><pubDate>Mon, 1 Jan 2024 00:00:00 GMT</pubDate><Creator>ccfs</Creator></General><en><Name>mpv</Name><Description>Play selected image and media using mpv</Description></en></Item>
<TablacusExplorer><Item Id="openinstead"><General><Version>1.14</Version><MinVersion>2023.9.13</MinVersion><pubDate>Thu, 08 Feb 2024 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Open instead</Name><Description>Open instead of Explorer</Description></en><ja><Name>エクスプローラの代わりに開く</Name><Description>エクスプローラの代わりにTablacus Explorerで開きます。</Description></ja><zh><Name>接替檔案總管</Name></zh></Item>
<Item Id="mpv"><General><Version>1.01</Version><MinVersion>2023.9.13</MinVersion><pubDate>Mon, 1 Jan 2024 00:00:00 GMT</pubDate><Creator>ccfs</Creator></General><en><Name>mpv</Name><Description>Play selected image and media using mpv</Description></en></Item>
<Item Id="colorlabels"><General><Version>1.12</Version><MinVersion>2023.7.12</MinVersion><pubDate>Mon, 06 Nov 2023 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Color labels</Name><Description>Color labels</Description></en><ja><Name>カラーラベル</Name></ja><zh><Name>以背景色標示</Name></zh></Item>
<Item Id="sidetreeview"><General><Version>1.29</Version><MinVersion>2023.9.13</MinVersion><pubDate>Wed, 18 Oct 2023 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Side tree view</Name><Description>Side tree view</Description></en><ja><Name>サイドツリー</Name></ja><zh><Name>共用式樹狀目錄</Name></zh></Item>
<Item Id="treeview"><General><Version>1.44</Version><MinVersion>2023.9.13</MinVersion><pubDate>Wed, 18 Oct 2023 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Tree view</Name><Description>Tree view</Description></en><ja><Name>ツリー</Name></ja><zh><Name>樹狀目錄</Name></zh></Item>
Expand All @@ -18,7 +19,6 @@
<Item Id="tabplus"><General><Version>1.96</Version><MinVersion>2022.6.27</MinVersion><pubDate>Mon, 18 Jul 2022 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Tab plus</Name><Description>Tab plus</Description></en><ja><Name>タブプラス</Name></ja><zh><Name>進階頁籤</Name></zh></Item>
<Item Id="showhash"><General><Version>1.01</Version><MinVersion>2022.5.20</MinVersion><pubDate>Sun, 05 Jun 2022 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Show hash</Name><Description>Show hash</Description></en><ja><Name>ハッシュ値を表示</Name></ja></Item>
<Item Id="tabcolorplus"><General><Version>1.07</Version><MinVersion>2022.4.11</MinVersion><pubDate>Wed, 27 Apr 2022 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Tab color plus</Name><Description>Color the tab by wild card, or regular expression. Require "Tab plus"</Description></en><ja><Name>タブカラープラス</Name><Description>ワイルドカードや正規表現でタブに色を付けます。 ※タブプラスが必要</Description></ja><zh><Name>頁籤色彩規則</Name></zh></Item>
<Item Id="openinstead"><General><Version>1.13</Version><MinVersion>2022.4.11</MinVersion><pubDate>Thu, 21 Apr 2022 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Open instead</Name><Description>Open instead of Explorer</Description></en><ja><Name>エクスプローラの代わりに開く</Name><Description>エクスプローラの代わりにTablacus Explorerで開きます。</Description></ja><zh><Name>接替檔案總管</Name></zh></Item>
<Item Id="importexplorer"><General><Version>1.11</Version><MinVersion>2022.4.11</MinVersion><pubDate>Wed, 20 Apr 2022 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Import Explorer</Name><Description>Import Explorer</Description></en><ja><Name>エクスプローラを取り込む</Name><Description>エクスプローラを取り込んでTablacus Explorerで開きます。</Description></ja><zh><Name>匯入檔案總管</Name></zh></Item>
<Item Id="spi"><General><Version>1.26</Version><MinVersion>2022.3.27</MinVersion><pubDate>Sun, 17 Apr 2022 00:00:00 GMT</pubDate><DllVersion>1.2.1.0</DllVersion><Creator>Gaku</Creator></General><en><Name>Susie Plug-in</Name><Description>Susie Plug-in</Description></en><ja><Name>Susieプラグイン</Name></ja><zh><Name>Susie 外掛程式</Name></zh></Item>
<Item Id="layout"><General><Version>1.02</Version><MinVersion>2022.3.27</MinVersion><pubDate>Wed, 13 Apr 2022 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Layout</Name><Description>Adds a toolbar button that opens a popover listing all layouts</Description></en><ja><Name>レイアウト</Name></ja><zh><Name>版面</Name></zh></Item>
Expand Down
Binary file added docs/openinstead/openinstead_114.zip
Binary file not shown.
6 changes: 3 additions & 3 deletions openinstead/config.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<TablacusExplorer>
<General>
<Version>1.13</Version>
<MinVersion>2022.4.11</MinVersion>
<pubDate>Thu, 21 Apr 2022 00:00:00 GMT</pubDate>
<Version>1.14</Version>
<MinVersion>2023.9.13</MinVersion>
<pubDate>Thu, 08 Feb 2024 00:00:00 GMT</pubDate>
<Options>Common:0:0</Options>
<Level>2</Level>
<Creator>Gaku</Creator>
Expand Down
64 changes: 60 additions & 4 deletions openinstead/script.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,66 @@
const Addon_Id = "openinstead";
const item = GetAddonElement(Addon_Id);
if (window.Addon == 1) {
AddEvent("WindowRegistered", function (Ctrl) {
Sync.OpenInstead.Exec();
setTimeout(Sync.OpenInstead.Exec, 500);
Addons.OpenInstead = {
RealFolders: item.getAttribute("RealFolders"),
SpecialFolders: item.getAttribute("SpecialFolders"),
TakeOver: item.getAttribute("TakeOver"),

Worker: async function (Retry) {
const sw = await sha.Windows();
for (let i = await sw.Count; i-- > 0;) {
let exp = await sw.item(i);
if (exp) {
let r = await Promise.all([exp.Visible, exp.Busy, exp.Document]);
if (r[0] && !r[1]) {
let doc = await r[2];
if (doc) {
try {
let path = await api.GetDisplayNameOf(doc, SHGDN_FORPARSING);
let url = doc;
if (!path && /\\explorer\.exe$/i.test(await exp.FullName)) {
path = await api.PathCreateFromUrl(await exp.LocationURL);
url = path;
}
if (path && Addons.OpenInstead[/^.?:\\|^\\\\/.test(path) ? "RealFolders" : "SpecialFolders"]) {
const pid = await api.ILCreateFromPath(url);
if (!await RunEvent3("UseExplorer", pid)) {
exp.Visible = false;
let FV = await (await GetFolderView()).Navigate((await pid.ExtendedProperty("linktarget")) || url, SBSP_NEWBROWSER);
if (Addons.OpenInstead.TakeOver) {
r = await Promise.all([doc.CurrentViewMode, doc.IconSize, doc.SortColumns, doc.GroupBy, doc.FocusedItem]);
FV.CurrentViewMode = r[0];
if (r[1]) {
FV.IconSize = r[1];
}
if (r[2]) {
FV.SortColumns = r[2];
}
if (r[3]) {
FV.GroupBy = r[3];
}
}
FV.SelectItem(r[4], SVSI_FOCUSED | SVSI_ENSUREVISIBLE | SVSI_DESELECTOTHERS | SVSI_SELECTIONMARK | SVSI_SELECT);
exp.Quit();
RestoreFromTray();
api.SetForegroundWindow(ui_.hwnd);
Retry = false;
}
}
} catch (e) { }
}
}
}
}
if (Retry) {
setTimeout(Addons.OpenInstead.Worker, 500);
}
}
};

AddEvent("WindowRegistered", function () {
setTimeout(Addons.OpenInstead.Worker, 500, true);
});
$.importScript("addons\\" + Addon_Id + "\\sync.js");
} else {
SetTabContents(0, "", await ReadTextFile("addons\\" + Addon_Id + "\\options.html"));
}
68 changes: 0 additions & 68 deletions openinstead/sync.js

This file was deleted.

0 comments on commit f5f89da

Please sign in to comment.