Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [solved] Re: _gnu_generic for aliases
On Jun 2, 12:20pm, Paul Seyfert wrote:
}
} defaultprompt > fancy -<TAB><TAB><TAB>
}
} nothing.
Aha.
The _set_command utility doesn't attempt to do anything with aliases,
so it never finds a command to pass to _call_program as the thing to
run to generate the --help listing, so there's nothing for _arguments
to parse even though it *is* being called via _gnu_generic.
} > This might work a lot of the time:
} >
} > _expand_alias_and_complete() {
[...]
} > }
} > zstyle ':completion:*' completer _complete __expand_alias_and_complete
Typo, should only be one leading underscore in _expand_alias_and_complete
(my error).
} I have that block commented out in testrc. Once I include it, it works!
That has to be accidental, because _expand_alias_and_complete should work
almost exactly like completion with complete_aliases NOT set. I don't
think this is an actual solution.
I think _set_command needs tweaking to handle [[ -o complete_aliases ]]
but I can't look at this myself for a while.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author