From 1588644f924bb702e56a007be629c54cf14e5e5d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 28 Nov 2015 14:40:49 +0100 Subject: m + add shell tab-completion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/gpp.auto-completion | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/gpp.auto-completion (limited to 'src/gpp.auto-completion') diff --git a/src/gpp.auto-completion b/src/gpp.auto-completion new file mode 100644 index 0000000..6727fb3 --- /dev/null +++ b/src/gpp.auto-completion @@ -0,0 +1,33 @@ +(#{GPP} + (argumented (option -s --symbol) (complete --symbol) (arg SYMBOL) (files -0) + (desc 'Set the prefix symbol for preprocessor directives')) + + (argumented (option -e --encoding) (complete --encoding) (arg ENCODING) (files -0) (suggest encoding) + (desc 'Select encoding of the file')) + (suggestion encoding (verbatim UTF-8)) + + (argumented (option -n --iterations) (complete --iterations) (arg N) (files -0) + (desc 'Select the number of times to perform the preprocessing recursively')) + + (unargumented (option -u --unshebang) (complete --unshebang) + (desc 'Clear the shebang line, twice to delete it')) + + (argumented (option -i --input) (complete --input) (arg FILE) (files -f) + (desc 'Select file to process')) + + (argumented (option -i --output) (complete --output) (arg FILE) (files -f) + (desc 'Select output file')) + + (argumented (option -f --file) (complete --file) (arg FILE) (files -r) + (desc 'Select file to both process and store the output')) + + (argumented (option -D --export) (complete --export) (arg NAME=VALUE) (files -0) + (desc 'Set environment variable')) + + (unargumented (option -v --version) (complete --version) + (desc 'Print program name and version and exit')) + + (unargumented (option -c --copying) (complete --copying) + (desc 'Print copyright notice and exit')) +) + -- cgit v1.2.3-70-g09d2