bzr 0.0.9 & ~/.bzr.conf/editor
Jan Hudec
bulb at ucw.cz
Sun Oct 2 14:28:37 BST 2005
On Sun, Oct 02, 2005 at 08:45:07 -0400, Kevin Smith wrote:
> Jesper Olsen wrote:
> >And in the absence of ~/.bzr.conf/editor, why not let vi be the default
> >editor?
> >I know it's not everyones favorite, but at least it's always there..
>
> It's certainly not always there on MS Windows. Even though vi is on my
For MS Windows, it's actually easier. Notepad is always there and it is not
confusing.
> Linux system, if it were to suddenly be executed for me, it would take
> me several minutes just to figure out how to close it. For people who
> don't know vi, it is extremely confusing.
>
> Any "default" editor would need to have visible online help so people
> unfamiliar with it wouldn't get stuck. That also rules out emacs. Nano
> would be an friendly option, but I'm not sure how widespread it is
> outside of gentoo.
Debian systems have a sensible-editor wrapper script, that will execute
$EDITOR or editor, which is a link to system-wide default editor. But I don't
expect many other systems to have the same thing.
> But I think we can do better than just bringing up a nice error that
> explains exactly how the user can configure their system to use the
> editor of their choice. Since we're going interactive at that point
> anyway, why not allow them to enter the name of their editor right then,
> and offer to save that choice for them (if it worked). Or maybe don't
> even ask, and just save it and tell them how to unset it.
Well, at least if $EDITOR is defined, it should be used. It's kind of
standard. And packages may want to specify particular defaults, like
sensible-editor in Debian.
--
Jan 'Bulb' Hudec <bulb at ucw.cz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051002/e2eb5abe/attachment.pgp
More information about the bazaar
mailing list