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

Re: Return to the prompt



Oliver Kiddle wrote:
> Philippe Troin wrote:
>>> If then I press ^V, the directory is listed, but I have to press a key in
>>> order to get my command line back. I tried wierd hacks with 'zle -R' or
>>> 'zle -M' for that, but there was no solution. Any hints on that?
>>
>> listdir() { ls -l; zle redisplay }
>
> Problem with that is the beginning of the ls listing can get a little
> mixed up with what is currently on the command line.
> 
> I would use:
>   bindkey -s '^V' $'\eqls -l\n'
> 
> Note that that relies on my also having:
>   bindkey '^[q' push-input
> 
> Oliver

Yes, that's also nice! ;) Thanks for the idea.
Fips



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