all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Philip K." <philip@warpmail.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Updating dired-guess-shell-alist-default
Date: Tue, 07 Jul 2020 18:10:24 +0200	[thread overview]
Message-ID: <871rln5mrz.fsf@warpmail.net> (raw)
In-Reply-To: <83a70bs90b.fsf@gnu.org> (message from Eli Zaretskii on Tue, 07 Jul 2020 17:19:16 +0300)

Eli Zaretskii <eliz@gnu.org> writes:

>> From: "Philip K." <philip@warpmail.net>
>> Date: Tue, 07 Jul 2020 10:50:31 +0200
>> 
>> I wonder if anyone else shares my point of view: while useful,
>> dired-do-shell-command seems somewhat outdated. Certain file formats
>> haven't changed much, and their handling is still ok (.patch, .tar.*,
>> .sig) but especially image, video files and documents suggest tools
>> that don't seem to be installed by default on most systems (xloadimage,
>> xpdf, ...).
>> 
>> Of course this can be mitigated by using dired-guess-shell-alist-user,
>> but I think that this shouldn't be necessary. I usually just map all
>> images, videos and documents to xdg-open, and changing the values to
>> something like this wouldn't be bad a bad idea, if you ask me
>> (especially because xdg-open doesn't block).
>> 
>> So if not xdg-open (at least on GNU/Linux and other XDG-compliant
>> systems), should the default value be changed to something that makes
>> dired-do-shell-command more useful, out of the box?
>
> Can you show a concrete proposal, like which file type would you
> suggest to handle by what command?

I think it doesn't make sense to duplicate the functionalities that
already exist in modern desktop environments, so I'd propose remapping
most media files to "xdg-open", if available, which should be the case
on GNU/Linux, *BSD and similar operating system. AFAIK macOS has "open",
but I don't know if windows has an equivalent for that kind of a
system.

I imagine a option like "dired-guess-fallback" with a default value
based on the system one is running would make sense from a user
perspective.

It seems like a good compromise, because xdg-open usually does what
regular users want, even if it's configured outside of Emacs, while
power-users can be expected to customise dired-guess-shell-alist-user.

-- 
	Philip K.



  reply	other threads:[~2020-07-07 16:10 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-07  8:50 Updating dired-guess-shell-alist-default Philip K.
2020-07-07 14:19 ` Eli Zaretskii
2020-07-07 16:10   ` Philip K. [this message]
2020-07-07 18:37     ` Eli Zaretskii
2020-07-07 19:05       ` Philip K.
2020-07-07 19:24         ` Eli Zaretskii
2020-07-07 19:48           ` Stefan Monnier
2020-07-08  2:25             ` Eli Zaretskii
2020-07-08  4:12               ` Stefan Monnier
2020-07-07 19:52           ` Yuri Khan
2020-07-08  2:26             ` Eli Zaretskii
2020-07-08  2:48               ` Michael Welsh Duggan
2020-07-08  7:52                 ` tomas
2020-07-07 20:38           ` Philip K.
2020-07-08  2:28             ` Eli Zaretskii
2020-07-08  4:15               ` Stefan Monnier
2020-07-08 14:21                 ` Eli Zaretskii
2020-07-08 15:08                   ` Stefan Monnier
2020-07-08  8:28               ` Philip K.
2020-07-08 14:24                 ` Eli Zaretskii
2020-07-08 14:33                   ` Philip K.
2020-07-09 16:21 ` Philip K.
2020-07-11 10:07   ` Eli Zaretskii
2020-07-11 11:07     ` Philip K.
2020-07-11 11:15       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871rln5mrz.fsf@warpmail.net \
    --to=philip@warpmail.net \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.