[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bindkey sequence

From: Sadrul Habib Chowdhury
Subject: Re: bindkey sequence
Date: Wed, 19 Jan 2011 15:41:29 -0500

On Tue, Jan 18, 2011 at 1:17 PM, Todd Freed <address@hidden> wrote:
> Hi,
> I'm attempting to match a sequence of 6-7 keystrokes and can't quite get the
> bindkey to work.
> I find myself frequently copying the line-just-above the cursor into screens
> buffer, so I can paste it somewhere. So, the key sequence I use (and which I
> want to map) looks like this:
> Ctrl-A # command
> Escape # copy mode
> Up Arrow # previous line
> Shift + Pipe # move cursor to beginning of line
> Enter # Start copying
> Shift + 4 # move cursor to end of line
> Enter # done copying
> I can't get the key selector (say, for Alt+Shift+C) but even if I use an
> easy one, I can't even approach what the right hand side of this bindkey
> would look like .. something with the stuff command im guessing.

Try, for example:

  bind P eval "copy" "stuff -k ku" "stuff Y" "stuff \033"

So pressing C-a P will (1) go into copy mode, (2) press the up arrow
key (3) press Y to yank the entire line (4) press escape to leave the
copy mode.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]