… | |
… | |
1055 | extension might provide. |
1055 | extension might provide. |
1056 | |
1056 | |
1057 | The key combination that triggers the action, I<sym>, has the following format: |
1057 | The key combination that triggers the action, I<sym>, has the following format: |
1058 | |
1058 | |
1059 | (modifiers-)key |
1059 | (modifiers-)key |
1060 | |
1060 | |
1061 | Where I<modifiers> can be any combination of B<ISOLevel3>, B<AppKeypad>, |
1061 | Where I<modifiers> can be any combination of B<ISOLevel3>, B<AppKeypad>, |
1062 | B<Control>, B<NumLock>, B<Shift>, B<Meta>, B<Lock>, B<Mod1>, B<Mod2>, |
1062 | B<Control>, B<NumLock>, B<Shift>, B<Meta>, B<Lock>, B<Mod1>, B<Mod2>, |
1063 | B<Mod3>, B<Mod4>, B<Mod5>, and the abbreviated B<I>, B<K>, B<C>, B<N>, |
1063 | B<Mod3>, B<Mod4>, B<Mod5>, and the abbreviated B<I>, B<K>, B<C>, B<N>, |
1064 | B<S>, B<M>, B<A>, B<L>, B<1>, B<2>, B<3>, B<4>, B<5>. |
1064 | B<S>, B<M>, B<A>, B<L>, B<1>, B<2>, B<3>, B<4>, B<5>. |
1065 | |
1065 | |
… | |
… | |
1149 | |
1149 | |
1150 | The first line defines a mapping for C<Insert> and I<any> combination |
1150 | The first line defines a mapping for C<Insert> and I<any> combination |
1151 | of modifiers. The second line re-establishes the default mapping for |
1151 | of modifiers. The second line re-establishes the default mapping for |
1152 | C<Shift-Insert>. |
1152 | C<Shift-Insert>. |
1153 | |
1153 | |
|
|
1154 | =item builtin-string: |
|
|
1155 | |
|
|
1156 | This action is mainly useful to restore string mappings for keys that |
|
|
1157 | have predefined actions in @@RXVT_NAME@@. The exact semantics are a bit |
|
|
1158 | difficult to explain - basically, this action will send the string to the |
|
|
1159 | application that would be sent if @@RXVT_NAME@@ wouldn't have a built-in |
|
|
1160 | action for it. |
|
|
1161 | |
|
|
1162 | An example might make it clearer: @@RXVT_NAME@@ normally pastes the |
|
|
1163 | selection when you press C<Shift-Insert>. With the following bindings, it |
|
|
1164 | would instead emit the (undocumented, but what applications running in the |
|
|
1165 | terminal might expect) sequence C<ESC [ 2 $> instead: |
|
|
1166 | |
|
|
1167 | URxvt.keysym.S-Insert: builtin-string: |
|
|
1168 | URxvt.keysym.C-S-Insert: builtin: |
|
|
1169 | |
|
|
1170 | The first line disables the paste functionality for that key |
|
|
1171 | combination, and the second reinstates the default behaviour for |
|
|
1172 | C<Control-Shift-Insert>, which would otherwise be overridden. |
|
|
1173 | |
|
|
1174 | Similarly, to let applications gain access to the C<C-M-c> (copy to |
|
|
1175 | clipboard) and C<C-M-v> (paste clipboard) key combination, you can do |
|
|
1176 | this: |
|
|
1177 | |
|
|
1178 | URxvt.keysym.C-S-c: builtin-string: |
|
|
1179 | URxvt.keysym.C-S-v: builtin-string: |
|
|
1180 | |
1154 | =item EXTENSION:STRING |
1181 | =item EXTENSION:STRING |
1155 | |
1182 | |
1156 | An action of this form passes the B<STRING> to the @@RXVT_NAME@@perl(3) |
1183 | An action of this form passes the B<STRING> to the @@RXVT_NAME@@perl(3) |
1157 | extension of the same name. The extension will be loaded automatically if |
1184 | extension of the same name. The extension will be loaded automatically if |
1158 | neccessary. |
1185 | neccessary. |
… | |
… | |
1166 | @@RXVT_NAME@@'s selection when Alt-Control-c is pressed on typical PC |
1193 | @@RXVT_NAME@@'s selection when Alt-Control-c is pressed on typical PC |
1167 | keyboards: |
1194 | keyboards: |
1168 | |
1195 | |
1169 | URxvt.keysym.M-C-c: selection:rot13 |
1196 | URxvt.keysym.M-C-c: selection:rot13 |
1170 | |
1197 | |
1171 | =item perl:STRING |
1198 | =item perl:STRING *DEPRECATED* |
1172 | |
1199 | |
1173 | This is a deprecated way of passing key mappings to perl extensions. It is |
1200 | This is a deprecated way of passing key mappings to perl extensions. It is |
1174 | still supported, but should not be used anymore. |
1201 | still supported, but should not be used anymore. |
1175 | |
1202 | |
1176 | =back |
1203 | =back |
1177 | |
|
|
1178 | In addition, you can define a range of keysyms in one shot by loading |
|
|
1179 | the C<keysym-list> perl extension and providing a I<string> with pattern |
|
|
1180 | B<list/PREFIX/MIDDLE/SUFFIX>, where the delimiter `/' should be a |
|
|
1181 | character not used by the strings. |
|
|
1182 | |
|
|
1183 | Its usage can be demonstrated by an example: |
|
|
1184 | |
|
|
1185 | URxvt.keysym.M-C-0x61: list|\033<|abc|> |
|
|
1186 | |
|
|
1187 | The above line is equivalent to the following three lines: |
|
|
1188 | |
|
|
1189 | URxvt.keysym.Meta-Control-0x61: \033<a> |
|
|
1190 | URxvt.keysym.Meta-Control-0x62: \033<b> |
|
|
1191 | URxvt.keysym.Meta-Control-0x63: \033<c> |
|
|
1192 | |
1204 | |
1193 | =item B<perl-ext-common>: I<string> |
1205 | =item B<perl-ext-common>: I<string> |
1194 | |
1206 | |
1195 | =item B<perl-ext>: I<string> |
1207 | =item B<perl-ext>: I<string> |
1196 | |
1208 | |
… | |
… | |
1201 | them. This can be useful to selectively disable some extensions loaded |
1213 | them. This can be useful to selectively disable some extensions loaded |
1202 | by default, or specified via the C<perl-ext-common> resource. For |
1214 | by default, or specified via the C<perl-ext-common> resource. For |
1203 | example, C<default,-selection> will use all the default extension except |
1215 | example, C<default,-selection> will use all the default extension except |
1204 | C<selection>. |
1216 | C<selection>. |
1205 | |
1217 | |
1206 | Extension names can also be followed by an argument in angle brackets |
1218 | Some extensions define resources or command line switches, and will |
1207 | (e.g. C<< searchable-scrollback<M-s> >>, which binds the hotkey for |
1219 | automatically be used when their resource or switch is specified. |
1208 | searchable scrollback to Alt/Meta-s). Mentioning the same extension |
|
|
1209 | multiple times with different arguments will pass multiple arguments to |
|
|
1210 | the extension. |
|
|
1211 | |
1220 | |
1212 | Each extension is looked up in the library directories, loaded if |
1221 | Each extension is looked up in the library directories, loaded if |
1213 | necessary, and bound to the current terminal instance. |
1222 | necessary, and bound to the current terminal instance. |
1214 | |
1223 | |
1215 | If both of these resources are the empty string, then the perl |
1224 | If both of these resources are the empty string, then the perl interpreter |
1216 | interpreter will not be initialized. The idea behind two options is that |
1225 | will not be initialized. The rationale for having two options is that |
1217 | B<perl-ext-common> will be used for extensions that should be available to |
1226 | B<perl-ext-common> will be used for extensions that should be available to |
1218 | all instances, while B<perl-ext> is used for specific instances. |
1227 | all instances, while B<perl-ext> is used for specific instances. |
1219 | |
1228 | |
1220 | =item B<perl-eval>: I<string> |
1229 | =item B<perl-eval>: I<string> |
1221 | |
1230 | |
… | |
… | |
1239 | =item B<< selection-autotransform.I<idx> >>: I<perl-transform> |
1248 | =item B<< selection-autotransform.I<idx> >>: I<perl-transform> |
1240 | |
1249 | |
1241 | Selection auto-transform patterns, see the @@RXVT_NAME@@perl(3) manpage |
1250 | Selection auto-transform patterns, see the @@RXVT_NAME@@perl(3) manpage |
1242 | for details. |
1251 | for details. |
1243 | |
1252 | |
1244 | =item B<searchable-scrollback:> I<keysym> |
1253 | =item B<searchable-scrollback:> I<keysym> *DEPRECATED* |
1245 | |
1254 | |
1246 | Sets the hotkey that starts the incremental scrollback buffer search |
1255 | This resource is deprecated and will be removed. Use a B<keysym> resource |
1247 | (default: C<M-s>). |
1256 | instead, e.g.: |
|
|
1257 | |
|
|
1258 | URxvt.keysym.M-s: searchable-scrollback:start |
1248 | |
1259 | |
1249 | =item B<url-launcher>: I<string> |
1260 | =item B<url-launcher>: I<string> |
1250 | |
1261 | |
1251 | Specifies the program to be started with a URL argument. Used by the |
1262 | Specifies the program to be started with a URL argument. Used by the |
1252 | C<selection-popup> and C<matcher> perl extensions. |
1263 | C<selection-popup> and C<matcher> perl extensions. |