From 07a30613f0b0a5b782d30dbeb46df8382f8a4e2a Mon Sep 17 00:00:00 2001 From: Marlon Richert Date: Sun, 21 Mar 2021 17:24:49 +0200 Subject: 48214: add file types to _expand completions, so they can be colored through complist --- Test/Y01completion.ztst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'Test/Y01completion.ztst') diff --git a/Test/Y01completion.ztst b/Test/Y01completion.ztst index 571f3cf16..eff6910c2 100644 --- a/Test/Y01completion.ztst +++ b/Test/Y01completion.ztst @@ -44,6 +44,25 @@ >line: {: dir1/}{} >line: {: dir2/}{} + comptest $': *\t\t\t\t\t\t\t' +0:_expand shows file types +>line: {: dir1/}{} +>DESCRIPTION:{expansions} +>DI:{dir1} +>DI:{dir2} +>FI:{file1} +>FI:{file2} +>DESCRIPTION:{all expansions} +>NO:{dir1 dir2 file1 file2} +>DESCRIPTION:{original} +>NO:{*} +>line: {: dir1/}{} +>line: {: dir2/}{} +>line: {: file1 }{} +>line: {: file2 }{} +>line: {: dir1 dir2 file1 file2 }{} +>line: {: *}{} + comptesteval '_users () { compadd user1 user2 }' comptest $': ~\t\t\t\t\t' 0:tilde -- cgit v1.2.3-70-g09d2