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

Re: PATCH: evaluation depth in prompts



On Mon, 01 Sep 2014 14:02:02 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Aug 29,  5:16pm, Peter Stephenson wrote:
> }
> } In case anyone's still following, here's the original script updated.
> } This now gives reliable tracing of who's calling whom
> 
> Here's a related idea/suggestion which adds indentation to the output
> of _complete_debug.  There's no convenient way to produce ${(%):-%e}
> spaces for arbitrary depths without turning on promptsubst, so this
> generates a bunch of %N(e. .) expressions and glues them together.
> If completion goes more than 20 function calls deep there's probably
> something wrong anyway.

Seems reasonable --- it doesn't remove any of the existing information.
A visual cue for calls should make it a lot clearer.

> I couldn't decide whether to put the indentation after the leading "+"
> or before it.  This has it before.

That makes it easier to strip the spaces if you happen to prefer it
like that.

pws



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