Code: Select all
EDITOR_LIST="nano emacs vim"Not what I want to do at all. Just seems that if `eselect vi` is intended as to manage which vi clone to use, then `eselect editor` should use that too rather than only have vim explicitly.grknight wrote:One could argue managing that list ad nauseam in bugs until the end of time or just free form your favorite editor instead.

Code: Select all
$ grep EDITOR .bash_profile
export EDITOR=viCode: Select all
# You should override these in your ~/.bashrc (or equivalent) for per-user
# settings. For system defaults, you can add a new file in /etc/profile.d/.
export EDITOR=${EDITOR:-/bin/nano}
export PAGER=${PAGER:-/usr/bin/less}
Code: Select all
# list of most common cases only
EDITOR_LIST="nano ed emacs ex vi xemacs"Code: Select all
# list of most common cases only
EDITOR_LIST="nano emacs vim"Notice the change from vi to vim across those versions? Where we previously had vi (which in turn points to whatever `eselect vi` is set to) and now we have vim, which… doesn't. That's counterintuitive.Anon-E-moose wrote:What's counter intuitive?
from eselect 4.17
…
from 4.27
No, I expect eselect to be consistent with… eselect.Anon-E-moose wrote:Would you expect them to list ever editor available?
Code: Select all
export EDITOR="/usr/bin/nvim"
Then I would say that his expectations were/are wrong.sMueggli wrote:I think bent is expecting that if "eselect editor set vim" is used, that the $EDITOR environment variable is set to whatever symlink "eselect vi show" is pointing.
Nope. I am just proposing that `eselect editor list` show `vi` (not vim, not nvim, etc.), if any vi clone is installed. Otherwise, what's the point of `eselect vi set` existing, only for `eselect editor list` to simply ignore it and only work with one specific clone?sMueggli wrote:I think bent is expecting that if "eselect editor set vim" is used, that the $EDITOR environment variable is set to whatever symlink "eselect vi show" is pointing.