From: root Date: Thu, 12 Jan 2006 23:11:23 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=b9553fde85de35dfc6853e9250481adc677748f9;p=dana%2Furxvt.git *** empty log message *** --- diff --git a/README.FAQ b/README.FAQ index 2685bde8..3950361f 100644 --- a/README.FAQ +++ b/README.FAQ @@ -1,4 +1,19 @@ FREQUENTLY ASKED QUESTIONS + The new selection selects pieces that are too big/too small, can I + change this? + Yes. For example, if you want to select smaller pieces ("words") you + can use the following resource: + + URxvt.selection.pattern-0: ([[:word:]]+) + + If you click more than twice, the selection will be extended more + and more. + + To get a selection that is very similar to the old code, try this + pattern: + + URxvt.selection.pattern-0: ([^"&'()*,;<=>?@[\\\\]^`{|})]+) + I don't like the new selection/popups/hotkeys/perl, how do I change/disable it? You can disable the perl extension completely by setting the diff --git a/doc/rxvt.7.html b/doc/rxvt.7.html index 97b522d6..c4ce110e 100644 --- a/doc/rxvt.7.html +++ b/doc/rxvt.7.html @@ -75,6 +75,29 @@ also available on the World Wide Web at

FREQUENTLY ASKED QUESTIONS

+
The new selection selects pieces that are too big/too small, can I +change this?
+
+
+Yes. For example, if you want to select smaller pieces (``words'') you can +use the following resource: +
+
+
+   URxvt.selection.pattern-0: ([[:word:]]+)
+
+
+

If you click more than twice, the selection will be extended +more and more.

+
+
+

To get a selection that is very similar to the old code, try this pattern:

+
+
+
+   URxvt.selection.pattern-0: ([^"&'()*,;<=>?@[\\\\]^`{|})]+)
+
+

I don't like the new selection/popups/hotkeys/perl, how do I change/disable it?
diff --git a/doc/rxvt.7.man.in b/doc/rxvt.7.man.in index b74ef3dc..7efc7152 100644 --- a/doc/rxvt.7.man.in +++ b/doc/rxvt.7.man.in @@ -129,7 +129,7 @@ .\" ======================================================================== .\" .IX Title "rxvt 7" -.TH rxvt 7 "2006-01-12" "7.0" "RXVT-UNICODE" +.TH rxvt 7 "2006-01-13" "7.0" "RXVT-UNICODE" .SH "NAME" RXVT REFERENCE \- FAQ, command sequences and other background information .SH "SYNOPSIS" @@ -158,6 +158,23 @@ also available on the World Wide Web at . .SH "FREQUENTLY ASKED QUESTIONS" .IX Header "FREQUENTLY ASKED QUESTIONS" +.IP "The new selection selects pieces that are too big/too small, can I change this?" 4 +.IX Item "The new selection selects pieces that are too big/too small, can I change this?" +Yes. For example, if you want to select smaller pieces (\*(L"words\*(R") you can +use the following resource: +.Sp +.Vb 1 +\& URxvt.selection.pattern-0: ([[:word:]]+) +.Ve +.Sp +If you click more than twice, the selection will be extended +more and more. +.Sp +To get a selection that is very similar to the old code, try this pattern: +.Sp +.Vb 1 +\& URxvt.selection.pattern-0: ([^"&'()*,;<=>?@[\e\e\e\e]^`{|})]+) +.Ve .IP "I don't like the new selection/popups/hotkeys/perl, how do I change/disable it?" 4 .IX Item "I don't like the new selection/popups/hotkeys/perl, how do I change/disable it?" You can disable the perl extension completely by setting the diff --git a/doc/rxvt.7.pod b/doc/rxvt.7.pod index 51ade03f..76e336f4 100644 --- a/doc/rxvt.7.pod +++ b/doc/rxvt.7.pod @@ -26,6 +26,21 @@ L. =over 4 +=item The new selection selects pieces that are too big/too small, can I +change this? + +Yes. For example, if you want to select smaller pieces ("words") you can +use the following resource: + + URxvt.selection.pattern-0: ([[:word:]]+) + +If you click more than twice, the selection will be extended +more and more. + +To get a selection that is very similar to the old code, try this pattern: + + URxvt.selection.pattern-0: ([^"&'()*,;<=>?@[\\\\]^`{|})]+) + =item I don't like the new selection/popups/hotkeys/perl, how do I change/disable it? diff --git a/doc/rxvt.7.txt b/doc/rxvt.7.txt index 257ec8aa..86e732d3 100644 --- a/doc/rxvt.7.txt +++ b/doc/rxvt.7.txt @@ -20,6 +20,21 @@ DESCRIPTION . FREQUENTLY ASKED QUESTIONS + The new selection selects pieces that are too big/too small, can I + change this? + Yes. For example, if you want to select smaller pieces ("words") you + can use the following resource: + + URxvt.selection.pattern-0: ([[:word:]]+) + + If you click more than twice, the selection will be extended more + and more. + + To get a selection that is very similar to the old code, try this + pattern: + + URxvt.selection.pattern-0: ([^"&'()*,;<=>?@[\\\\]^`{|})]+) + I don't like the new selection/popups/hotkeys/perl, how do I change/disable it? You can disable the perl extension completely by setting the diff --git a/src/perl/selection b/src/perl/selection index f4a9d424..927a11c3 100644 --- a/src/perl/selection +++ b/src/perl/selection @@ -22,9 +22,7 @@ sub on_init { # "find interetsing things"-patterns my @mark_patterns = ( - qr{([[:word:]]+)}, - - # common "parentheses" + # common types of "parentheses" qr{(?:^|\s) ‘ ([^‘’]+?) ’ (?:\s|\)|$)}x, qr{(?:^|\s) ` ([^`']+?) ' (?:\s|\)|$)}x, qr{ \{ ([^{}]+?) \} }x,