aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: a29dc93fcbcc27c056eb6dd16db270b22c3ad37b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Readline Incdec
===============

Readline bindings to increment and decrement numbers on the command line.


## Demo
The commands increment or decrement the closest number to the left of point. If
point is to the left of the first number in the line, the first number is
modified.

![Screencast](./Demo.gif)


## Install
TODO

	source /path/to/incdec.bash

To enable the default bindings, also add:

	source /path/to/incdec-bindings.bash



	bind -x '"\C-x-": __readline_incdec_decrement'
	bind -x '"\C-x+": __readline_incdec_increment'

## License
Copyright © 2021 Teddy Wing. Licensed under the GNU GPLv3+ (see the included
COPYING file).