Skip to content

Commit

Permalink
24.2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
tablacus committed Feb 12, 2024
1 parent 29e1a6a commit ecff413
Show file tree
Hide file tree
Showing 10 changed files with 99 additions and 133 deletions.
Binary file added docs/importexplorer/importexplorer_112.zip
Binary file not shown.
6 changes: 3 additions & 3 deletions docs/index.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<TablacusExplorer><Item Id="iconoverlay"><General><Version>1.12</Version><MinVersion>2023.9.13</MinVersion><pubDate>Fri, 09 Feb 2024 00:00:00 GMT</pubDate><DllVersion>1.1.3.0</DllVersion><Creator>Gaku</Creator></General><en><Name>Icon overlay</Name><Description>Icon overlay unlimited</Description></en><ja><Name>アイコンオーバーレイ</Name><Description>アイコンオーバーレイを無制限に</Description></ja><zh><Name>解除疊置圖示上限</Name></zh></Item>
<TablacusExplorer><Item Id="renamedialogplus"><General><Version>1.09</Version><MinVersion>2023.9.13</MinVersion><pubDate>Mon, 12 Feb 2024 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Rename dialog plus</Name><Description>Rename dialog box plus</Description></en><ja><Name>名前の変更ダイアログボックス プラス</Name><Description>名前の変更を拡張子別のダイアログボックスで行います。</Description></ja><zh><Name>重新命名進階對話窗</Name></zh></Item>
<Item Id="importexplorer"><General><Version>1.12</Version><MinVersion>2023.9.13</MinVersion><pubDate>Mon, 12 Feb 2024 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="iconoverlay"><General><Version>1.12</Version><MinVersion>2023.9.13</MinVersion><pubDate>Fri, 09 Feb 2024 00:00:00 GMT</pubDate><DllVersion>1.1.3.0</DllVersion><Creator>Gaku</Creator></General><en><Name>Icon overlay</Name><Description>Icon overlay unlimited</Description></en><ja><Name>アイコンオーバーレイ</Name><Description>アイコンオーバーレイを無制限に</Description></ja><zh><Name>解除疊置圖示上限</Name></zh></Item>
<Item Id="sidetreeview"><General><Version>1.30</Version><MinVersion>2023.9.13</MinVersion><pubDate>Fri, 09 Feb 2024 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.45</Version><MinVersion>2023.9.13</MinVersion><pubDate>Fri, 09 Feb 2024 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>
<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>
Expand All @@ -20,7 +22,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="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>
<Item Id="toolbar"><General><Version>1.44</Version><MinVersion>2022.3.27</MinVersion><pubDate>Thu, 31 Mar 2022 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Tool bar</Name><Description>Tool bar</Description></en><ja><Name>ツールバー</Name></ja><zh><Name>工具列</Name></zh></Item>
Expand Down Expand Up @@ -297,7 +298,6 @@
<Item Id="firebug"><General><Version>1.01</Version><MinVersion>2020.11.22</MinVersion><pubDate>Fri, 27 Nov 2020 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Firebug Lite</Name><Description>Firebug Lite https://getfirebug.com/firebuglite</Description></en></Item>
<Item Id="overlaylabel"><General><Version>1.01</Version><MinVersion>2020.11.21</MinVersion><pubDate>Sun, 22 Nov 2020 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Overlay label</Name><Description>Overlay label * Require "Label"</Description></en><ja><Name>オーバーレイラベル</Name><Description>オーバーレイラベル ※"ラベル"が必要</Description></ja></Item>
<Item Id="clipboardimage"><General><Version>1.01</Version><MinVersion>2020.11.20</MinVersion><pubDate>Sat, 21 Nov 2020 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Clipboard image</Name><Description>Save the clipboard image to a file by pasting.</Description></en><ja><Name>クリップボードの画像</Name><Description>貼り付けでクリップボードの画像をファイルに保存します。</Description></ja></Item>
<Item Id="renamedialogplus"><General><Version>1.08</Version><MinVersion>2020.11.6</MinVersion><pubDate>Sun, 08 Nov 2020 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Rename dialog plus</Name><Description>Rename dialog box plus</Description></en><ja><Name>名前の変更ダイアログボックス プラス</Name><Description>名前の変更を拡張子別のダイアログボックスで行います。</Description></ja><zh><Name>重新命名進階對話窗</Name></zh></Item>
<Item Id="noemphasis"><General><Version>1.01</Version><MinVersion>2020.6.17</MinVersion><pubDate>Wed, 17 Jun 2020 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>No emphasis</Name><Description>Don't emphasize the selected column</Description></en><ja><Name>選択したカラムを強調しない</Name></ja><zh><Name>無需強調排序欄位</Name></zh></Item>
<Item Id="orderselected"><General><Version>1.02</Version><MinVersion>2020.6.17</MinVersion><pubDate>Wed, 17 Jun 2020 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Order of Selected items</Name><Description>Selected items are in the order they appear in the view.</Description></en><ja><Name>選択項目の順序</Name><Description>選択項目を表示された順にします。</Description></ja><zh><Name>順序處理選擇項目</Name></zh></Item>
<Item Id="closealltabs"><General><Version>1.00</Version><MinVersion>2020.2.6</MinVersion><pubDate>Thu, 06 Feb 2020 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Close all tabs</Name><Description>Close all tabs</Description></en><ja><Name>すべてのタブを閉じる</Name></ja><zh><Name>關閉所有分頁</Name></zh></Item>
Expand Down
Binary file added docs/renamedialogplus/renamedialogplus_109.zip
Binary file not shown.
6 changes: 3 additions & 3 deletions importexplorer/config.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<TablacusExplorer>
<General>
<Version>1.11</Version>
<MinVersion>2022.4.11</MinVersion>
<pubDate>Wed, 20 Apr 2022 00:00:00 GMT</pubDate>
<Version>1.12</Version>
<MinVersion>2023.9.13</MinVersion>
<pubDate>Mon, 12 Feb 2024 00:00:00 GMT</pubDate>
<Options>Common:0,5,6,7,8,9:0</Options>
<Level>2</Level>
<Creator>Gaku</Creator>
Expand Down
72 changes: 70 additions & 2 deletions importexplorer/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,81 @@ if (!item.getAttribute("Set")) {
item.setAttribute("TakeOver", 1);
}
if (window.Addon == 1) {
Addons.ImportExplorer = {
sName: item.getAttribute("MenuName") || await GetAddonInfo(Addon_Id).Name,
nPos: GetNum(item.getAttribute("MenuPos")),
RealFolders: item.getAttribute("RealFolders"),
SpecialFolders: item.getAttribute("SpecialFolders"),
TakeOver: item.getAttribute("TakeOver"),

Exec: async function () {
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.ImportExplorer[/^.?:\\|^\\\\/.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.ImportExplorer.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);
}
}
} catch (e) { }
}
}
}
}
}
}

