diff options
| author | Teddy Wing | 2021-08-24 21:03:37 +0200 |
|---|---|---|
| committer | Teddy Wing | 2021-08-24 21:24:11 +0200 |
| commit | 3865ae0be693bf32278a05ce661724ce4c382b24 (patch) | |
| tree | b7c93ad04d5fbfcbb38aa3ee45e4802c5c529cb0 /incdec.m4.bash | |
| parent | 067086adff7134f970a141269856f65ef195f2db (diff) | |
| download | readline-incdec-3865ae0be693bf32278a05ce661724ce4c382b24.tar.bz2 | |
incdec: Change default bindings to `C-x a` and `C-x x`
I had used `C-x +` and `C-x -` during testing because I had an existing
non-"-x" binding that was prefixed with `C-x a`, and when I tried to add
the `C-x a` "-x" binding, it caused the following error:
bash_execute_unix_command: cannot find keymap for command
Switch the default bindings to `C-x a` and `C-x x` because those are the
ones I originally wanted, since they don't appear to conflict with any
existing default Readline bindings, and they're similar to the Vim
increment and decrement commands.
Diffstat (limited to 'incdec.m4.bash')
| -rw-r--r-- | incdec.m4.bash | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/incdec.m4.bash b/incdec.m4.bash index 0ec0f51..974fe7a 100644 --- a/incdec.m4.bash +++ b/incdec.m4.bash @@ -44,5 +44,5 @@ function __readline_incdec_decrement { fi } -bind -x '"\C-x-": __readline_incdec_decrement' -bind -x '"\C-x+": __readline_incdec_increment' +bind -x '"\C-xx": __readline_incdec_decrement' +bind -x '"\C-xa": __readline_incdec_increment' |
