2022-11-14 20:44:49 +00:00
|
|
|
#compdef dolphin
|
|
|
|
|
|
|
|
# SPDX-FileCopyrightText: 2022 ivan tkachenko <me@ratijas.tk>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
local ret=1
|
|
|
|
|
2024-02-29 17:56:53 +00:00
|
|
|
# complete both URL protocols and local directories
|
|
|
|
_urls_and_dirs() {
|
|
|
|
_urls
|
|
|
|
_directories
|
|
|
|
}
|
|
|
|
|
2022-11-14 20:44:49 +00:00
|
|
|
_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).]' \
|
2024-02-29 17:56:53 +00:00
|
|
|
'*:: :_urls_and_dirs' \
|
2022-11-14 20:44:49 +00:00
|
|
|
&& ret=0
|
|
|
|
|
|
|
|
return $ret
|