Re: ESC . vs. ^R, ^P again

2008-01-07 Thread Chet Ramey
[EMAIL PROTECTED] wrote: > $ bind '"\e.":"\e>\e_"' > $ : 1 > $ : 2 > $ : 3 > $ : 4 > $ >>> I want now typing ^R 2 ^E M-. to put a 4 at the end of the line... > ...and not wipe out the 2, which is what the above bind did. OK, you're not going to be able to do that, since you're moving away from the

Re: ESC . vs. ^R, ^P again

2008-01-07 Thread jidanni
$ bind '"\e.":"\e>\e_"' $ : 1 $ : 2 $ : 3 $ : 4 $ >> I want now typing ^R 2 ^E M-. to put a 4 at the end of the line... ...and not wipe out the 2, which is what the above bind did. BASH_VERSION='3.1.17(1)-release'

Re: ESC . vs. ^R, ^P again

2008-01-07 Thread Chet Ramey
[EMAIL PROTECTED] wrote: > C> "\M-.":"\M->\M-_" > Thanks but that doesn't work. > $ : 1 > $ : 2 > $ : 3 > $ : 4 > $ > I want now typing ^R 2 ^E M-. to put a 4 at the end of the line but > the above macro does not. Try bind '"\e.":"\e>\e_"' That worked for me when I used it, since I use ESC as the

Re: ESC . vs. ^R, ^P again

2008-01-07 Thread jidanni
C> "\M-.":"\M->\M-_" Thanks but that doesn't work. $ : 1 $ : 2 $ : 3 $ : 4 $ I want now typing ^R 2 ^E M-. to put a 4 at the end of the line but the above macro does not.

Re: ESC . vs. ^R, ^P again

2008-01-06 Thread Chet Ramey
[EMAIL PROTECTED] wrote: > As there years pass I use ESC . daily hoping that it will get the last > chunk of the previous line on my screen, despite any ^P's or ^R's I > might have done. > > Never have I wanted it to consider those ^P's and ^R's. Since there are two key sequences pre-bound to yan

Re: ESC . vs. ^R, ^P again

2008-01-04 Thread jidanni
A> I think you want ESC _ which will pull in the last word of the A> previous command. Thanks but it's $ man bash|grep M-_ yank-last-arg (M-., M-_) insert-last-argument (M-., M-_) the same as M-., whose behavior I was railing against.

Re: ESC . vs. ^R, ^P again

2008-01-04 Thread Aharon Robbins
I think you want ESC _ which will pull in the last word of the previous command. Arnold In article <[EMAIL PROTECTED]> you write: >As there years pass I use ESC . daily hoping that it will get the last >chunk of the previous line on my screen, despite any ^P's or ^R's I >might have done. > >Never

ESC . vs. ^R, ^P again

2008-01-01 Thread jidanni
As there years pass I use ESC . daily hoping that it will get the last chunk of the previous line on my screen, despite any ^P's or ^R's I might have done. Never have I wanted it to consider those ^P's and ^R's. So even though you said that was a early design choice, perhaps you could still leave