Popularity
2.8
Stable
Activity
0.0
Stable
74
3
24
Programming language: Rust
License: MIT License
liner alternatives and similar packages
Based on the "Line editor" category.
Alternatively, view liner alternatives based on common mentions on social networks and blogs.
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
Promo
coderabbit.ai

Do you think we are missing an alternative of liner or a related project?
README
liner
A Rust library offering readline-like functionality.
Featues
- [x] Autosuggestions
- [x] Emacs and Vi keybindings
- [x] Multi-line editing
- [x] History
- [x] (Incomplete) basic and filename completions
- [ ] Reverse search
- [ ] Remappable keybindings
Basic Usage
In Cargo.toml
:
[dependencies]
liner = "0.4.3"
...
In src/main.rs
:
extern crate liner;
use liner::Context;
fn main() {
let mut con = Context::new();
loop {
let res = con.read_line("[prompt]$ ", &mut |_| {}).unwrap();
if res.is_empty() {
break;
}
con.history.push(res.into());
}
}
See src/main.rs for a more sophisticated example.
License
MIT licensed. See the LICENSE
file.
*Note that all licence references and agreements mentioned in the liner README section above
are relevant to that project's source code only.