Hook into completion system for finer highlighting #10

Open
nicoulaj opened this Issue Dec 30, 2010 · 3 comments

Projects

None yet

4 participants

@nicoulaj
Member

For example, for highlighting in red if a directory is expected but a file was given, etc.

This would avoid having the ZSH_HIGHLIGHT_TOKENS_FOLLOWED_BY_COMMANDS array.

All we have to do is to get the tag used for the part of the command, using _complete_help for example. Styles would then be declared per tag, allowing deep customization of the highlighting à la zstyle.

@bjeanes
bjeanes commented Oct 25, 2011

+1

@amcgregor

+1

@agargiulo

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment