Better mechanism to choose the default editor (and avoid vi if possible)?

Pierre-Yves David pierre-yves.david at ens-lyon.org
Wed Jun 10 10:24:40 UTC 2020



On 5/30/20 4:41 PM, Augie Fackler wrote:
> On Sat, May 30, 2020 at 8:24 AM Chris Green <cl at isbd.net> wrote:
>>
>> On Sat, May 30, 2020 at 06:42:41AM +0000, Steve - Gadget Barnes wrote:
>>> Several other version control systems, (and other systems as well), honour
>>> the environmental variable EDITOR - this is an easy way to specify the
>>> editor to use for things like hg config --edit without having to use an
>>> editor that you are less than happy with. Maybe honouring this and possibly
>>> adding mention of it to the helps would be the optimal way to go!
>>>
>> The 'modern' Linux way is to use the 'alternatives' set-up isn't it?
> 
> At least on debian. I don't know about other distros. Both our
> first-party debian packaging rules and the downstream debian packaging
> rules specify "sensible-editor" as the default editor in the debian
> package, rather than vim. If there's something equivalent other
> packaging rules should be doing, they should do so. :)
+1 on making sure we use sensible-editor whenever possible. That is the 
best way I have seem to solve the issue (even it if anyoning to power user).

We should probably have our own version of that when it is not 
available. (and maybe the same things apply for merge tool)

-- 
Pierre-Yves David



More information about the Mercurial mailing list