Skip to content

Commit 98a077a

Browse files
committed
21.10.26
1 parent 73a2aed commit 98a077a

4 files changed

Lines changed: 23 additions & 17 deletions

File tree

3.14 KB
Binary file not shown.

docs/index.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<TablacusExplorer><Item Id="sidetreeview"><General><Version>1.24</Version><MinVersion>2021.9.5</MinVersion><pubDate>Wed, 20 Oct 2021 00:00:00 GMT</pubDate><Creator>Gaku</Creator><Details>https://tablacus.github.io/wiki/addons/sidetreeview.html</Details></General><en><Name>Side tree view</Name><Description>Side tree view</Description></en><ja><Name>サイドツリー</Name></ja><zh><Name>共用式樹狀目錄</Name></zh></Item>
2+
<TablacusExplorer><Item Id="folderlistmenu"><General><Version>1.15</Version><MinVersion>2021.10.12</MinVersion><pubDate>Tue, 26 Oct 2021 00:00:00 GMT</pubDate><Creator>Gaku</Creator><Details>https://tablacus.github.io/wiki/addons/folderlistmenu.html</Details></General><en><Name>Folder list menu</Name><Description>Show a menu of folders listed in a text file</Description></en><ja><Name>フォルダーリストメニュー</Name></ja><zh><Name>自訂文字檔選單</Name></zh></Item>
3+
<Item Id="sidetreeview"><General><Version>1.24</Version><MinVersion>2021.9.5</MinVersion><pubDate>Wed, 20 Oct 2021 00:00:00 GMT</pubDate><Creator>Gaku</Creator><Details>https://tablacus.github.io/wiki/addons/sidetreeview.html</Details></General><en><Name>Side tree view</Name><Description>Side tree view</Description></en><ja><Name>サイドツリー</Name></ja><zh><Name>共用式樹狀目錄</Name></zh></Item>
34
<Item Id="treeview"><General><Version>1.41</Version><MinVersion>2021.9.5</MinVersion><pubDate>Wed, 20 Oct 2021 00:00:00 GMT</pubDate><Creator>Gaku</Creator><Details>https://tablacus.github.io/wiki/addons/treeview.html</Details></General><en><Name>Tree view</Name><Description>Tree view</Description></en><ja><Name>ツリー</Name></ja><zh><Name>樹狀目錄</Name></zh></Item>
45
<Item Id="showfocusedframe"><General><Version>1.02</Version><MinVersion>2021.9.5</MinVersion><pubDate>Wed, 13 Oct 2021 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Show focused item frame</Name><Description>Show focused item frame on navigate.</Description></en><ja><Name>フォーカス項目の枠を表示</Name></ja></Item>
56
<Item Id="menuitemfilter"><General><Version>1.05</Version><MinVersion>2021.9.5</MinVersion><pubDate>Tue, 12 Oct 2021 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Menu item filter</Name><Description>Menu item filter</Description></en><ja><Name>メニュー項目フィルタ</Name></ja><zh><Name>移除選單項目</Name></zh></Item>
@@ -199,7 +200,6 @@
199200
<Item Id="favoritesnewtab"><General><Version>1.02</Version><MinVersion>2021.1.17</MinVersion><pubDate>Wed, 20 Jan 2021 00:00:00 GMT</pubDate><Creator>Gaku</Creator><Details>https://tablacus.github.io/wiki/addons/favoritesnewtab.html</Details></General><en><Name>Favorites Open in a New Tab</Name><Description>Favorites Open in a New Tab</Description></en><ja><Name>新しいタブでお気に入りを開く</Name></ja><zh><Name>在新分頁中開啟我的最愛項目</Name></zh></Item>
200201
<Item Id="addonswitcher"><General><Version>1.03</Version><MinVersion>2021.1.17</MinVersion><pubDate>Tue, 19 Jan 2021 00:00:00 GMT</pubDate><Creator>Gaku</Creator><Details>https://tablacus.github.io/wiki/addons/addonswitcher.html</Details></General><en><Name>Add-on switcher</Name><Description>Enable or disable add-ons.</Description></en><ja><Name>アドオンの切り替え(Add-on switcher)</Name><Description>アドオンの有効・無効を切り替えます。</Description></ja></Item>
201202
<Item Id="addonsupdater"><General><Version>1.09</Version><MinVersion>2021.1.17</MinVersion><pubDate>Tue, 19 Jan 2021 00:00:00 GMT</pubDate><Creator>Gaku</Creator><Details>https://tablacus.github.io/wiki/addons/addonsupdater.html</Details></General><en><Name>Add-ons updater</Name><Description>Update add-ons when checking for updates of Tablacus Explorer</Description></en><ja><Name>アドオンの更新</Name><Description>Tablacus Explorerの更新確認時にアドオンを更新します</Description></ja><zh><Name>更新附加元件</Name></zh></Item>
202-
<Item Id="folderlistmenu"><General><Version>1.14</Version><MinVersion>2021.1.17</MinVersion><pubDate>Tue, 19 Jan 2021 00:00:00 GMT</pubDate><Creator>Gaku</Creator><Details>https://tablacus.github.io/wiki/addons/folderlistmenu.html</Details></General><en><Name>Folder list menu</Name><Description>Show a menu of folders listed in a text file</Description></en><ja><Name>フォルダーリストメニュー</Name></ja><zh><Name>自訂文字檔選單</Name></zh></Item>
203203
<Item Id="selectplus"><General><Version>1.04</Version><MinVersion>2021.1.14</MinVersion><pubDate>Sat, 16 Jan 2021 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Select plus</Name><Description>Selects items after background file operations.(Not perfect)</Description></en><ja><Name>項目選択プラス</Name><Description>バックグラウンドのファイル操作後に項目を選択します。(完璧ではありません)</Description></ja></Item>
204204
<Item Id="selectnonexistent"><General><Version>1.03</Version><MinVersion>2021.1.10</MinVersion><pubDate>Wed, 13 Jan 2021 00:00:00 GMT</pubDate><Creator>Gaku</Creator><Details>https://tablacus.github.io/wiki/addons/selectnonexistent.html</Details></General><en><Name>Select nonexistent items</Name><Description>Select nonexistent items</Description></en><ja><Name>存在しない項目を選択</Name><Description>存在しない項目を選択します。</Description></ja><zh><Name>選取不存在的項目</Name></zh></Item>
205205
<Item Id="wildcardselect"><General><Version>1.05</Version><MinVersion>2021.1.10</MinVersion><pubDate>Wed, 13 Jan 2021 00:00:00 GMT</pubDate><Creator>Gaku</Creator><Details>https://tablacus.github.io/wiki/addons/wildcardselect.html</Details></General><en><Name>Wildcard selection</Name><Description>Wildcard selection</Description></en><ja><Name>ワイルドカードで選択</Name></ja><zh><Name>萬用字元選取</Name></zh></Item>

