From ca730cf7148df6511fb79b224ab488583ecaad5c Mon Sep 17 00:00:00 2001 From: exploide Date: Fri, 18 Sep 2020 17:07:34 +0200 Subject: [PATCH] added completions for micro --- share/completions/micro.fish | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 share/completions/micro.fish diff --git a/share/completions/micro.fish b/share/completions/micro.fish new file mode 100644 index 000000000..70a098bd5 --- /dev/null +++ b/share/completions/micro.fish @@ -0,0 +1,19 @@ +complete -c micro -o clean -d 'Cleans the configuration directory' +complete -c micro -o config-dir -xa '(__fish_complete_directories)' -d 'Custom location for the configuration directory' +complete -c micro -o options -d 'Show all option help' +complete -c micro -o debug -d 'Enable debug mode' +complete -c micro -o version -d 'Show version information' +complete -c micro -o help -d 'Show help message' + +for option in (micro -options | string replace -f -r '^-(\S+)\s.*' '$1') + complete -c micro -o $option -x +end + +complete -c micro -o plugin -xa " + install\t'Install plugins' + remove\t'Remove plugins' + update\t'Update plugins' + search\t'Search for a plugin' + list\t'List installed plugins' + available\t'List available plugins' +"