Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: retrieving the results of last command?



Felix Rosencrantz wrote:
> Is there a way to configure completion, so that it will first attempt
> to only complete items that it would normally complete but are only in
> the keep list of the keeper function, and if there is nothing there
> complete as it normally would.

You could try doing something with ignored-patterns and zstyle -e:

Does keeper just keep it's words in an array? If so something like
'(${(j.|.)~keptwords})' may be a start. You may also need to remove
$IPREFIX and $ISUFFIX from the beginning and end of each word in the
array. You would also have problems if you want to use other
ignore-patterns styles.

Oliver



Messages sorted by: Reverse Date, Date, Thread, Author