AddEvent("Layout", async function () {
SetAddon(Addon_Id, Default, ['<span class="button" onclick="SyncExec(Sync.ImportExplorer.Exec, this);" oncontextmenu="SyncExec(Sync.ImportExplorer.Exec, this); return false;" onmouseover="MouseOver(this)" onmouseout="MouseOut()">', await GetImgTag({
SetAddon(Addon_Id, Default, ['<span class="button" onclick="Addons.ImportExplorer.Exec(this);" oncontextmenu="Addons.ImportExplorer.Exec(this); return false;" onmouseover="MouseOver(this)" onmouseout="MouseOut()">', await GetImgTag({
title: item.getAttribute("MenuName") || await GetAddonInfo(Addon_Id).Name,
src: item.getAttribute("Icon") || "%SystemRoot%\\explorer.exe"
}, GetIconSizeEx(item)), '</span>']);
});
$.importScript("addons\\" + Addon_Id + "\\sync.js");
//Menu
if (item.getAttribute("MenuExec")) {
SetMenuExec("ImportExplorer", Addons.ImportExplorer.sName, item.getAttribute("Menu"), item.getAttribute("MenuPos"));
}
//Key
if (item.getAttribute("KeyExec")) {
SetKeyExec(item.getAttribute("KeyOn"), item.getAttribute("Key"), Addons.ImportExplorer.Exec, "Async");
}
//Mouse
if (item.getAttribute("MouseExec")) {
SetGestureExec(item.getAttribute("MouseOn"), item.getAttribute("Mouse"), Addons.ImportExplorer.Exec, "Async");
}
//Type
AddTypeEx("Add-ons", "Import Explorer", Addons.ImportExplorer.Exec);
} else {
EnableInner();
SetTabContents(0, "General", await ReadTextFile("addons\\" + Addon_Id + "\\options.html"));
Expand Down
96 changes: 0 additions & 96 deletions importexplorer/sync.js

This file was deleted.

6 changes: 3 additions & 3 deletions renamedialogplus/config.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<TablacusExplorer>
<General>
<Version>1.08</Version>
<MinVersion>2020.11.6</MinVersion>
<pubDate>Sun, 08 Nov 2020 00:00:00 GMT</pubDate>
<Version>1.09</Version>
<MinVersion>2023.9.13</MinVersion>
<pubDate>Mon, 12 Feb 2024 00:00:00 GMT</pubDate>
<Options>Common:7,8,9:7</Options>
<Level>2</Level>
<Creator>Gaku</Creator>
Expand Down
4 changes: 2 additions & 2 deletions renamedialogplus/dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
<div id="P" style="width: 100%; padding: 3pt">
</div>
<table id="T">
<td style="width: 100%; padding-left: 3pt;"><input type="text" name="N" style="width: 100%"></td>
<td style="width: 100%; padding-left: 3pt;"><input type="text" name="N" class="full"></td>
<td style="padding-right: 3pt;"><input type="text" name="E" style="width: 5em"></td>
</table>
</form>
<table id="R" style="width: 100%">
<table id="R" class="full">
<tr>
<td id="toolbar" style="width: 100%; white-space: nowrap">
</td>
Expand Down
10 changes: 5 additions & 5 deletions renamedialogplus/dialog.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
InitDialog = async function () {
await ApplyLang(document);
RunEventUI("BrowserCreatedEx");
var Focused = await dialogArguments.Focused;
var s = await IsFileHideExt(Focused) && !await dialogArguments.ResultsFolder ? GetFileName(await api.GetDisplayNameOf(Focused, SHGDN_FORPARSING)) : await api.GetDisplayNameOf(Focused, SHGDN_FOREDITING);
const Focused = await dialogArguments.Focused;
const s = await IsFileHideExt(Focused) && !await dialogArguments.ResultsFolder ? GetFileName(await api.GetDisplayNameOf(Focused, SHGDN_FORPARSING)) : await api.GetDisplayNameOf(Focused, SHGDN_FOREDITING);
document.getElementById("P").innerText = s;
if (await IsFolderEx(Focused)) {
document.F.N.value = s;
Expand All @@ -28,9 +28,9 @@ AddEventEx(document.body, "keydown", function (ev) {
});

DoRename = async function () {
var Focused = await dialogArguments.Focused;
var s = document.getElementById("P").innerText;
var r = document.F.E.value ? [document.F.N.value, document.F.E.value].join(".") : document.F.N.value;
const Focused = await dialogArguments.Focused;
const s = document.getElementById("P").innerText;
const r = document.F.E.value ? [document.F.N.value, document.F.E.value].join(".") : document.F.N.value;
if (r && s != r) {
if (/[\\\/:\*\?"<>\|]/.test(r)) {
MessageBox(await api.LoadString(hShell32, 4109), null, MB_ICONSTOP | MB_OK);
Expand Down
Loading

0 comments on commit ecff413

Please sign in to comment.