editline-tabcomp

Tab completion implementation for BSD editline (libedit)

git clone https://git.8pit.net/editline-tabcomp.git

 1# editline-tabcomp
 2
 3Tab completion implementation for BSD editline (libedit).
 4
 5## Motivation
 6
 7While the editline readline compatibility layer supports tab
 8completions, editline itself does not. When I started using editline in
 9[input][input github]. I implemented tab completions using the code in
10this repository. However, nowadays input uses the readline compatibility
11layer and I just wanted to archive this code somewhere in case it is
12useful for someone else.
13
14## Status
15
16I don't use this myself anymore but I am not aware of any bugs.
17
18## Features
19
20* Simple API.
21* Supports wide characters.
22* Supports cycling through multiple completions.
23* Easy to integrate (single source file in C99).
24
25## Usage
26
27The implementation is provided in `complete.c` and `complete.h` these
28files should just be copied to your repository. The header file contains
29some pointers on how to use the provided functions.
30
31A usage example is also provided in `example.c`, compile it using:
32
33	$ make
34
35## License
36
37This program is free software: you can redistribute it and/or modify it
38under the terms of the GNU General Public License as published by the
39Free Software Foundation, either version 3 of the License, or (at your
40option) any later version.
41
42This program is distributed in the hope that it will be useful, but
43WITHOUT ANY WARRANTY; without even the implied warranty of
44MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
45Public License for more details.
46
47You should have received a copy of the GNU General Public License along
48with this program. If not, see <http://www.gnu.org/licenses/>.
49
50[input github]: https://github.com/nmeum/input