Matthew Fidler | 9 Feb 18:49
Picon
Gravatar

Drag and drop files into ESS buffers

All,

I have created a ess drag and drop component. If you drag a CSV into an R
buffer, it writes the appropriate code to read the file.  It is
customizable to other ESS languages, dialects, and files.

Eventually I may put this on some repo somewhere, but currently it is at:

https://github.com/mlf176f2/ess-dnd

Matt.

	[[alternative HTML version deleted]]

______________________________________________
ESS-help <at> r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Vitalie Spinu | 10 Feb 13:20
Picon
Gravatar

Re: Drag and drop files into ESS buffers


>>>> Matthew Fidler <matthew.fidler <at> gmail.com>
>>>> on Thu, 9 Feb 2012 11:49:02 -0600 wrote:

  > I have created a ess drag and drop component. If you drag a CSV into an R
  > buffer, it writes the appropriate code to read the file.  It is
  > customizable to other ESS languages, dialects, and files.

  > Eventually I may put this on some repo somewhere, but currently it is at:

  > https://github.com/mlf176f2/ess-dnd

This sounds interesting. I think it's a more general idea - configure
dnd actions in accordance to the major mode. It should be a hook or
custom func in dnd itself. May be it's worth pushing to dnd.el
authors. Moreover several actions might be possible and a menu should
pop-up.

I tested it. You forgot to tell us about

(setq ess-drag-and-drop-active t)

to activate it. Also it's the ess-mode buffers and not the R buffer
where the dragging should go.

A couple of comments/ideas.

I am a dired and sunrise-commander user. So I would be interested in
dragging from a dired buffer. Any ideas?

(Continue reading)


Gmane