Skip to content

Commit ede2def

Browse files
authored
update the ide_completions example with more cases to explore (#718)
1 parent cbb56e2 commit ede2def

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

examples/ide_completions.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,27 @@ fn main() -> io::Result<()> {
6161

6262
let commands = vec![
6363
"test".into(),
64+
"clear".into(),
65+
"exit".into(),
66+
"history 1".into(),
67+
"history 2".into(),
68+
"logout".into(),
69+
"login".into(),
6470
"hello world".into(),
6571
"hello world reedline".into(),
72+
"hello world something".into(),
73+
"hello world another".into(),
74+
"hello world 1".into(),
75+
"hello world 2".into(),
76+
"hello another very large option for hello word that will force one column".into(),
6677
"this is the reedline crate".into(),
78+
"abaaabas".into(),
79+
"abaaacas".into(),
80+
"ababac".into(),
81+
"abacaxyc".into(),
82+
"abadarabc".into(),
6783
];
84+
6885
let completer = Box::new(DefaultCompleter::new_with_wordlen(commands, 2));
6986

7087
// Use the interactive menu to select options from the completer

0 commit comments

Comments
 (0)