Hi folks so I was messing around with the settings of ver 13. as I just got the license and I was wondering if it was possible to select multiple tabs with ctrl or shift and perform actions like lock, unlock, close etc.?
If the feature was not implemented it would certainly be welcome. Thanks again for your input.
There's an option to close tabs on middle click, and you can cycle through the lock states with Alt + Click. Doing it those ways is probably as quick or quicker than multi-selecting tabs and then applying an action to them would be.
You can also close other tabs, or those to the left or right of a tab, via the tab's right-click menu.
A script could show a list of tabs that you could select/deselect, and perform an action on, but that method would probably only make sense for other types of actions.
If I did not miss anything, I'm gonna give a use case here where I feel like that would be much better:
Say I have 30 tabs open and want to close 10 in the middle or apply a color label to these, I would have to select them one by one and/or perform the action for each tab.
Now if I could select the first tab, hold shift, click the 10th tab and right click to apply my action on all of them that would be much faster.
Here is a small similar example with firefox and the sidebery extension where it clearly helps from my standpoint and that of many other people:
I understand your use case. In some scenarios, it may be helpful to have a way to apply tasks in batch for tabs.
After a quick experiment with scripting, it seems possible to some extent (that's the DO magic). However, there are some issues you may face in the process that diminish the user experience for the (possible) command:
There is no concept of tab selection/deselection, so there is no visual cue to denote that state. I have ruled out changing the color, since it has other potential uses. Adding a suffix to their label may work, but it's a bit tricky to maintain the current state visually align with the actual state.
Some options, such as changing the label or color, can only be applied via commands to the active tab, which generates some unwanted visual artifacts. Ideally, it would be better to perform certain tasks via scripting directly from the Tab object instead of via commands.
The OnTabClick event, when used together with qualifiers like ctrl or shift, always ends up activating the clicked tab, which is not desirable in this scenario.
I was thinking the script would show a list of tabs you can select/deselect, rather than do it from the tabs themselves (which would be nicer but isn't easy).
You can use cmd.SetSourceTab to run commands on other tabs. E.g. This changes every tab's label to "Test":
function OnClick(clickData)
{
var cmd = clickData.func.command;
for(var eListers = new Enumerator(DOpus.listers); !eListers.atEnd(); eListers.moveNext())
{
for (var eTabs = new Enumerator(eListers.item().tabs); !eTabs.atEnd(); eTabs.moveNext())
{
var tab = eTabs.item();
cmd.SetSourceTab(tab);
cmd.RunCommand('Go TABNAME="Test"');
}
}
}
First week of vacation. I've been experimenting with this since the afternoon, and I think is more or less what @51dux has been asking for.
Basically, tab selection works as it does in a browser. Ctrl to toggle selection, Shiftto select a range. Currently you can set colors, close, link, unlink, lock, unlock and copy paths. It’s also relatively simple to add other tab related commands. There are also some exposed variables that allow you to decide whether to show or hide buttons based on the number of selected tabs.
There are, however, some caveats:
LOCK and UNLOCK don't work without artifacts (activate each tab where applied)
In theory, you can still change a tab label, but I haven't tested it extensively.
Probably is not a good idea to use this with another script that also change labels and/or use tab events.
I didn't test it extensivily, though. @51dux PM me if you're still interested in beta testing it.
I just saw all your replies guy thanks for looking into this!
From what I've seen so far @errante the behavior is exactly what I want.
I was thinking if not possible to change the colors or add suffixes without introducing issues, would it be possible to make the font of the selected tabs bolder?