Skip to content

Commit c8b3d90

Browse files
Hi-AngelMéven Car
authored and
Méven Car
committed
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
1 parent 803bbd1 commit c8b3d90

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

completions/dolphin.zsh

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,19 @@
66

77
local ret=1
88

9+
# complete both URL protocols and local directories
10+
_urls_and_dirs() {
11+
_urls
12+
_directories
13+
}
14+
915
_arguments -C \
1016
'(* -)'{-h,--help}'[Displays help on commandline options]' \
1117
'--select[The files and folders passed as arguments will be selected.]' \
1218
'--split[Dolphin will get started with a split view.]' \
1319
'--new-window[Dolphin will explicitly open in a new window.]' \
1420
'--daemon[Start Dolphin Daemon (only required for DBus Interface).]' \
15-
'*:: :_urls' \
21+
'*:: :_urls_and_dirs' \
1622
&& ret=0
1723

1824
return $ret

0 commit comments

Comments
 (0)