Close Tabs - another option

Features wanted...
Post Reply
aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Close Tabs - another option

Post by aurumdigitus »

Right clicking a Tab produces three options at the bottom of the Context menu for doing so.

Borrowing from Firefox would like to see an additional choice: Close Tabs to the Right. As the tabs can repositioned (as in XY) you can move and close several unwanted sites simultaneously. When using the browser find this very useful and think it would be in XY also.

LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Close Tabs - another option

Post by LittleBiG »

highend has already created a script for this:

Code: Select all

"Close Right Tabs|:del"
  $numTabs = tab("get", "c");
  $curTabID = tab("get");
  $maxTabs = $numTabs - $curTabID;
  $i = 1;
  while($i <= $maxTabs) {
    tab("close", 1, $curTabID + 1);
    $i++;
  }
Original topic: http://www.xyplorer.com/xyfc/viewtopic.php?f=5&t=8630

aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Re: Close Tabs - another option

Post by aurumdigitus »

Wow :!: Deus ex machina.

On this one it never even occurred for me to search the Forum.

Another code segment to put into the XY script toolkit. Thanks for pointing the way.

Post Reply