Page MenuHomePhabricator

zsh_completion: complete merge tools for -t/--tool

Authored by av6 on Aug 23 2018, 3:45 AM.

Diff Detail

rHG Mercurial
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

av6 created this revision.Aug 23 2018, 3:45 AM
spectral accepted this revision.Aug 29 2018, 2:33 PM
spectral added a subscriber: spectral.
spectral added inline comments.

I'm slightly concerned this might give a false impression of what's available, listing things that I don't have installed, but I think this might be the best we can do at the moment - there doesn't appear to be a way to convince's _picktool to dump a list of them.


Do we need to uniquify this, or is zsh smart enough to do so?

av6 added inline comments.Aug 30 2018, 1:01 AM

zsh will uniquify this, yes.

This seems to be the best way to do it so far, but maybe there needs to be a debugmergetool command or something. This is, by the way, a port of fish-shell's way to get the list of merge tools.

This revision was automatically updated to reflect the committed changes.
av6 added projects: Restricted Project, hg-reviewers.Nov 2 2018, 3:12 PM

Changing project tags, please ignore.