diff options
author | Marlon Richert <marlon.richert@gmail.com> | 2023-05-18 23:44:54 +0300 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2023-05-21 03:05:20 +0200 |
commit | bb441f77a70bf7b5f13ab8f9113ba9b7a1593479 (patch) | |
tree | 517c9c0fd7ec9e64b2dfdcde7921b95d20993301 /Test | |
parent | a95198e268ec1d432c37afc8dc4f8839acc0c8d0 (diff) | |
download | zsh-bb441f77a70bf7b5f13ab8f9113ba9b7a1593479.tar.gz zsh-bb441f77a70bf7b5f13ab8f9113ba9b7a1593479.tar.xz zsh-bb441f77a70bf7b5f13ab8f9113ba9b7a1593479.zip |
51758: Make dynamic dir completion easier to implement
Diffstat (limited to 'Test')
-rw-r--r-- | Test/Y01completion.ztst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Test/Y01completion.ztst b/Test/Y01completion.ztst index f976f9f91..b3ec12e52 100644 --- a/Test/Y01completion.ztst +++ b/Test/Y01completion.ztst @@ -75,6 +75,17 @@ >line: {: ~user2}{} >line: {: ~user1}{} + comptesteval 'zsh_directory_name() { compadd "$expl[@]" -- name1 name2 }' + comptest $': ~[\t\t\t\t' +0:dynamic directory names after ~[ +>line: {: ~[name}{} +>line: {: ~[name}{} +>DESCRIPTION:{dynamically named directory} +>NO:{name1} +>NO:{name2} +>line: {: ~[name1]}{} +>line: {: ~[name2]}{} + comptest $'echo ;:\C-b\C-b\t' 0:directories and files before separator >line: {echo }{;:} |