You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since c114cbc, which breaks after a matching user has been found, completing somecommand ~ will only ever offer the first matching user.
E.g. on my system:
somecommand ~ completes to somecommand ~root
somecommand ~a completes to somecommand ~avahi (even though I also have a user called "alfa")
Note that it also aborts after 200ms, but that part seems okay.
I have confirmed that simply removing the break statements in completer_t::try_complete_user fixes the issue, but I'm not sure that is the right thing to do.
zx8: it seems to complete ~_amavisd even if the target directory doesn't exist
faho: I'm assuming the path is still marked as non-existing (i.e. it's not underlined)
That's correct, it does appear in red, but only after it's been completed. While this behaviour is consistent with bashs cd completion, it still seems unintuitive/unhelpful to bloat suggestions with a nonexistent directory.
In bash, the nonexistent directory is identifiable before it's been selected (no trailing /):
With that said, I don't mind either way. It's not an issue most users are going to experience on a daily basis, but thought it was worth flagging while we're on the subject of ~ completion.
Mea Culpa. I should not have inserted those break statements. I misunderstood the point of the loop. Fix to master and Integration_2.6.0 in a few minutes.
Activity
zx8 commentedon May 27, 2017
Following on the discussion from #4061:
That's correct, it does appear in red, but only after it's been completed. While this behaviour is consistent with
bashscdcompletion, it still seems unintuitive/unhelpful to bloat suggestions with a nonexistent directory.In
bash, the nonexistent directory is identifiable before it's been selected (no trailing/):With that said, I don't mind either way. It's not an issue most users are going to experience on a daily basis, but thought it was worth flagging while we're on the subject of
~completion.krader1961 commentedon May 27, 2017
Mea Culpa. I should not have inserted those break statements. I misunderstood the point of the loop. Fix to master and Integration_2.6.0 in a few minutes.