From 106e0300963bf194ca4e3c16f568c7d44114583a Mon Sep 17 00:00:00 2001 From: bagohart Date: Thu, 25 Aug 2022 13:20:15 +0200 Subject: [PATCH] added completions for sad (#9145) * added completions for sad and added note in changelog * ran fish_indent on completion file * split -h and --help into two distinct completion options --- CHANGELOG.rst | 1 + share/completions/sad.fish | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 share/completions/sad.fish diff --git a/CHANGELOG.rst b/CHANGELOG.rst index b166343f3..60f38901a 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -70,6 +70,7 @@ Completions - ``firefox-developer-edition`` - ``kind`` (:issue:`9110`) - ``zig`` (:issue:`9083`) + - ``sad`` Improved terminal support ^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/share/completions/sad.fish b/share/completions/sad.fish new file mode 100644 index 000000000..d62203923 --- /dev/null +++ b/share/completions/sad.fish @@ -0,0 +1,10 @@ +complete sad -s 0 -l read0 -d 'Use \0 as stdin delimiter' +complete sad -s e -l exact -d 'String literal mode' +complete sad -x -s f -l flags -d "Regex flags: use `--help` instead of `-h` to see details" +complete sad -x -l fzf -a never -d "Additional Fzf options, disable = never" +complete sad -s h -d 'Print short help information' +complete sad -l help -d 'Print detailed help information' +complete sad -s k -l commit -d 'No preview, write changes to file' +complete sad -x -s p -l pager -a never -d 'Colourizing program, disable = never, default = $GIT_PAGER' +complete sad -x -s u -l unified -a "0 1 2 3 4 5" -d 'Same as in GNU diff --unified={size}, affects aggregate size' +complete sad -x -s V -l version -d 'Print version information'