mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-28 20:55:26 +00:00
dolphin.zsh: complete both directories and URL protocols
Dolphin is mostly used for navigating local paths (or remote paths mounted locally), so it is important to have directories completed as well as URLs
This commit is contained in:
parent
803bbd1ae1
commit
c8b3d90a57
|
@ -6,13 +6,19 @@
|
|||
|
||||
local ret=1
|
||||
|
||||
# complete both URL protocols and local directories
|
||||
_urls_and_dirs() {
|
||||
_urls
|
||||
_directories
|
||||
}
|
||||
|
||||
_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' \
|
||||
'*:: :_urls_and_dirs' \
|
||||
&& ret=0
|
||||
|
||||
return $ret
|
||||
|
|
Loading…
Reference in a new issue