
Read output from the script as it comes and update the candidate list progressively. Disable updating of the list when a completion has been explicitely selected.
5 lines
160 B
Plaintext
5 lines
160 B
Plaintext
set-option global autocomplete prompt
|
|
define-command foo %{
|
|
prompt -shell-script-candidates %{ printf 'foo\nbar\nhaz\n' } ': ' %{exec i %val{text} <esc>}
|
|
}
|