bugGNU Octave - Bugs: bug #49054, Doubling clicking and m-file...

 
 

bug #49054: Doubling clicking and m-file should simply open the file in octave's editor

Submitter:  None
Submitted:  Sat 10 Sep 2016 06:23:00 PM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Duplicate Assigned to:  None
Originator Name:  Jason Moore Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.0.0
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Tue 27 Sep 2016 10:21:26 PM UTC, comment #7: 

I think we have enough existing bugs that are open on adding a feature to allow Octave to open a file in its editor and register that action with the OS desktop environment, closing as a duplicate.

Mike Miller <mtmiller>
Group Member
Sun 11 Sep 2016 03:50:42 PM UTC, comment #6: 

That preference setting was added after 4.0, it will only appear in development versions and 4.2.

I think it's clear from the original comment what is being described is opening a file from the OS, not opening a file from within Octave's "File Browser" panel.

Mike Miller <mtmiller>
Group Member
Sun 11 Sep 2016 02:27:17 PM UTC, comment #5: 

@Mike:
I figured that as well but "file explorer" is a bit ambiguous. At least it works in Octave's own file browser.

@OP / Jason:
Do you run the Octave GUI? if yes, click in the main menu on Edit, then Preferences, then File browser tab. The setting should be there.

Philip Nienhuis <philipnienhuis>
Group Member
Sun 11 Sep 2016 05:53:18 AM UTC, comment #4: 

I do not see the option "Extensions of files to be opened in the default text editor" in my preferences at all.

Anonymous
Sat 10 Sep 2016 10:59:25 PM UTC, comment #3: 
Mike Miller <mtmiller>
Group Member
Sat 10 Sep 2016 09:53:08 PM UTC, comment #2: 

I think the OP is talking about the OS file browser.

This would require a couple of changes, probably need to be reported as separate bugs:

  • the ability to call Octave with a foo.m file name, possibly with some extra command-line option, and have that file be opened in the Octave editor
  • the ability to send Octave some kind of IPC signal to open a file name in the editor when Octave is already running
  • the (possibly optional) ability for Octave to know that an instance of Octave is already running, and send an IPC signal to the other instance of itself to open the file


I think users will want the ability to do both actions from the OS file browser, either run an m file as an executable script with Octave (calling Octave as an interpreter), or edit it with Octave's editor (calling Octave as an editor/IDE).

Mike Miller <mtmiller>
Group Member
Sat 10 Sep 2016 06:54:00 PM UTC, comment #1: 

FWIW, in the mxe-octave binaries for windows it works OOTB the way you wish. Must be some default setting then.
In the Edit | Preferences pane => file browser tab, I do see ".m" listed in the "Extensions of files to be opened in the default text editor" setting. Can you check if that also set in your preferences?

Philip Nienhuis <philipnienhuis>
Group Member
Sat 10 Sep 2016 06:23:00 PM UTC, original submission:  

Now that Octave opens a GUI I think that it would be preferable that the GUI persists after doubling clicking an m-file in the file explorer in Ubuntu (and other applicable systems). For me, and maybe others, when I double click an m-file I'm mostly interested in inspecting its text not executing the m-file.

Couple other notes of this unexpected behavior:

https://bugs.launchpad.net/ubuntu/+source/octave/+bug/1524251
https://answers.launchpad.net/ubuntu/+source/octave/+question/278620

I think double clicking an m-file, when Octave is associated with that m-file by default by the operating system, the file should simply open the octave gui and display the file in the editor. If the user wants to execute the file they would use a gui button or matlab command.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by None (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-09-27 mtmiller StatusNone Duplicate
        Open/ClosedOpen Closed
    2016-09-27 mtmiller Dependencies- Depends on bugs #43343
    2016-09-27 mtmiller Dependencies- Depends on bugs #44368
        Dependencies- Depends on bugs #42603

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code