ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/perl/searchable-scrollback
(Generate patch)

Comparing rxvt-unicode/src/perl/searchable-scrollback (file contents):
Revision 1.28 by root, Sun Jun 10 13:58:06 2012 UTC vs.
Revision 1.29 by root, Sun Jun 10 17:31:53 2012 UTC

1#! perl 1#! perl
2 2
3# this extension implements scrollback buffer search 3# this extension implements scrollback buffer search
4 4
5#:META:X_RESOURCE:%:string:activation hotkey keysym 5#:META:X_RESOURCE:%:string:activation hotkey keysym
6
7=head1 NAME
8
9 searchable-scrollback<hotkey> - incremental scrollback search (enabled by default)
10
11=head1 DESCRIPTION
12
13Adds regex search functionality to the scrollback buffer, triggered
14by a hotkey (default: C<M-s>). While in search mode, normal terminal
15input/output is suspended and a regex is displayed at the bottom of the
16screen.
17
18Inputting characters appends them to the regex and continues incremental
19search. C<BackSpace> removes a character from the regex, C<Up> and C<Down>
20search upwards/downwards in the scrollback buffer, C<End> jumps to the
21bottom. C<Escape> leaves search mode and returns to the point where search
22was started, while C<Enter> or C<Return> stay at the current position and
23additionally stores the first match in the current line into the primary
24selection if the C<Shift> modifier is active.
25
26The regex defaults to "(?i)", resulting in a case-insensitive search. To
27get a case-sensitive search you can delete this prefix using C<BackSpace>
28or simply use an uppercase character which removes the "(?i)" prefix.
29
30See L<perlre> for more info about perl regular expression syntax.
31
32=cut
6 33
7sub on_init { 34sub on_init {
8 my ($self) = @_; 35 my ($self) = @_;
9 36
10 my $hotkey = $self->{argv}[0] 37 my $hotkey = $self->{argv}[0]

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines