… | |
… | |
1119 | |
1119 | |
1120 | URxvt.keysym.Shift-Tab: string:echo rm -rf /\n |
1120 | URxvt.keysym.Shift-Tab: string:echo rm -rf /\n |
1121 | |
1121 | |
1122 | This could in theory be used to completely redefine your keymap. |
1122 | This could in theory be used to completely redefine your keymap. |
1123 | |
1123 | |
|
|
1124 | In addition, for actions of this type, you can define a range of |
|
|
1125 | keysyms in one shot by loading the C<keysym-list> perl extension and |
|
|
1126 | providing an I<action> with pattern B<list/PREFIX/MIDDLE/SUFFIX>, where |
|
|
1127 | the delimiter `/' should be a character not used by the strings. |
|
|
1128 | |
|
|
1129 | Its usage can be demonstrated by an example: |
|
|
1130 | |
|
|
1131 | URxvt.keysym.M-C-0x61: list|\033<|abc|> |
|
|
1132 | |
|
|
1133 | The above line is equivalent to the following three lines: |
|
|
1134 | |
|
|
1135 | URxvt.keysym.Meta-Control-0x61: string:\033<a> |
|
|
1136 | URxvt.keysym.Meta-Control-0x62: string:\033<b> |
|
|
1137 | URxvt.keysym.Meta-Control-0x63: string:\033<c> |
|
|
1138 | |
1124 | =item command:STRING |
1139 | =item command:STRING |
1125 | |
1140 | |
1126 | If I<action> takes the form of C<command:STRING>, the specified B<STRING> |
1141 | If I<action> takes the form of C<command:STRING>, the specified B<STRING> |
1127 | is interpreted and executed as @@RXVT_NAME@@'s control sequence (basically |
1142 | is interpreted and executed as @@RXVT_NAME@@'s control sequence (basically |
1128 | the opposite of C<string:> - instead of sending it to the program running |
1143 | the opposite of C<string:> - instead of sending it to the program running |
… | |
… | |
1187 | |
1202 | |
1188 | Similarly, to let applications gain access to the C<C-M-c> (copy to |
1203 | Similarly, to let applications gain access to the C<C-M-c> (copy to |
1189 | clipboard) and C<C-M-v> (paste clipboard) key combination, you can do |
1204 | clipboard) and C<C-M-v> (paste clipboard) key combination, you can do |
1190 | this: |
1205 | this: |
1191 | |
1206 | |
1192 | URxvt.keysym.C-S-c: builtin-string: |
1207 | URxvt.keysym.C-M-c: builtin-string: |
1193 | URxvt.keysym.C-S-v: builtin-string: |
1208 | URxvt.keysym.C-M-v: builtin-string: |
1194 | |
1209 | |
1195 | =item EXTENSION:STRING |
1210 | =item EXTENSION:STRING |
1196 | |
1211 | |
1197 | An action of this form passes the B<STRING> to the @@RXVT_NAME@@perl(3) |
1212 | An action of this form invokes the action B<STRING>, if any, provided |
1198 | extension of the same name. The extension will be loaded automatically if |
1213 | by the @@RXVT_NAME@@perl(3) extension B<EXTENSION>. The extension will |
1199 | necessary. |
1214 | be loaded automatically if necessary. |
1200 | |
1215 | |
1201 | Not all extensions define key actions, but popular extensions that do |
1216 | Not all extensions define actions, but popular extensions that do |
1202 | include the I<selection> and I<matcher> extensions (documented in their |
1217 | include the I<selection> and I<matcher> extensions (documented in their |
1203 | own manpages, @@RXVT_NAME@@-selection(1) and @@RXVT_NAME@@-matcher(1), |
1218 | own manpages, @@RXVT_NAME@@-selection(1) and @@RXVT_NAME@@-matcher(1), |
1204 | respectively). |
1219 | respectively). |
1205 | |
1220 | |
1206 | From the silly examples department, this will rot13-"encrypt" |
1221 | From the silly examples department, this will rot13-"encrypt" |
… | |
… | |
1209 | |
1224 | |
1210 | URxvt.keysym.M-C-c: selection:rot13 |
1225 | URxvt.keysym.M-C-c: selection:rot13 |
1211 | |
1226 | |
1212 | =item perl:STRING *DEPRECATED* |
1227 | =item perl:STRING *DEPRECATED* |
1213 | |
1228 | |
1214 | This is a deprecated way of passing key mappings to perl extensions. It is |
1229 | This is a deprecated way of invoking commands provided by perl |
1215 | still supported, but should not be used anymore. |
1230 | extensions. It is still supported, but should not be used anymore. |
1216 | |
1231 | |
1217 | =back |
1232 | =back |
1218 | |
1233 | |
1219 | =item B<perl-ext-common>: I<string> |
1234 | =item B<perl-ext-common>: I<string> |
1220 | |
1235 | |
… | |
… | |
1228 | by default, or specified via the C<perl-ext-common> resource. For |
1243 | by default, or specified via the C<perl-ext-common> resource. For |
1229 | example, C<default,-selection> will use all the default extensions except |
1244 | example, C<default,-selection> will use all the default extensions except |
1230 | C<selection>. |
1245 | C<selection>. |
1231 | |
1246 | |
1232 | The default set includes the C<selection>, C<option-popup>, |
1247 | The default set includes the C<selection>, C<option-popup>, |
1233 | C<selection-popup> and C<readline> extensions, any extensions that define |
1248 | C<selection-popup> and C<readline> extensions, any extensions that |
1234 | keybindings via C<BINDING> meta comments, extensions loaded because |
1249 | define keybindings via C<BINDING> meta comments, and extensions which |
1235 | their resources/commandline switches were used, and extensions which are |
|
|
1236 | mentioned in B<keysym> resources. |
1250 | are mentioned in B<keysym> resources. |
|
|
1251 | |
|
|
1252 | Any extension such that a corresponding resource is given on the |
|
|
1253 | command line is automatically appended to B<perl-ext>. |
1237 | |
1254 | |
1238 | Each extension is looked up in the library directories, loaded if |
1255 | Each extension is looked up in the library directories, loaded if |
1239 | necessary, and bound to the current terminal instance. When the library |
1256 | necessary, and bound to the current terminal instance. When the library |
1240 | search path contains multiple extension files of the same name, then the |
1257 | search path contains multiple extension files of the same name, then the |
1241 | first one found will be used. |
1258 | first one found will be used. |