aboutsummaryrefslogtreecommitdiffstats
path: root/src/_tmuxp
diff options
context:
space:
mode:
authorTony Narlock <tony@git-pull.com>2017-12-23 11:04:09 -0600
committerTony Narlock <tony@git-pull.com>2018-03-14 10:32:03 -0500
commit4508695cb23007f00c88dee362f788deca82ed25 (patch)
tree4c28d392d379001a7748682e5d870f143b886981 /src/_tmuxp
parentMerge pull request #545 from dkarter/patch-1 (diff)
downloadzsh-completions-4508695cb23007f00c88dee362f788deca82ed25.tar
zsh-completions-4508695cb23007f00c88dee362f788deca82ed25.tar.gz
zsh-completions-4508695cb23007f00c88dee362f788deca82ed25.tar.bz2
zsh-completions-4508695cb23007f00c88dee362f788deca82ed25.tar.lz
zsh-completions-4508695cb23007f00c88dee362f788deca82ed25.tar.xz
zsh-completions-4508695cb23007f00c88dee362f788deca82ed25.tar.zst
zsh-completions-4508695cb23007f00c88dee362f788deca82ed25.zip
improve tmuxp load completions
1. Limit wildcard json/yaml file matches to current directory 2. Preserve all directory completion (for tabbing into directories) 3. Use unlimited depth search for directories with .tmuxp.(yaml/json) inside them. tmuxp load command can load the file or the directory.
Diffstat (limited to 'src/_tmuxp')
-rw-r--r--src/_tmuxp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/_tmuxp b/src/_tmuxp
index f42bbb2..66a3dda 100644
--- a/src/_tmuxp
+++ b/src/_tmuxp
@@ -101,7 +101,8 @@ __tmuxp_load() {
local s
_alternative \
'sessions-user:user session:compadd -F line - ~/.tmuxp/*.(json|yml|yaml)(:r:t)' \
- 'sessions-other:session in current directory:_path_files -g "**/*.(json|yaml|yml)(-.)"'
+ 'sessions-other:session in current directory:_path_files -/ -g "**/.tmuxp.(yml|yaml|json)"' \
+ 'sessions-other:session in current directory:_path_files -g "*.(yml|yaml|json)"'
;;
esac
}