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

Re: Interrupting globs (Re: Something rotten in tar completion)



2014-12-05 15:50 GMT+01:00 Peter Stephenson <p.stephenson@xxxxxxxxxxx>:
> -trap 'zle -M "Killed by signal in ${funcstack[1]} after ${SECONDS}s";
> -      zle -R; return 130' INT QUIT
> +TRPAINT TRAPQUIT() {
> +  zle -M "Killed by signal in ${funcstack[1]} after ${SECONDS}s";
> +  zle -R
> +  return 130
> +}

It works well for the issue mentioned above (that is, “/a/b/c<tab>” →
“/aaaaaa/bbbbbb/cccccc” — now I can interrupt it). But it doesn't fix
the issue with “/aaaaaa/bbbbbb/cccccc/<tab>” in a (very) big
directory.

Before:
Killed by signal in _path_files after 9s

After:

(ie. : nothing)

…but I don't get my prompt back.

Best regards,

-- 
Jérémie



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