diff options
| author | ivan tkachenko <[email protected]> | 2022-11-14 23:44:49 +0300 |
|---|---|---|
| committer | ivan tkachenko <[email protected]> | 2022-12-12 21:19:42 +0300 |
| commit | d55099ad47b8c0053042b5e1d04d1055483ae7e8 (patch) | |
| tree | f791ee61d6838cebdcb6bf7e9666414ab81b4093 /completions/dolphin.zsh | |
| parent | a19f29f4e5f4f942713502f56f5266937722be96 (diff) | |
Add zsh completions
Completes all non-generic-Qt options listed in --help output.
Note: it uses the new variable KDE_INSTALL_ZSHAUTOCOMPLETEDIR, which was
added in ECM 5.101.
Read more: https://invent.kde.org/frameworks/extra-cmake-modules/-/merge_requests/310
Diffstat (limited to 'completions/dolphin.zsh')
| -rw-r--r-- | completions/dolphin.zsh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/completions/dolphin.zsh b/completions/dolphin.zsh new file mode 100644 index 000000000..3433c5496 --- /dev/null +++ b/completions/dolphin.zsh @@ -0,0 +1,18 @@ +#compdef dolphin + +# SPDX-FileCopyrightText: 2022 ivan tkachenko <[email protected]> +# +# SPDX-License-Identifier: GPL-2.0-or-later + +local ret=1 + +_arguments -C \ + '(* -)'{-h,--help}'[Displays help on commandline options]' \ + '--select[The files and folders passed as arguments will be selected.]' \ + '--split[Dolphin will get started with a split view.]' \ + '--new-window[Dolphin will explicitly open in a new window.]' \ + '--daemon[Start Dolphin Daemon (only required for DBus Interface).]' \ + '*:: :_urls' \ + && ret=0 + +return $ret |
