keyboard-select: version 1.0

This commit is contained in:
Bert 2010-08-16 20:10:52 +02:00
parent 61f4a686ca
commit 94d5f77e83
2 changed files with 10 additions and 10 deletions

View File

@ -24,13 +24,12 @@ After installing, put the folling lines in your .Xdefaults:
Use Meta-Escape to activate selection mode, then use the following keys: Use Meta-Escape to activate selection mode, then use the following keys:
h/j/k/l: move cursor left/down/up/right (also with arrow keys) h/j/k/l: move cursor left/down/up/right (also with arrow keys)
g/G/0/^/$: vi-like cursor movement keys g/G/0/^/$/H/M/L: more vi-like cursor movement keys
H/M/L: move cursor to first/center/last line of visible area Ctrl-f/b: move cursor down/up one screen
ctrl-f/b: move cursor one screen down/up Ctrl-d/u: move cursor down/up half a screen
ctrl-d/u: move cursor half a screen down/up
v/V/Ctrl-v: toggle normal/linewise/blockwise selection v/V/Ctrl-v: toggle normal/linewise/blockwise selection
y,Return: copy selected text to primary buffer and quit selection mode y,Return: copy selected text to primary buffer and quit selection mode
Escape: cancel whole keyboard selection mode Escape: cancel keyboard selection mode
url-select url-select

View File

@ -1,6 +1,7 @@
#! perl -w #! perl -w
# Author: Bert Muennich # Author: Bert Muennich
# Website: http://www.github.com/muennich/urxvt-perls # Website: http://www.github.com/muennich/urxvt-perls
# Version: 1.0
# License: GPLv2 # License: GPLv2
# Use keyboard shortcuts to select and copy text. # Use keyboard shortcuts to select and copy text.
@ -11,13 +12,12 @@
# Use Meta-Escape to activate selection mode, then use the following keys: # Use Meta-Escape to activate selection mode, then use the following keys:
# h/j/k/l: move cursor left/down/up/right (also with arrow keys) # h/j/k/l: move cursor left/down/up/right (also with arrow keys)
# g/G/0/^/$: vi-like cursor movement keys # g/G/0/^/$/H/M/L: more vi-like cursor movement keys
# H/M/L: move cursor to first/center/last line of visible area # Ctrl-f/b: move cursor down/up one screen
# Ctrl-f/b: move cursor one screen down/up # Ctrl-d/u: move cursor down/up half a screen
# Ctrl-d/u: move cursor half a screen down/up
# v/V/Ctrl-v: toggle normal/linewise/blockwise selection # v/V/Ctrl-v: toggle normal/linewise/blockwise selection
# y,Return: copy selected text to primary buffer and quit selection mode # y,Return: copy selected text to primary buffer and quit selection mode
# Escape: cancel whole keyboard selection mode # Escape: cancel keyboard selection mode
use strict; use strict;
@ -164,6 +164,7 @@ sub activate {
my ($self) = @_; my ($self) = @_;
$self->{active} = 1; $self->{active} = 1;
$self->{select} = ""; $self->{select} = "";
$self->{overlay_len} = 0; $self->{overlay_len} = 0;