Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattn/vim-prompter
https://github.com/mattn/vim-prompter
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mattn/vim-prompter
- Owner: mattn
- Created: 2016-03-02T06:14:56.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-20T03:19:06.000Z (over 7 years ago)
- Last Synced: 2024-10-04T16:30:57.111Z (about 1 month ago)
- Language: Vim script
- Size: 312 KB
- Stars: 12
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Prompter
![](https://raw.githubusercontent.com/mattn/vim-prompter/master/data/logo.png)
![](https://raw.githubusercontent.com/mattn/vim-prompter/master/data/screenshot.gif)
## Usage
```vim
call prompter#input()
```### Parameters
When give String for the argument of `prompter#input()`, it is used as prompt string. When give Dictionary, it behave like below.
|key |value |
|---------|-----------------------------------------|
|prompt |prompt string |
|color |prompt color |
|on_change|callback function triggered with changed |
|on_enter |callback function triggered with decided |
|on_cancel|callback function triggered with canceled|## TODO
* completion
## License
MIT
## Author
Yasuhiro Matsumoto (a.k.a mattn)