In Emacs’ Dired, You could conveniently move files from outside into Emacs by simply dragging them there.

Drag files in dired

That is effective.

Emacs has been my faithful companion for over 5 years, and I just stumbled upon this remarkable feature minutes ago.

Typically, I rely on async-shell-commands to open the current buffer directory in Windows 10’s File Manager, then move files from folder to folder.

But, now, this seeming-trival discovery has greatly enhanced my workflow, instill in me a strong sence that Emacs not only coexists within the operating system, but rather embodies the operating system itself.

While it is true that Windows does not support dragging files to external locations, I seldom encounter such a requirement in my day-to-day workflows.

Have you ever had such an experience? Discovered an amazing feature after a long time using Emacs?

You are viewing a single thread.
View all comments
1 point

Set `dired-mouse-drag-files` to t, and you can also drag file from dired to other programs!

permalink
report
reply
1 point

Yes, it not support Windows temporarily:

This feature is supported only on X Windows, Haiku, and Nextstep (macOS or GNUstep

That does not matter at all, I rarely have such a requirement to move file out from emacs, since it could easily move around within Emacs.

permalink
report
parent
reply
1 point

This feature is supported only on X Windows

Friendly correction: It’s called the X Window System, X11, or simply X (Xorg now being the standard implementation of it). I tell you this only because if you call it “X Windows” it sounds like you don’t know better. :)

permalink
report
parent
reply
1 point

Yes, I understand it better now.

permalink
report
parent
reply
1 point

Doesn’t seem to work with PGTK for me.

permalink
report
parent
reply
1 point

PGTK

thank you, I will try it.

permalink
report
parent
reply
1 point

if i have two dired splits, can i drag a file from one to the other this way?

permalink
report
parent
reply

Emacs

!emacs@communick.news

Create post

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

  • Windows
  • Mac OS X
  • GNU/Linux and BSD (Just get it from your distribution’s package manager)

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for “emacs” and “vi” link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

Community stats

  • 18

    Monthly active users

  • 562

    Posts

  • 2.4K

    Comments