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

Re: Better way to execute commands from history?



On Sep 3,  4:49pm, Mikael Magnusson wrote:
}
} the doisearch() function already takes a 'pattern' argument that
} could be extended to be an enum instead of on/off, and have it use
} regcomp/regexec instead of the builtin patcompile() function family.

That'd also introduce a dependency into a part of the code that has
never required a regular expression library before.

It'd be better to have doisearch call out to a shell function at that
point to do the comparison, then you could write your own search
algoritms.  Unclear whether that'd be acceptably fast, though.



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