diff options
| author | Bert Münnich <ber.t@posteo.de> | 2015-12-05 18:26:37 +0100 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2018-04-26 06:52:32 +0100 |
| commit | a50b93cd6790c95a85c7647829c14a0ccd166f31 (patch) | |
| tree | f042fa8eebbfd210ffc46961894b944e6a029eac /edit-bsd.c | |
| parent | 68fc1605e7d3a317477abf1afc6410581724b72d (diff) | |
Custom readline commands for explicit completions
New commands:
- rc-complete-command, per default bound to "M-!"
- rc-complete-filename, "M-/"
- rc-complete-variable, "M-$"
These commands are useful, if one wants a specific type of completion which is
not performed by the context-senstive default one, e.g. filename completion at
the beginning of the line or command completion for the second word (after
sudo).
The readline code now also sets the application name to "rc", making it
possible to specify different bindings for these commands in ~/.inputrc:
$if rc
"\C-x\C-[": rc-complete-command
"\C-[\C-x": rc-complete-filename
"\C-x\C-v": rc-complete-variable
$endif
Diffstat (limited to 'edit-bsd.c')
0 files changed, 0 insertions, 0 deletions