]> cloud.milkyroute.net Git - dolphin.git/blob - completions/dolphin.zsh
GIT_SILENT Sync po/docbooks with svn
[dolphin.git] / completions / dolphin.zsh
1 #compdef dolphin
2
3 # SPDX-FileCopyrightText: 2022 ivan tkachenko <me@ratijas.tk>
4 #
5 # SPDX-License-Identifier: GPL-2.0-or-later
6
7 local ret=1
8
9 # complete both URL protocols and local directories
10 _urls_and_dirs() {
11 _urls
12 _directories
13 }
14
15 _arguments -C \
16 '(* -)'{-h,--help}'[Displays help on commandline options]' \
17 '--select[The files and folders passed as arguments will be selected.]' \
18 '--split[Dolphin will get started with a split view.]' \
19 '--new-window[Dolphin will explicitly open in a new window.]' \
20 '--daemon[Start Dolphin Daemon (only required for DBus Interface).]' \
21 '*:: :_urls_and_dirs' \
22 && ret=0
23
24 return $ret