Ctrl+w close tab

I've been searching around for a bit, and I looked at all the customize/key/hotkey options and I just cannot find a way to set close tab, I found the open new tab hotkey but nothing for close tab. I was actually a bit surprised that ctrl+w wasn't the default for it, it's such a common shortcut. If anyone knows of a way to set this I would be very appreciative.

Also, I noticed they added tab groups, but I don't see any way to actually display tabs for said groups, if anyone is familiar with the firefox tabgroups manager addon it displays tabs for the tabgroups allowing you to quickly hop between the group sets. I'd really love to get it setup the same way.

  1. Go TABCLOSE
  2. I am not familiar with Firefox, neither I use it, but I think you can set up different styles with Styles -Tab control to the same effect.

( Xyzzy beat me to the reply so there's a bit of duplication here. :slight_smile: )

Create a hotkey like this:

You can show toolbar buttons or menu items for tabgroups by putting the Go TABGROUPLIST=icons (remove the =icons part if you don't want icons) on a toolbar or menu. It'll turn into a list of your groups when you exit customize mode.

Xyzzy's suggestion of using Styles instead of Tab Groups is also a good one if you're not already using Styles for something else. That would let you have the tabs-of-tabs that you want.

ah thanks to both of you ;->

just tried this and it works great, but unfortunately if you hit CTRL-W too many times it will close the whole pane - essentially turning a dual pane lister into a single pane lister. is there any way to prevent this from happening?

(apart from not hitting it too many times :smiley:)

If your aim is to tidy-up and close all tabs except one, use Go TABCLOSEALL (it won't close the current tab).

i prefer to close one at a time. it seems like there's no option to prevent the last tab from closing. maybe it's time to submit a feature request :slight_smile:

thanks leo

I can see how it's annoying in Firefox where (unless you change about:config) you can close the current tab, without realising it's the last/only one, and end up shutting down the whole program and having to start it again...

...but in Opus it takes no time to re-open the dual display if you do that by accident.

You could stick Set DUAL=Toggle,Source on ctrl-e or similar so if you accidentally close the last tab with ctrl-w you can re-open the dual display with the letter next to it.

If you always want your listers to be dual-display you could add Set DUAL=On,Source to the ctrl-w hotkey so that after closing the tab it ensures dual-display is still on.

well, the reason i don't want to close the last 'tab' in the pane is because i want that folder to remain open.
adding a new toggle hotkey is not an option because when turning dual display off, Opus 'forgets' what folder was open.
Set DUAL=On,Source is equally bad for obvious reasons.

in firefox there is an option to prevent the final tab from closing. i sent a request asking for a similar feature here.

Opus doesn't forget if you tell it to remember:

Set DUAL=Toggle,Source,Remember

But I'm confused:

[ul][li]If you want to close all tabs but one, select the one you want to keep and use the command that closes all other tabs.
[/li]
[li]If you want to consider closing or keeping each tab individually, why are you closing one you want to keep?[/li][/ul]

haha well i suppose my clumsiness is to blame :slight_smile:
it's all about accidentally closing the last tab (lister pane). i don't necessarily want to close all but one - it's just that in firefox i would sometimes forget i don't have any tabs open then hit CTRL-W and lose my place. not a huge convenience, but definitely an interruption of work flow. it just seems simpler to prevent it from happening than to work around the problem or to solve it after the fact.