4

Replace the on/off "Return to last active tab when closing current tab" setting with a three-way selector for "Selected tab after closing current tab".

The three options should be:

  • Last active tab
  • Tab before current tab
  • Tab after current tab

There is currently no way to select "tab before current tab".

Currently, there is a setting "Return to last active tab when closing current tab". With five tabs open, if I click on tab 1, then tab 3, then press Cmd-W, I will be left on tab 1 if this setting is active, and tab 4 if this setting is not active.

What I want is to be left on tab 2: the tab immediately before the current tab in the tab order, rather than tab 4, which is the tab after. (With a horizontal tab bar, this would be the tab to the left of the current tab)

    Hey! Are there any browsers that currently offer this feature? What would the settings for this look like? Is there some workflow that significantly benefits from this being added because overall the request seems to be very specific.

    The Orion developer team is small, and the resources need to be used wisely so it'd be helpful if you could further explain the significance of this suggestion.

    7 days later

    @laiz Yes — Vivaldi allows this out of the box:

    …and Firefox can be configured to do this with the Select After Closing Current extension (which sadly doesn't work in Orion).

    Most IDEs like RubyMine activate left, too — it seems to just be browsers (and VSCode, which is Electron-based and so inherits browser behaviour) which activate right. I can't get my head around it; it's just confusing and wrong to me, and programs that don't let me configure it are much more difficult to use as a result.

    Additionally, even with Orion's current behaviour, it seems wrong when closing the rightmost tab in a window. If I have tabs 1, 2, 3, 4 with tab 4 active and I press ⌘W, tab 1 is now active. I would expect Orion to not wrap if there isn't a tab available to the right of the current one, thus leaving tab 3 active.

    Of course, the equivalent if the option I've requested was enabled would be closing tab 1 and having tab 2 become active rather than tab 4 — in other words, rather than wrapping around, it should just go the other way. Again, that's how non-browsers do it.

      No one is typing