https://github.com/choueric/readline
library for command line auto-completion
https://github.com/choueric/readline
Last synced: 9 months ago
JSON representation
library for command line auto-completion
- Host: GitHub
- URL: https://github.com/choueric/readline
- Owner: choueric
- License: mit
- Created: 2017-09-01T01:17:27.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-15T09:59:23.000Z (almost 9 years ago)
- Last Synced: 2025-01-21T16:31:52.961Z (over 1 year ago)
- Language: Go
- Size: 71.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# readline
Golang imitation of library readline for command line operations, including
line-editing shortcut keys and auto-completion.
Support multi-byte encoding.
# Usage
# Implementation
Completable elements may include commands, arguments, file names and other
entities, depending on the specific interpreter and its configuration.
# TODO
## feature
- [X] add self-defined auto-complete interface.
- [X] add auto-complete interface for list files and directories.
- [X] use completer
- [ ] multi-line input strings, single-line input strings that are long enough
to wrap,
- [o] separate it to a library
- [ ] can not auto-complete multi sub-commands as options, like
`git add --a --b a.c`, here, '--a', '--b' and 'a.c(fs-completer)' are
sub-commands.
- [ ] Make pretty output formate of candidates
- [ ] Add test case
## bug
- [ ] can not auto-complete 'ls //usr/l'
- [ ] fs-completer: when tab enter and complete to 'ls /usr/ ', there is an
extra space after '/', which make user to delete this space and then
enter space to auto-complete for the next path node.