tree completion: completion of the filenames
This commit is contained in:
parent
c2fd22e54b
commit
fec0d3c20d
|
@ -9,6 +9,7 @@ set edit:completion:arg-completer[tree] = {|@words|
|
||||||
fn cand {|text desc|
|
fn cand {|text desc|
|
||||||
edit:complex-candidate $text &display=$text' '(spaces (- 14 (wcswidth $text)))$desc
|
edit:complex-candidate $text &display=$text' '(spaces (- 14 (wcswidth $text)))$desc
|
||||||
}
|
}
|
||||||
|
edit:complete-filename $@words
|
||||||
var command = 'et'
|
var command = 'et'
|
||||||
for word $words[1..-1] {
|
for word $words[1..-1] {
|
||||||
if (str:has-prefix $word '-') {
|
if (str:has-prefix $word '-') {
|
||||||
|
|
Loading…
Reference in New Issue