Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Drag-and-drop in linux

Subject: Drag-and-drop in linux

From: Øyvind

Date: 27 Sep, 2010 14:44:19

Message: 1 of 7

When I drag-and-drop an m-file into the Matlab editor window in Linux (Ubuntu 10.04), instead of opening the file for editing, it just pastes a string containing the filepath.

Any idea what setting will change this? Other programs in Ubuntu-like gedit-opens files on drag-and-drop.

Subject: Drag-and-drop in linux

From: Walter Roberson

Date: 27 Sep, 2010 14:50:22

Message: 2 of 7

On 27/09/10 9:44 AM, Øyvind wrote:
> When I drag-and-drop an m-file into the Matlab editor window in Linux
> (Ubuntu 10.04), instead of opening the file for editing, it just pastes
> a string containing the filepath.
>
> Any idea what setting will change this? Other programs in Ubuntu-like
> gedit-opens files on drag-and-drop.

I'd probably go down to the command window, type the command edit
followed by a space, and then drag and drop the file name on to the
command line.

Subject: Drag-and-drop in linux

From: Steven_Lord

Date: 27 Sep, 2010 14:55:04

Message: 3 of 7



"yvind " <oyvist@gmail.com> wrote in message
news:i7qak3$qbc$1@fred.mathworks.com...
> When I drag-and-drop an m-file into the Matlab editor window in Linux
> (Ubuntu 10.04), instead of opening the file for editing, it just pastes a
> string containing the filepath.
>
> Any idea what setting will change this? Other programs in Ubuntu-like
> gedit-opens files on drag-and-drop.

Have you tried dragging the file into the Command Window?

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: Drag-and-drop in linux

From: Øyvind

Date: 27 Sep, 2010 15:34:05

Message: 4 of 7

"Steven_Lord" <slord@mathworks.com> wrote in message <i7qb88$7qu$1@fred.mathworks.com>...
> Have you tried dragging the file into the Command Window?

Yes. That just pastes the pathstring into the window.

Subject: Drag-and-drop in linux

From: Øyvind

Date: 27 Sep, 2010 15:38:06

Message: 5 of 7

Walter Roberson <roberson@hushmail.com> wrote in message > I'd probably go down to the command window, type the command edit
> followed by a space, and then drag and drop the file name on to the
> command line.

Thanks, but that's pretty inconvenient: Type 'edit', drag file, move cursor then delete 'file://' from beginning of string, then press 'enter'. Even more inconvenient for several files.

I use this feature all the time in windows, but lots of little stuff is different in ubuntu.

Subject: Drag-and-drop in linux

From: Øyvind

Date: 28 Sep, 2010 11:57:04

Message: 6 of 7

I'm just going to give this a bump and a last try. Does no-one know how to fix this?

Subject: Drag-and-drop in linux

From: Simon Schultz

Date: 14 Mar, 2011 13:53:05

Message: 7 of 7

I'd like to bump this up - drag and drop into the matlab editor is a really convenient feature that I got used to on Mac OS X - it would be very nice if this was implemented for linux also. Presumably it can't be too hard, given it is already dropping the filepath.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us