--- rxvt-unicode/src/perl/searchable-scrollback 2011/11/20 11:09:22 1.26 +++ rxvt-unicode/src/perl/searchable-scrollback 2012/06/10 17:31:53 1.29 @@ -2,11 +2,40 @@ # this extension implements scrollback buffer search +#:META:X_RESOURCE:%:string:activation hotkey keysym + +=head1 NAME + + searchable-scrollback - incremental scrollback search (enabled by default) + +=head1 DESCRIPTION + +Adds regex search functionality to the scrollback buffer, triggered +by a hotkey (default: C). While in search mode, normal terminal +input/output is suspended and a regex is displayed at the bottom of the +screen. + +Inputting characters appends them to the regex and continues incremental +search. C removes a character from the regex, C and C +search upwards/downwards in the scrollback buffer, C jumps to the +bottom. C leaves search mode and returns to the point where search +was started, while C or C stay at the current position and +additionally stores the first match in the current line into the primary +selection if the C modifier is active. + +The regex defaults to "(?i)", resulting in a case-insensitive search. To +get a case-sensitive search you can delete this prefix using C +or simply use an uppercase character which removes the "(?i)" prefix. + +See L for more info about perl regular expression syntax. + +=cut + sub on_init { my ($self) = @_; my $hotkey = $self->{argv}[0] - || $self->x_resource ("searchable-scrollback") + || $self->x_resource ("%") || "M-s"; $self->parse_keysym ($hotkey, "perl:searchable-scrollback:start")