/dired-open-with

An 'Open with' dialog for opening files in external applications from Dired.

Primary LanguageEmacs LispGNU General Public License v3.0GPL-3.0

M-x dired-open-with

Right-clicking a file in most GUI file managers provides an “Open with” menu for choosing which application should be used. This package implements such functionality for Emacs default file manager Dired.

images/dired-open-with.png

There is a video about helm-dired-open. You can use this package exactly the same, only the command is now M-x dired-open-with.

Installation

The package is available on MELPA

(use-package dired-open-with
  :ensure t)

Configuration

The M-x dired-open-with command works out of the box without any additional configuration. If you want to change candidates for a given file type, change your XDG settings.

Alternatives

If you don’t need an “Open with” dialog but rather open files in their default appliaction, you can use M-x dired-open or M-x dired-open-xdg from the dired-hacks package.

There is also helm-dired-open, which as the name suggests is limited to Helm. However, it provides some configuration options that this packages doesn’t have.