tree completion: completion of the filenames

This commit is contained in:
Benjamin VAUDOUR 2023-09-15 10:39:25 +02:00
parent c2fd22e54b
commit fec0d3c20d
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@ set edit:completion:arg-completer[tree] = {|@words|
fn cand {|text desc|
edit:complex-candidate $text &display=$text' '(spaces (- 14 (wcswidth $text)))$desc
}
edit:complete-filename $@words
var command = 'et'
for word $words[1..-1] {
if (str:has-prefix $word '-') {