View copy_tabs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const TC = FV.Parent; | |
for (let i = 0; i < TC.length; i++) { | |
NavigateFV(Sync.SwitchPane.NextFV(TC[i]), TC[i].History, SBSP_NEWBROWSER); | |
} |
View refreshandapply.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const FV = GetFolderView(Ctrl, pt); | |
FV.Refresh() | |
const item = Sync.FolderSettings.Get(FV); | |
if (item) { | |
const s = item.text || item.textContent; | |
if (s) { | |
Exec(FV, s, item.getAttribute("Type"), null); | |
} | |
} |
View newfolder.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const currentPath = api.GetDisplayNameOf(FV, SHGDN_FORPARSING); | |
InputDialog("New Folder", "", function (r) { | |
if (r) { | |
let path = r.replace(/^\s+/, ""); | |
if (!/^[A-Z]:\\|^\\/i.test(path)) { | |
path = BuildPath(currentPath, path); | |
} | |
fso.CreateFolder(path); | |
} | |
}); |
View toggle_fullscreen.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ToggleFullscreen(); |
View copyaspath.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clipboardData.setData("text", (FV.FocusedItem || FV.FolderItem).Path); |
View toggle_seletion.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const nFocused = FV.GetFocusedItem; | |
const bSelected = api.SendMessage(FV.hwndList, LVM_GETITEMSTATE, nFocused, LVIS_SELECTED); | |
FV.SelectItem(nFocused, bSelected ? SVSI_DESELECT : SVSI_SELECT); |
View timeout.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setTimeout(function () { | |
Exec(te, ["cmigemo,0", "filterlist,1"].join("\n"), "Addon switcher"); | |
}, 500); |
View toggle_selection_with_inline_renaming.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const hEdit = api.SendMessage(FV.hwndList, LVM_GETEDITCONTROL, 0, 0); | |
const fn = api.GetWindowText(hEdit); | |
let start = api.SendMessage(hEdit, 0xB0, 0, 0);//EM_GETSEL | |
const end = Math.floor(start >> 16); | |
start &= 0xffff; | |
if (fn.indexOf(".") >= 0) { | |
if (start) { | |
api.SendMessage(hEdit, 0xB1, 0, fn.length);//EM_SETSEL | |
} else { | |
if (end == fn.length) { |
View open_chrome_form_url_shortcut.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Selected = FV.SelectedItems(); | |
if (Selected.Count != 1) { | |
return; | |
} | |
wsh.run('"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe "' + Selected.Item(0).ExtendedProperty("linktarget")); |
NewerOlder