diff options
Diffstat (limited to 'src/cmds')
| -rw-r--r-- | src/cmds/comp/helpdoc.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cmds/comp/helpdoc.rs b/src/cmds/comp/helpdoc.rs new file mode 100644 index 0000000..7f07cad --- /dev/null +++ b/src/cmds/comp/helpdoc.rs @@ -0,0 +1,13 @@ +use crate::systems::{comp::context::CompletionContext, helpdoc}; + +pub fn comp(ctx: CompletionContext) -> Option<Vec<String>> { + if ctx.previous_word == "helpdoc" { + return Some( + helpdoc::get_helpdoc_list() + .iter() + .map(|s| s.to_string()) + .collect(), + ); + } + None +} |
