bugGNU Octave - Bugs: bug #57447, have a 'switch panes' command

 
 

bug #57447: have a 'switch panes' command

Submitted by:  Muhali <muhali>
Submitted on:  Thu 19 Dec 2019 11:06:18 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

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

( Jump to the original submission)

Tue 14 Jan 2020 12:55:19 PM UTC, comment #10: 

Fine with me

Philip Nienhuis <philipnienhuis>
Project Member
Tue 14 Jan 2020 06:00:38 AM UTC, comment #9: 

@Philip: I am about to push Dan's patch with the shortcuts for un-/docking and closing the current widget. However, I am wondering if it would be more convenient to have only one shortcut for toggling the dock state, i.e. Ctrl+Alt+D for undocking and docking again. What do you think?

Torsten Lilge <ttl>
Project Member
Mon 23 Dec 2019 01:39:12 PM UTC, comment #8: 

The new shortcut for changing to the latest widget works for me.

Closing report as fixed.

Pantxo Diribarne <pantxo>
Project Member
Mon 23 Dec 2019 02:25:44 AM UTC, comment #7: 

I have pushed cset http://hg.savannah.gnu.org/hgweb/octave/rev/cbd4d97100b3 with the new functionality. For staying in line with the Ctrl+number shortcuts for showing the widgets, I have chosen Ctrl-Alt-0 as default for switching the the previously used widget.

Torsten Lilge <ttl>
Project Member
Fri 20 Dec 2019 04:16:57 PM UTC, comment #6: 

Regarding Ctrl+9, what if we decide to add some more toplevel dock widgets?
What about Ctrl+F6, which is already used in some application (operating systems?) for switching tabs  or panes? Ctrl-Arrow (at least left and right) are used for moving the cursor one word left/right in the editor.

Torsten Lilge <ttl>
Project Member
Fri 20 Dec 2019 12:52:39 PM UTC, comment #5: 

I just noticed the switching text editor tabs already works with Ctrl+PageUp/Down and it is not fortuitous, it is defined in the shortcut preferences.

Pantxo Diribarne <pantxo>
Project Member
Fri 20 Dec 2019 12:25:33 PM UTC, comment #4: 

Note that we have two levels of tabbed (or multi window) widgets: the "outer" ones ("command window", "file browser", "editor" ...), and "inner" ones (text editor windows, variable editor windows) 
We already have Ctrl+Number to show the "outer" widgets, e.g. Ctrl+0 and Ctrl+4 for the command window and the editor respectively. So why not Ctrl+9 to switch between most recently used ones (as Alt+Tab does for applications on most platforms).

As for the "inner" widgets, maybe Ctrl+PageDown/Up, like in Firefox and gnome-terminal.

Pantxo Diribarne <pantxo>
Project Member
Fri 20 Dec 2019 10:51:30 AM UTC, comment #3: 

Maybe Ctrl-arrow or Alt-arrow?

[OT]
On a related note, in my cross-builds I include the attached patch by Dan Sebald that provides shortcuts for docking & undocking panes. I use those quite regularly and IMO it would be nice to have this one applied too, but possibly it needs some stuff in the shortcut manager I think.
I upload it here again so that it isn't forgotten.

I have lost track on which bug report it came from; the patch is from June 2018 IIRC. The bug report could be about VE subpanes but I can't find it :-(

(file #48097)

Philip Nienhuis <philipnienhuis>
Project Member
Thu 19 Dec 2019 09:49:56 PM UTC, comment #2: 

the shortcut is not the issue, as long as there would be a command for switching panes in the preferences.

Muhali <muhali>
Thu 19 Dec 2019 09:26:57 PM UTC, comment #1: 

This is not hard to implement, but Ctrl-Tab is already in use as the default shortcut for indenting selected lines in the editor. Are there any suggestions for another shortcut? Maybe Ctrl-B?

Torsten Lilge <ttl>
Project Member
Thu 19 Dec 2019 11:06:18 AM UTC, original submission:  

like Matlab and many others, octave should have a command (and shortcut Ctrl+Tab) to switch panes.

My normal use case for octave is to have editor and command pane open and switch back and forth between them. A corresponding shortcut would make my life much easier.

Muhali <muhali>

 

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

Attach Files:
   
   
Comment:
   

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by muhali (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-12-23 pantxo StatusReady For Test => Fixed
        Open/ClosedOpen => Closed
    2019-12-23 ttl StatusNone => Ready For Test
    2019-12-20 philipnienhuis Attached File- => Added octave-shortcut_keys_for_gui_widget_dock_undock_close-djs2018jun10.patch, #48097

    Back to the top


    Powered by Savane 3.5