bugGNU Octave - Bugs: bug #53712, Please allow arbitrary editor...


bug #53712: Please allow arbitrary editor window layout

Submitter:  Marshall <marsian>
Submitted:  Fri 20 Apr 2018 05:22:17 PM UTC
Category:  GUI Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Feature Request
Status:  Patch Submitted Assigned to:  None
Originator Name:  Marsian Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Jump to the original submission

Thu 20 Jul 2023 10:29:00 PM UTC, comment #10: 

While this can be an okay forum to discuss specific progress on a particular bug or patch, the general discussion forum over at octave.discourse.group is a better spot for general discussion about development.

Nicholas Jankowski <nrjank>
Group Member
Thu 20 Jul 2023 09:33:40 AM UTC, comment #9: 

Just created an account. I am the one who (impolitely) was screaming for "push" (comment #6)

If I could wish for a solution, I would say, do it as its already done with the Variable Editor. In the Variable Editor you can put the overview of the contents of a variable arbitrarily side-by-side, by using drag and drop. E.g. currently  you can put two overviews side by side and a third one below both of them.
And just as you can put overviews of variables arbitrarily side-by-side, it would be very useful to have these possibilities for the Text Editor too.

I am not familiar with the development process of Octave, but is there a way to make discussions more visible to possibly get more traction for this feature request?

Nico Greve <ngreve>
Sun 16 Jul 2023 06:09:31 PM UTC, comment #8: 

Personally a side by side editing option, similar to what you get in notepad++ or scite would be nice.

Nicholas Jankowski <nrjank>
Group Member
Sun 16 Jul 2023 04:11:54 PM UTC, comment #7: 

Since there weren't many enthusiastic replies to my initial patch, I haven't been working on this issue anymore. Unfortunately, the old patch fails in every single hunk, since the code has considerably changed since then. What feature do you need, freely configurable editor layout or "just" vertically/horizontally tiling the editor area?

Torsten Lilge <ttl>
Group Member
Sat 15 Jul 2023 10:39:10 PM UTC, comment #6: 

really need this feature. push

Tue 03 Jul 2018 08:43:24 PM UTC, comment #5: 

I suppose, you have configured an external editor in linux.

Cascading and tiling by the menu actions are of course indented for few files only. For many files, the desired layout has to be arranged manually.

Several tabbed stacks at a time are not possible with mdi subwindows as far as I know. I will have a look at the issue regarding the same file opened multiple times.

Torsten Lilge <ttl>
Group Member
Tue 03 Jul 2018 08:09:07 PM UTC, comment #4: 

I built this in mxe-octave. In linux, the editor wouldn't show up and a command "edit ode45" for example results in an error dialogue box in the form

"Could not start custom file editor
emacs +0 /file/location".

When I installed it in Windows, it opened up fine with the previous files open. Switching between cascaded/tabbed(and tiled) worked fine via the view/windows menu.

This approach would probably be acceptable when there are few files open, but it isn't very practical for my usage: I had 9 files open up from my previous session (and at times I've had more), but the cascaded view makes it hard to find the right file, and tiled views are unusably small. A standard work flow I've used in editors that allow tiled layouts is to have the majority of files in one tabbed tile set and then a specific file or two in an alternate tabbed tile set for side by side viewing/debugging.

I know work is early on this: but another problem I found was that debugging in the cascaded view ended up re-opening a file multiple times for some reason.

Marshall <marsian>
Sun 01 Jul 2018 02:26:00 PM UTC, comment #3: 

Please find attached a patch that implements an mdi area instead of a tab widget. For cascading, tabbing or tiling the editor file windows, a new menu "View/Windows" is available together with the following default shortcuts (configurable):

Tabbed View:                 Ctrl+Shift-T
Cascaded windows:            Ctrl+Shift-A
Tile Windows Vertically:     Ctrl+Shift-V
Tile Windows Horizontically: Ctrl+Shift-H

If this approach is acceptable and looks promising I would push the patch and work in the following on still missing features like, e.g., actions/shortcuts for switching and closing windows from the keyboard.

(file #44478)

Torsten Lilge <ttl>
Group Member
Wed 23 May 2018 05:22:35 PM UTC, comment #2: 

I suggest to use a QMdiArea (http://doc.qt.io/qt-5/qmdiarea.html) which allows to arrange sub windows tabbed or in arbitrary form within the main window. In contrast to dock widgets, the sub windows can not be made floatable. Even when we decide on using dock widgets, I would like to vote against making them floatable.

Torsten Lilge <ttl>
Group Member
Wed 25 Apr 2018 03:08:12 PM UTC, comment #1: 

Yes, same for the doc browser, as it might be useful to display multiple locations in the documentation simultaneously.

We were also talking on IRC yesterday about making the figure windows dockable, so those might also be candidates for display in any configuration inside a dockable figure widget.

John W. Eaton <jwe>
Group administrator
Fri 20 Apr 2018 05:22:17 PM UTC, original submission:  

It would be very nice if the editor windows could be rearranged arbitrarily (side by side, vertical, horizontal, mixed). It's a feature I've wanted for a long time and love in other text editors/ide's. I see that the variable editor (in 3.90) now has this feature, so it doesn't seem like quite as much of a long shot now... :)

Marshall <marsian>


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

Attach Files:

Attached Files
file #44478:  bug53712_ttl_v01.patch added by ttl (48KiB - text/x-patch)


Depends on the following items: None found

   bug dependencies.


Carbon-Copy List
  • -email is unavailable- added by ngreve (Posted a comment)
  • -email is unavailable- added by nrjank (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 mtmiller (Updated the item)
  • -email is unavailable- added by marsian (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-02-02 ttl Dependencies- bugs #55631 is dependent
    2018-07-01 ttl Attached File- Added bug53712_ttl_v01.patch, #44478
        StatusNone Patch Submitted
    2018-04-20 mtmiller Severity3 - Normal 1 - Wish

    Back to the top

    Powered by Savane 3.13-9c15.
    Corresponding source code