Skip to content
Snippets Groups Projects
Commit 1697d6db authored by eri451's avatar eri451
Browse files

made sesseionsave work with tabgroups

parent f486629a
No related branches found
No related tags found
No related merge requests found
......@@ -96,14 +96,20 @@ group.commands.add(['sessions[ave]','mkses[sion]'],
}
if (/tabs/.test(sesop)) {
tabs.visibleTabs.forEach(function (tab, i) {
let loc = tab.linkedBrowser.contentDocument.location.href;
if (/^dactyl:\/\/help\//.test(loc) && !/help/.test(sesop))
return;
if (loc == 'about:blank' && !/blank/.test(sesop))
return;
lines.push('tabopen '+loc);
});
tabs._groups.GroupItems.groupItems.forEach( function (group, k) {
lines.push('js let newGroup = tabs._groups.GroupItems.newGroup()');
lines.push('js newGroup.setTitle('+group.getTitle()+')');
lines.push('js tabs._groups.GroupItems.setActiveGroupItem(newGroup)');
group._children.forEach(function (tab, i) {
let loc = tab.tab.linkedBrowser.contentDocument.location.href;
if (/^dactyl:\/\/help\//.test(loc) && !/help/.test(sesop))
return;
if (loc == 'about:blank' && !/blank/.test(sesop))
return;
lines.push('tabopen '+loc);
});
});
}
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment