[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.
Cheers.
Sadrul
- Re: Threaded comments & indenting, w3m browser, $TERM=screen.linux, (continued)
- Re: Threaded comments & indenting, w3m browser, $TERM=screen.linux, Aaron Davies, 2011/01/17
- Re: Threaded comments & indenting, w3m browser, $TERM=screen.linux, donothing successfully, 2011/01/18
- Re: Threaded comments & indenting, w3m browser, $TERM=screen.linux, John Magolske, 2011/01/20
- Re: Threaded comments & indenting, w3m browser, $TERM=screen.linux, Chris Jones, 2011/01/20
- Re: Threaded comments & indenting, w3m browser, $TERM=screen.linux, John Magolske, 2011/01/21
- Re: Threaded comments & indenting, w3m browser, $TERM=screen.linux, Chris Jones, 2011/01/23
- Re: Threaded comments & indenting, w3m browser, $TERM=screen.linux, John Magolske, 2011/01/23
- Re: Threaded comments & indenting, w3m browser, $TERM=screen.linux, Chris Jones, 2011/01/23
bindkey sequence, Todd Freed, 2011/01/19