bugGNU Octave - Bugs: bug #44605, Tab handling in GUI: Close tab...

 
 

bug #44605: Tab handling in GUI: Close tab with middle mouse button

Submitter:  Martin Kunz <mkunz>
Submitted:  Mon 23 Mar 2015 06:59:20 AM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Tue 21 Mar 2017 07:36:23 PM UTC, comment #8: 
Torsten Lilge <ttl>
Group Member
Fri 17 Mar 2017 08:20:36 AM UTC, comment #7: 

Torsten, this sounds like a good solution. Thank you very much!

Armin Müller <arm_in>
Thu 16 Mar 2017 03:55:02 PM UTC, comment #6: 

Armin, thanks for the survey.

Concerning the methods and their status in octave:


Mouse:
  click left on "X"            -> OK
  double-click left on the tab -> will be implemented
  middle click on the          -> OK
  right click and contect menu -> will be implemented

Keyboard:
  Ctrl+F4 -> OK (Windows)
  Ctrl+W  -> OK (Linux)
  here the default of the OS, provided by Qt, is used

Menu
File / Close -> OK


I cannot think of other reasons for double clicking on a tab (except for open it in a new window, which is not supported), thus I suggest to implement middle and double-click on the tab for closing, without the possibility of configuration.





Torsten Lilge <ttl>
Group Member
Thu 16 Mar 2017 11:28:33 AM UTC, comment #5: 

I made a quick survey covering 4 software products, which is not representative. In general, there is a number of common ways to close a tab (using MS Windows, maybe different on Mac and Unix). Most software is offering a number of methods in parallel, for convenience. None of them is offering all.

Mouse
  click left on the tab "X" symbol (Firefox, Notepad++, Matlab, Octave)
  double-click left on the tab (Firefox via addon, Notepad++ via setting)
  click middle on the tab (Firefox, Notepad++, Matlab)
  click right tab + context menu + close (Firefox, Notepad++, Matlab)

Keyboard shortcuts
  Ctrl + W  (Firefox, Notepad++, Matlab)
  Ctrl + F4 (Firefox, Matlab, Octave)

Menu
  File -> Close (Notepad++, Octave)

Forgot anything?! Maybe...

The other way round:

Firefox is missing
  Menu File -> Close
Notepad++ is missing
  shortcut Ctrl + F4
Matlab is missing
  double-click left on the tab
  Menu File -> Close (since R2012b ribbon interface, I guess)
Octave is missing
  click middle on the tab (until now)
  shortcut Ctrl + W
  double-click left on the tab
  click right tab + context menu + close

=> In the sense of having functionality orthogonal across different software products, I would like to withdraw my suggestion to make this function configurable. I would rather plead to offer 5 or 6 of the above mentioned methods in parallel.

Armin Müller <arm_in>
Wed 15 Mar 2017 09:19:18 PM UTC, comment #4: 

Changeset
http://hg.savannah.gnu.org/hgweb/octave/rev/3cbd3caf19a7
implements the feature for the doc browser (middle mouse button).

A configurable method is possible. Are the double click and the middle button the only possible ways? Should they also work both at the same time or only one of them?

Torsten Lilge <ttl>
Group Member
Wed 15 Mar 2017 08:30:07 AM UTC, comment #3: 

Another commonly found method to close tabs is by double clicking the tab with the left mouse button, e.g.
Notepad++ (native, via "Settings -> Preferences -> Global -> Tab bar -> Double click to close document")
Firefox (via addon)
Chrome (via addon)
etc.

The present changeset is hard-coded to the middle button. Might it be possibe to make this variable?

Armin Müller <arm_in>
Tue 14 Mar 2017 10:31:54 PM UTC, comment #2: 

Changeset http://hg.savannah.gnu.org/hgweb/octave/rev/ea143f4f76a5 adds the possibility to close editor tabs with the middle button. An implementation of this feature for the doc browser will follow.

Torsten Lilge <ttl>
Group Member
Tue 02 Jun 2015 04:32:17 PM UTC, comment #1: 

Retagging release from 4.0.0-rc1 to 4.0.0.

John W. Eaton <jwe>
Group administrator
Mon 23 Mar 2015 06:59:20 AM UTC, original submission:  

It would be very handy if one could close tabs in the GUI editor and in the GUI documentation by clicking on them with the middle mouse button. I guess this would feel intuitive to many users, as Firefox and probably most other browsers support that feature.

Martin Kunz <mkunz>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by arm_in (Posted a comment)
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by mkunz (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-03-21 ttl StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2017-03-16 ttl StatusReady For Test In Progress
    2017-03-14 ttl StatusNone Ready For Test
    2017-03-14 ttl Release4.0.0 dev
        Operating SystemMicrosoft Windows Any
    2015-06-02 jwe Release4.0.0-rc1 4.0.0

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code