Add filename autocomplete to template args
commitef155e62ef411425c027a81c44cc76b5258ad48f
authorDmitry Sharshakov <d3dx12.xx@gmail.com>
dateSat 28 Aug 2021, 15:36 (5 years ago)
parente315394
helix-term/src/ui/editor.rs+1−1
@@ -736,7 +736,7 @@ impl EditorView {
736736 let prompt = Prompt::new(
737737 "arg:".to_owned(),
738738 None,
739− |_input: &str| Vec::new(), // this is fine because Vec::new() doesn't allocate
739+ super::completers::filename,
740740 move |cx: &mut crate::compositor::Context,
741741 input: &str,
742742 event: PromptEvent| {