Add a command to view files in the browser to dired

* lisp/dired.el (dired-mode-map): Add the `W' command
(bug#18810).
This commit is contained in:
Lars Ingebrigtsen 2015-12-25 20:36:54 +01:00
parent b563715a2d
commit 65c64058b8
3 changed files with 12 additions and 0 deletions

View file

@ -1414,6 +1414,13 @@ names into arguments for other Emacs commands. It also displays what
it added to the kill ring, so you can use it to display the list of
currently marked files in the echo area.
@kindex W @r{(Dired)}
@findex browse-url-of-dired-file
If you have an HTML file in the file listing, it can be useful to
view that file with a browser. The @kbd{W}
(@code{browse-url-of-dired-file}) command will use the standard
configured browser to view that file.
@kindex ( @r{(Dired)}
@findex dired-hide-details-mode
@vindex dired-hide-details-hide-symlink-targets

View file

@ -900,6 +900,10 @@ compress many marked files into a single named archive. The
compression command is determined from the new
`dired-compress-files-alist' variable.
+++
*** `W' is now bound to `browse-url-of-dired-file', and is useful for
viewing HTML files and the like.
** Obsolete packages
---

View file

@ -1538,6 +1538,7 @@ Do so according to the former subdir alist OLD-SUBDIR-ALIST."
(define-key map "u" 'dired-unmark)
(define-key map "v" 'dired-view-file)
(define-key map "w" 'dired-copy-filename-as-kill)
(define-key map "W" 'browse-url-of-dired-file)
(define-key map "x" 'dired-do-flagged-delete)
(define-key map "y" 'dired-show-file-type)
(define-key map "+" 'dired-create-directory)