Add filename autocomplete to template args

This commit is contained in:
Dmitry Sharshakov 2021-08-28 15:36:16 +03:00
parent e315394631
commit ef155e62ef
No known key found for this signature in database
GPG key ID: 471FD32E15FD8473

View file

@ -736,7 +736,7 @@ fn handle_keymap_event(
let prompt = Prompt::new( let prompt = Prompt::new(
"arg:".to_owned(), "arg:".to_owned(),
None, None,
|_input: &str| Vec::new(), // this is fine because Vec::new() doesn't allocate super::completers::filename,
move |cx: &mut crate::compositor::Context, move |cx: &mut crate::compositor::Context,
input: &str, input: &str,
event: PromptEvent| { event: PromptEvent| {