When one tab only left, allow us to use the "Close tab" keyboard shortcut to close that (even if that'll close the window)

Bug #1184984 reported by Contribucious
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNOME Terminal
Fix Released
Wishlist
gnome-terminal (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Would be cool if, as on Google Chrome (and probably Chromium in fact) but also as on Terminal (on OS X), when one tab only left, we can still use the "Close tab" keyboard shortcut to close this tab, even if the window is closed then.

Currently if we've many tabs, we can use this shortcut to close all the tabs, but this behavior is blocked on the last tab and we need to switch to the "Close window" keyboard shortcut.

This behavior is understandable. However, the last tab is still a tab! So, it seems normal to allow us to close this (last) tab with the shortcut "Close tab". It's logical too.

So, "Close window" still is useful, for example to close 10 tabs in one time.
But when we have a window with 1 tab / 1 tab left, as it's a tab, the "Close tab" keyboard shortcut is logical to use, even if that will close the window then (and terminate the process therefore on Linux).

I used to do this logical behavior on Terminal (on OS X). So visibly, it make sense to Apple too, not just me. ^_^
But also on all OS when using Google Chrome: having many windows with many tabs in each, and just having to keep my left hand on the "Close tab" keyboard shortcut and I can close very quickly all the tabs of the window 3, then on the window 2 (that appears because of window 3 was therefore closed), then on window 1… until 0 tab left. And at this point on GNU/Linux, this terminates all Google Chrome related processes.

N.B.: If this not becoming the new default behavior, can be added as an option/preference. Always good to let people defining the behavior they want, at least, then. :)

OS: Ubuntu 12.04.2 LTS up-to-date.
Gnome-terminal version concerned: I think all, even probably the one used in the Ubuntu 13.10 branch.

description: updated
Revision history for this message
Contribucious (contribucious) wrote :

And by the way, I see that it's the default behavior in the Terminal of LXDE (LXTerminal) too! :)
=> http://fr.wikipedia.org/wiki/LXTerminal

Changed in gnome-terminal:
importance: Unknown → Wishlist
status: Unknown → New
Changed in gnome-terminal:
status: New → Fix Released
Revision history for this message
Paul White (paulw2u) wrote :

Upstream bug showing "RESOLVED FIXED" on 2013-09-14
Works as requested in Ubuntu 18.04
Changing to "Fix Released" to close

Changed in gnome-terminal (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.