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?

  • mickeyp@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    You can drag files into many different places and have the drop action do different things. The compose email interface will automatically attach the dragged files as attachments.

    Another minor point: if you use VMWare workstation as I do, you can drag files from the host straight into an Emacs buffer. I’m sure this also works for other hypervisors like Virtualbox.