Bug 398940 - Middle click to open and close tabs
Summary: Middle click to open and close tabs
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: tabbar (show other bugs)
Version: 18.08.1
Platform: Manjaro Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2018-09-22 02:56 UTC by Andrew Crouthamel
Modified: 2019-03-02 12:42 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 19.04
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Crouthamel 2018-09-22 02:56:40 UTC
SUMMARY
It would be nice to have the middle-click action on the empty area of the tab bar open a new tab, and middle-clicking on a tab itself to close it. It would provide similar functionality as a modern web browser.
Comment 1 Nate Graham 2018-09-24 14:44:34 UTC
Paging Dr. Canabrava! :)
Comment 2 Kurt Hindenburg 2019-02-20 01:47:56 UTC
*** Bug 361756 has been marked as a duplicate of this bug. ***
Comment 3 Kurt Hindenburg 2019-02-20 01:51:02 UTC
Git commit 42eb5132e0da4860b9fdd36b916f7d8fe7dbe5b0 by Kurt Hindenburg, on behalf of Shubham Jangra.
Committed on 20/02/2019 at 01:50.
Pushed by hindenburg into branch 'master'.

Add close tab and create new tab on middle click event

Summary:
Click with the middle mouse click on a tab: close it
Click with the middle click on empty portion of tab bar creates a new tab.
This makes konsole more streamlined with default behavior
found in other tabbed applications like browsers.
GUI option to enable/disable closing tab w/ mouse button.  The default
is to have closing tab with button disabled to avoid possible data loss.

Tomaz Canabrava <tcanabrava@kde.org> also coded portion of this.
FIXED-IN: 19.04
GUI:

Test Plan: {F6618852}

Reviewers: ngraham, hindenburg, tcanabrava

Reviewed By: ngraham, hindenburg

Subscribers: emateli, thsurrel, ngraham, hindenburg, shubham, broulik, konsole-devel

Tags: #konsole

Differential Revision: https://phabricator.kde.org/D15742

M  +27   -1    src/DetachableTabBar.cpp
M  +4    -0    src/DetachableTabBar.h
M  +4    -0    src/ViewContainer.cpp
M  +7    -0    src/settings/TabBarSettings.ui
M  +4    -0    src/settings/konsole.kcfg

https://commits.kde.org/konsole/42eb5132e0da4860b9fdd36b916f7d8fe7dbe5b0
Comment 4 Patrick Silva 2019-03-02 11:31:08 UTC
is this feature already available on neon dev unstable?
I only can open a new tab with middle click.
Nothing happens when I click a tab with the mouse wheel or
with a touchpad (tap with two fingers).
Comment 5 Nate Graham 2019-03-02 12:27:38 UTC
You need to turn it on in Konsole's settings.

Also, with a touchpad, middle-click is generally three fingers, not two.
Comment 6 Patrick Silva 2019-03-02 12:42:37 UTC
(In reply to Nate Graham from comment #5)
> You need to turn it on in Konsole's settings.
It's working now. \o/

> Also, with a touchpad, middle-click is generally three fingers, not two.
Yes. But I set my touchpad to do middle click when I tap with two fingers. :)