Bug 234756 - wish list - konsole tabs function like firefox for new & close tab
Summary: wish list - konsole tabs function like firefox for new & close tab
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: tabbar (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: LO wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
: 282443 306616 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-18 23:41 UTC by bld.temp
Modified: 2021-07-10 13:29 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bld.temp 2010-04-18 23:41:32 UTC
Version:            (using KDE 4.4.2)
OS:                Linux
Installed from:    Ubuntu Packages

The new and close tab buttons on konsole are useful, but if they positioned as they are on the tabs in firefox, I think it would be easier to use and require less mouse travel.

I spend a great deal more time browsing than I do with konsole, and I find myself needing to think about how to deal with the tabs when I use konsole.  Especially with the close tab button, which works (as it should) on the current tab, but I sometimes hit it when I'm on the wrong tab because with ff, the close button is on the tab itself, and no thought is required to kill the correct tab.  A bit more color on the buttons might help draw the eye in the right direction as well, like the green plus and red x.

Best regards
Comment 1 Kurt Hindenburg 2011-07-31 02:43:40 UTC
I tend to agree with the one caveat it would make the tabs wider (ie less room for tab text).
Comment 2 Jekyll Wu 2011-08-29 13:38:32 UTC
I have some different idea about the close button.

There is a important difference between webpages and terminal processes: most webpages are stateless, while terminal processes are not. Closing a tab in firefox accidentally is generally not a big deal, because that closed webpage can be reopened easily without loss . Closing a tab in konsole accidentally often causes damage to the users: interrupted compilation, interrupted mv command, interrupted tar command, etc

AFAIK, it has be requested several times to allow users to close tab by middle-clicking the tab , but is always refused. And there is a feature request(#126930) for locking the input of tab so that it won't be closed in accident. So I think the general idea is to make it harder to accidentally close a tab, not the opposite. 

Personally, I think there is already too many ways to close a tab: Ctrl+D for a shell, keyboard shortcut(Ctrl+Shift+Q), context menu of the terminal area, context menu of the tab, and the current close button. And even Alt+F4 can be used to close a tab, if user would like that.

By the way, gnome-terminal provides the close button on the tab, but there has been a request[1] to remove that close button for a long time.

[1] - https://bugzilla.gnome.org/show_bug.cgi?id=335453
Comment 3 Jekyll Wu 2011-09-20 23:06:56 UTC
*** Bug 282443 has been marked as a duplicate of this bug. ***
Comment 4 Praveen Thivari 2011-09-21 09:38:52 UTC
It's ok. I understand that in such cases decision has to be taken more carefully. But if there are too many ways to close the tab then it means that users want to have so many shortcuts to close terminal tab (which may indicate that there is no single, simple way to close it.)
If for closing a tab so many keyboard options are provided then y not give just one simple solution to this (That is one keyboard short cut and another GUI for closing). 

The feature may not be set by default, but it should be provided in settings for those who prefer that way.

Anyway if terminal is being closed accidently we already get a notification that  the tab being closed already has some process going on(if it all there is any). So I dont think there is any need to worry.

I request the developers to look into this aspect as well.
Comment 5 Jekyll Wu 2012-01-23 05:36:50 UTC
(In reply to comment #4)

> If for closing a tab so many keyboard options are provided then y not give just
> one simple solution to this (That is one keyboard short cut and another GUI for
> closing). 

Because the close button on each tab is much more likely to be accidentally
triggered than other methods, IMHO. And other methods does not clutter the
interface so much as the close button on each tab does.

> The feature may not be set by default, but it should be provided in settings
> for those who prefer that way.

Yes, it should be configurable and DISABLED by default.


> Anyway if terminal is being closed accidentally we already get a notification
> that  the tab being closed already has some process going on(if it all there is
> any). So I dont think there is any need to worry.

Good point. But that warning does not always work. Konsole give that warning
only when it knows there is some foreground process running. A typical example
is running vim(foreground process) in a zsh session/profile. However:

1). if a user is running a ssh session directly, then there is no way for konsole
to know whether these is foreground process running on a remote server. So no
warning for accidental closing.

2). if a user is running a normal shell session without any foreground process,
Konsole does not give any warning when closing it. That does not sounds
like a big deal, but once a session is accidentally closed, its valuable
scrollback is lost forever. That is the important difference between
shells and webpages.

Although I personally do not like the idea of close button on each tab, I can understand the reason behind this request. If someone likes it and plans to implement it, please do consider my comments and all comments in that bug report of gnome-terminal before coding. Please make it configurable and disabled by
default.
Comment 6 Kurt Hindenburg 2012-09-11 15:35:09 UTC
*** Bug 306616 has been marked as a duplicate of this bug. ***
Comment 7 Podagric 2021-07-10 13:29:56 UTC
I believe this has been resolved, right?
It is currently possible to define several ways to show/hide tab buttons.