Better mechanism to choose the default editor (and avoid vi if possible)?
PIERRE AUGIER
pierre.augier at univ-grenoble-alpes.fr
Fri May 29 19:08:13 UTC 2020
----- Mail original -----
> De: "Marcus Harnisch" <mh-mercurial at online.de>
> À: "mercurial" <mercurial at mercurial-scm.org>
> Envoyé: Vendredi 29 Mai 2020 17:38:59
> Objet: Re: Better mechanism to choose the default editor (and avoid vi if possible)?
> Is it safe to assume that users who are disturbed by this default
> behaviour are likely to work in a desktop session? In that case we could
> make use of XDG, no? I just tried ‘xdg-open ~/.config/hg/hgrc’ and it
> popped up the configured plain text editor.
>
Yes, I agree that we can assume that users who are disturbed by this default behavior are likely to work in a desktop session, so `xdg-open` seems to be the right command.
Maybe `open` can be used on OSX and `start` on Windows?
> Hg is already inspecting XDG_CONFIG_HOME (another XDG facility) for
> locating the configuration file.
>
> Cheers,
> Marcus
>
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
More information about the Mercurial
mailing list