
Can I somehow associate Google Chrome with Total Commander, so when I hit "Show in folder" on downloaded item, I want to open "Total Commander" (with the correct dir) instead of opening "Windows Explorer"?
Moderators: Hacker, petermad, Stefan2, white
Code: Select all
/**
* Navigates to the folder that the selected item is in and selects it. This is
* used for the show-in-folder command.
*/
function showInFolder() {
var bookmarkNode = list.selectedItem;
var parentId = bookmarkNode.parentId;
// After the list is loaded we should select the revealed item.
function f(e) {
var index;
if (bookmarkNode &&
(index = list.dataModel.findIndexById(bookmarkNode.id)) != -1) {
var sm = list.selectionModel;
sm.anchorIndex = sm.leadIndex = sm.selectedIndex = index;
list.scrollIndexIntoView(index);
}
list.removeEventListener('load', f);
}
list.addEventListener('load', f);
var treeItem = bmm.treeLookup[parentId];
treeItem.reveal();
navigateTo(parentId);
}