folderlistmenu/config.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<TablacusExplorer>
33
<General>
4-
<Version>1.14</Version>
5-
<MinVersion>2021.1.17</MinVersion>
6-
<pubDate>Tue, 19 Jan 2021 00:00:00 GMT</pubDate>
4+
<Version>1.15</Version>
5+
<MinVersion>2021.10.12</MinVersion>
6+
<pubDate>Tue, 26 Oct 2021 00:00:00 GMT</pubDate>
77
<Options>Common:0:0</Options>
88
<Level>2</Level>
99
<Creator>Gaku</Creator>

folderlistmenu/sync.js

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ AddType("Folder list menu", {
1515
}
1616
let res, Name = "", Img = "";
1717
const mii = api.Memory("MENUITEMINFO");
18-
mii.cbSize = mii.Size;
1918
mii.fMask = MIIM_ID | MIIM_BITMAP | MIIM_SUBMENU | MIIM_DATA | MIIM_STRING | MIIM_FTYPE;
2019
MenusIcon(mii, "folder:closed");
2120
const hbmFolder = mii.hbmpItem;
@@ -34,7 +33,7 @@ AddType("Folder list menu", {
3433
}
3534
res = /^#EXTIMG:\s*(.*)/i.exec(path);
3635
if (res) {
37-
Img = res[1];
36+
Img = res[1].replace(/"/g, "");
3837
}
3938
continue;
4039
}
@@ -54,22 +53,29 @@ AddType("Folder list menu", {
5453
if (Img == "...") {
5554
Img = path;
5655
}
56+
let image;
5757
const ar = Img.split(/,/);
58-
const fn = api.PathUnquoteSpaces(ExtractMacro(te, ar[0]));
59-
let image = api.CreateObject("WICBitmap");
60-
if (/\.ico$/i.test(fn) || !image.FromFile(fn)) {
61-
const sfi = api.Memory("SHFILEINFO");
62-
api.SHGetFileInfo(fn, 0, sfi, sfi.Size, SHGFI_ICON | SHGFI_SMALLICON | SHGFI_USEFILEATTRIBUTES);
63-
image.FromHICON(sfi.hIcon);
64-
api.DestroyIcon(sfi.hIcon);
58+
const fn = ExtractPath(te, ar.shift());
59+
if (/^icon:|^font:/i.test(fn)) {
60+
image = MakeImgData([fn, ar.shift()].join(","), 0, ar[0] || 16, CLR_DEFAULT | COLOR_MENU)
61+
} else if (/^bitmap:/i.test(fn)) {
62+
image = MakeImgData([fn, ar.shift(), ar.shift(), ar.shift()].join(","), 0, ar[0] || 16, CLR_DEFAULT | COLOR_MENU);
63+
} else {
64+
image = api.CreateObject("WICBitmap");
65+
if (/\.ico$/i.test(fn) || !image.FromFile(fn)) {
66+
const sfi = api.Memory("SHFILEINFO");
67+
api.SHGetFileInfo(fn, 0, sfi, sfi.Size, SHGFI_ICON | SHGFI_SMALLICON | SHGFI_USEFILEATTRIBUTES);
68+
image.FromHICON(sfi.hIcon);
69+
api.DestroyIcon(sfi.hIcon);
70+
}
6571
}
66-
if (ar[1] > 0) {
67-
image = GetThumbnail(image, ar[1], false);
72+
if (ar[0] > 0) {
73+
image = GetThumbnail(image, ar[0], false);
6874
}
6975
AddMenuImage(mii, image, fn);
7076
hbm = mii.hbmpItem;
7177
}
72-
const arName = (Name || fso.GetFileName(api.PathUnquoteSpaces(path.replace(/`/g, ""))) || path.replace(/\\/g, "")).split(/\\|\/|\|/);
78+
const arName = (Name || GetFileName(api.PathUnquoteSpaces(path.replace(/`/g, ""))) || path.replace(/\\/g, "")).split(/\\|\/|\|/);
7379
let strPath = '';
7480
let hMenu = oMenu['\\'];
7581
while (arName.length > 1) {

0 commit comments

Comments
 (0)