diff options
| author | Konstantin Kharlamov <[email protected]> | 2024-02-29 20:56:53 +0300 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2024-03-08 17:01:03 +0000 |
| commit | c8b3d90a576713fd16b3045dcd5d7d8bc25a1a49 (patch) | |
| tree | 6f38ded900bc72c9f8469ed9febcd1fbd55ae24c | |
| parent | 803bbd1ae191a89ffdb3889acb6621431525f96d (diff) | |
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
| -rw-r--r-- | completions/dolphin.zsh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/completions/dolphin.zsh b/completions/dolphin.zsh index 3433c5496..87971a854 100644 --- a/completions/dolphin.zsh +++ b/completions/dolphin.zsh @@ -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 |
