From 2b1a0a9fdb87c5bd0ea73b4c13ac35122327e5b6 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 2 Dec 2015 10:27:12 +0100 Subject: add -b -c -S -p to (files) (this does not change the program, because this is not actually supported) + add -s for (files) in doc/syntax, which was missing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- doc/example | 4 +++- doc/info/auto-auto-complete.texinfo | 8 ++++++++ doc/syntax | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/example b/doc/example index d1e6b68..b2f15ab 100644 --- a/doc/example +++ b/doc/example @@ -19,7 +19,9 @@ ) ; in files, -0 mean to not accept files, you can use to before other arguments to disallow them, - ; -a means accept all files, -d → directory, -s → socket, -D → door, -f → regular or pipe, -l → symlink (allowed by default on all), -r → regular + ; -a means accept all files, -d → directory, -s → socket, -D → door, -f → regular or pipe, + ; -l → symlink (allowed by default on all), -r → regular, -b → block device, + ; -c → character device, -S → block device or character device, -p → pipe (multiple argumented ((options -f --file --pony) (complete --file --pony) (arg PONY) (suggest pony-f) (files -f *.pony) (desc 'Specify the pony that should printed')) ((options +f ++file ++pony) (complete ++file ++pony) (arg PONY) (suggest pony+f) (files -f *.pony) (desc 'Specify the extrapony that should printed')) diff --git a/doc/info/auto-auto-complete.texinfo b/doc/info/auto-auto-complete.texinfo index 0931933..d57490a 100644 --- a/doc/info/auto-auto-complete.texinfo +++ b/doc/info/auto-auto-complete.texinfo @@ -341,6 +341,8 @@ Suggest all files. Suggest regular files and pipes. @item -r Suggest regular files but not pipes. +@item -p +Suggest pipes but not regular files. @item -d Suggest directories. @item -l @@ -350,6 +352,12 @@ but @code{-0} can be used to stop this. Suggest sockets. @item -D Suggest doors. +@item -b +Suggest block devices. +@item -c +Suggest character devices. +@item -S +Suggest block devices and character devices. @end table @example diff --git a/doc/syntax b/doc/syntax index df16bbb..eaf0bae 100644 --- a/doc/syntax +++ b/doc/syntax @@ -36,7 +36,7 @@ arg ::= '(' _ "arg" _value ')' suggest ::= '(' _ "suggest" _value ')' files ::= '(' _ "files" _value [{_ value}] ')' -::= {"-0" | "-a" | "-d" | "-D" | "-f" | "-l" | "-r"} [{value}] +::= {"-0" | "-a" | "-d" | "-D" | "-f" | "-l" | "-r" | "-b" | "-c" | "-s" | "-S" | "-p"} [{value}] bind ::= '(' _ "bind" _value ')' -- cgit v1.2.3-70-g09d2