Re: bind -x and multiple prompt/command lines

2014-11-16 Thread Chet Ramey
On 4/22/14 7:34 AM, Jesper Nygårds wrote: > Here are simplified versions of two functions that I have written. Both are > inspired by similar functions floating around on the zsh mailing lists. The > first copies the previous word on the command line, and the second one > converts three consecutive

Re: bind -x and multiple prompt/command lines

2014-11-16 Thread Chet Ramey
On 4/14/14 2:02 AM, Rob Foehl wrote: > When executing shell commands bound to key sequences with bind -x, the > initial line(s) of multiple line shell prompts and/or commands are left > intact; when the prompt is redisplayed, the initial line(s) are output > again, causing the appearance of duplica

Re: bind -x and multiple prompt/command lines

2014-05-05 Thread Chet Ramey
On 5/5/14, 2:11 AM, Jesper Nygårds wrote: > Chet, > > Not that it is pressing in any way, but have you had any time to look at > this? Sorry, I haven't looked at it yet. I hope to get to it soon. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa,

Re: bind -x and multiple prompt/command lines

2014-05-04 Thread Jesper Nygårds
Chet, Not that it is pressing in any way, but have you had any time to look at this? On Tue, Apr 22, 2014 at 1:34 PM, Jesper Nygårds wrote: > Here are simplified versions of two functions that I have written. Both > are inspired by similar functions floating around on the zsh mailing lists. > T

Re: bind -x and multiple prompt/command lines

2014-04-22 Thread Jesper Nygårds
Here are simplified versions of two functions that I have written. Both are inspired by similar functions floating around on the zsh mailing lists. The first copies the previous word on the command line, and the second one converts three consecutive dots (...) into ../.., and you can then keep addi

Re: bind -x and multiple prompt/command lines

2014-04-18 Thread Chet Ramey
On 4/15/14, 11:22 AM, Jesper Nygårds wrote: > I don't have any solution to offer, but I would like to second the wish for > this to work better, and for the same reason: I have written several very > useful functions for rewriting the command line, binding them with bind -x. > Like Rob, I have conc

Re: bind -x and multiple prompt/command lines

2014-04-15 Thread Jesper Nygårds
I don't have any solution to offer, but I would like to second the wish for this to work better, and for the same reason: I have written several very useful functions for rewriting the command line, binding them with bind -x. Like Rob, I have concluded that it does not work well with a multi-line p

bind -x and multiple prompt/command lines

2014-04-14 Thread Rob Foehl
When executing shell commands bound to key sequences with bind -x, the initial line(s) of multiple line shell prompts and/or commands are left intact; when the prompt is redisplayed, the initial line(s) are output again, causing the appearance of duplicate lines. This seems to be due to the co