all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Howard Melman <hmelman@gmail.com>
To: 18132@debbugs.gnu.org
Subject: bug#18132: Time for a smarter dired-guess-shell-alist-default? (dired-x.el)
Date: Sat, 23 Oct 2021 13:57:11 -0400	[thread overview]
Message-ID: <lyv91neia0.fsf@new-host-2.home> (raw)
In-Reply-To: <CAOnWdohO7eOa9Pj5mAPv9f2+699F1XSYFhT_E_u3iMzuuujDew@mail.gmail.com>


>> xdg-open uses the underlying desktop system's MIME infrastructure. For a
>> GNU system, that would most typically be GNOME, and its "gio open" (or on
>> older systems, gvfs-open) command.
>
> I don't see that shooting away blindly to xdg-open is satisfactory; the
> user should be able to a) know which command is being run before running
> it and b) modify it on the fly.  Maybe I want to open PDF:s first with
> one and then another PDF reader to see if it looks the same, just as I
> would be able to from a graphical file manager.

In the spirit of "we need to add stuff here, without taking
anything away" can I suggest just adding a new dired-do-open
command that calls out to xdg-open on gnu/linux or open on
darwin or windows.  Such a command has been written many
times and people add it to their local configs.  I have it
bound on X in dired and use it far more often than I do M-!.

Such a command emulates what double clicking on an icon does
which most of the time is what a user wants (because it's
configured it do what their most common app need is).

Having emacs provide the command means it could be correct
reguarding shell quoting and other small issues that people
might get wrong on their own.

For those that want more control either in picking the
command that is run or seeing it beforehand, they can use
and configure dired-guess-shell-alist-default.

-- 

Howard






  parent reply	other threads:[~2021-10-23 17:57 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-28 18:26 bug#18132: Time for a smarter dired-guess-shell-alist-default? (dired-x.el) Reuben Thomas
2014-07-28 18:44 ` bug#18132: Sample code Reuben Thomas
2014-07-29 23:49 ` bug#18132: Time for a smarter dired-guess-shell-alist-default? (dired-x.el) Juri Linkov
2014-07-30  9:12   ` Reuben Thomas
2014-07-30 16:32     ` Juri Linkov
2014-07-30 16:44       ` Reuben Thomas
2014-08-04 23:45         ` Juri Linkov
2014-08-05  9:41           ` Reuben Thomas
2021-10-23  5:25             ` Stefan Kangas
2021-10-23  7:44               ` Eli Zaretskii
2021-10-23  8:16                 ` Stefan Kangas
2021-10-23  8:34                   ` Eli Zaretskii
2021-10-23  9:48                     ` Stefan Kangas
2021-10-23 11:48                       ` Eli Zaretskii
2021-10-23 13:06                       ` Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-23 13:20                         ` Eli Zaretskii
2021-10-23 13:01                   ` Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-23 13:56                     ` Stefan Kangas
2021-10-23 14:03                       ` Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-23 15:45                         ` Stefan Kangas
2021-10-23 17:17                           ` Gregory Heytings
2021-10-23 20:53                           ` Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-24  6:02                             ` Eli Zaretskii
2021-10-24  7:56                               ` Juri Linkov
2023-11-23 17:49                                 ` Juri Linkov
2023-11-23 19:40                                   ` Eli Zaretskii
2023-11-24  7:51                                     ` Juri Linkov
2023-11-24 14:24                                       ` Eli Zaretskii
2023-11-25 18:10                                         ` Juri Linkov
2023-11-26 10:37                                           ` Eli Zaretskii
2023-11-27 17:32                                             ` Juri Linkov
2023-11-28 17:05                                               ` Juri Linkov
2023-11-28 17:35                                                 ` Eli Zaretskii
2023-11-29  7:09                                                   ` Juri Linkov
2023-11-29 13:07                                                     ` Eli Zaretskii
2023-12-02 17:44                                                       ` Juri Linkov
2023-12-02 18:37                                                         ` Drew Adams
2023-12-03 17:04                                                           ` Juri Linkov
2023-12-03 21:16                                                             ` Drew Adams
2023-12-06 17:28                                                               ` Juri Linkov
2023-12-07 17:33                                                                 ` Juri Linkov
2023-12-07 17:48                                                                   ` Eli Zaretskii
2023-12-08  7:37                                                                     ` Juri Linkov
2023-12-08  8:08                                                                       ` Eli Zaretskii
2023-12-09 17:13                                                                         ` Juri Linkov
2024-05-22  6:16                                                                           ` Juri Linkov
2024-05-22 12:42                                                                             ` Eli Zaretskii
2024-05-23  6:19                                                                               ` Juri Linkov
2024-05-23  7:16                                                                                 ` Eli Zaretskii
2024-05-23 17:31                                                                                   ` Juri Linkov
2024-05-23 18:15                                                                                     ` Eli Zaretskii
2024-05-24  6:44                                                                                       ` Juri Linkov
2024-05-24  7:31                                                                                         ` Eli Zaretskii
2024-05-24 17:56                                                                                           ` Juri Linkov
2021-10-23 17:57                       ` Howard Melman [this message]
2021-10-23 18:29                         ` Juri Linkov
2021-10-23 19:22                           ` bug#18132: [External] : " Drew Adams
2021-10-24 16:35                           ` Howard Melman
2021-10-24 19:08                             ` Juri Linkov
2021-10-24  5:10                       ` Thierry Volpiatto
2014-07-30  3:56 ` 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=lyv91neia0.fsf@new-host-2.home \
    --to=hmelman@gmail.com \
    --cc=18132@debbugs.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.