(
Jump to the original submission)
Thu 16 Mar 2017 01:02:29 PM UTC, comment #9:
I have opened a separate bug report (bug #50559) for my issue in comment #4, #5, #7, and #8). This seems to be a broken (in linux) feature, and not only a wish (as is this bug report here).
|
Thu 16 Mar 2017 01:17:13 AM UTC, comment #8:
@Harmut: your wish works for me in Octave 4.2.1 under Windows.
And my other comment pertained to the command window, not the editor window.
|
Tue 14 Mar 2017 07:07:26 PM UTC, comment #7:
No, my wish fromm comment #4 is NOT yet implemented in Octave 4.2.1.
The current behavior still is:
- You have an m-file open in the GUI editor.
- you drag and drop a second m-file to the GUI editor, to be precise you drop it onto the text area of the first m-file.
- current result: The string "file:///path/to/file.m" is inserted into the code of the first m-file.
- my expected behavior (i.e. my wish) would be for this common usecase: open the second m-file as an additional tab in the GUI editor.
|
Mon 13 Mar 2017 11:57:42 PM UTC, comment #6:
May I suggest that when an m-file is dropped in the command window, Octave should run it, i.e., calling
run('\path\to\file.m')
Currently, dropping only copies the file path:
\path\to\file.m
|
Mon 13 Mar 2017 11:55:12 PM UTC, comment #5:
It seems that @Hartmut's request has already been implemented as of version 4.2.1.
|
Sun 20 Nov 2016 07:46:24 PM UTC, comment #4:
ADDITIONAL WISH: Drag and drop to "text area" of m-file editor.
I regularly use the nice feature "drag and drop m-file to GUI editor" to open the file there.
But this feature currently (Octave 4.2.0) only works when I drop it to the "PANE AREA" of the editor, I mean the space between the editor icons and the editor text area. The space where all the names of the currently opened m-files are listed.
Quite often I happen to drop m-file also to the TEXT AREA of the GUI editor. In this case the editor just inserts the file name into the code, some text like "file:///home/my_user/my_script.m". I would very much prefer to also open this m-file in a new editor pane in this case.
|
Thu 17 Apr 2014 10:43:05 PM UTC, comment #3:
Win console drag and drop: http://hg.savannah.gnu.org/hgweb/octave/rev/41489b96ebca
|
Wed 16 Apr 2014 10:33:36 PM UTC, comment #2:
Partial implmentation done with changeset http://hg.savannah.gnu.org/hgweb/octave/rev/992b6354c8c6 that provides drag and drop for the editor pane and unix command window.
|
Mon 03 Feb 2014 06:35:45 PM UTC, comment #1:
did a little research and found this:
void QsciScintillaBase::dropEvent(QDropEvent *e)
|
Mon 03 Feb 2014 11:47:21 AM UTC, original submission:
dropping file in the editor would edit it.
dropping file in the command window would run it,
if it has .m extension, otherwise try to load it as data.
dropping file in the file browser would copy it,
with confirmation dialog.
dropping file in the workspace dock would try to load it as data.
|
(Note: upload size limit is set to 16384 kB, after insertion of the required
escape characters.)
Attach File(s):
Comment:
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Follow 2 latest changes.