{"action":"created","issue":{"url":"https://api.github.com/repos/zsh-users/zsh-completions/issues/547","repository_url":"https://api.github.com/repos/zsh-users/zsh-completions","labels_url":"https://api.github.com/repos/zsh-users/zsh-completions/issues/547/labels{/name}","comments_url":"https://api.github.com/repos/zsh-users/zsh-completions/issues/547/comments","events_url":"https://api.github.com/repos/zsh-users/zsh-completions/issues/547/events","html_url":"https://github.com/zsh-users/zsh-completions/pull/547","id":284316289,"number":547,"title":"improve tmuxp load completions","user":{"login":"tony","id":26336,"avatar_url":"https://avatars0.githubusercontent.com/u/26336?v=4","gravatar_id":"","url":"https://api.github.com/users/tony","html_url":"https://github.com/tony","followers_url":"https://api.github.com/users/tony/followers","following_url":"https://api.github.com/users/tony/following{/other_user}","gists_url":"https://api.github.com/users/tony/gists{/gist_id}","starred_url":"https://api.github.com/users/tony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tony/subscriptions","organizations_url":"https://api.github.com/users/tony/orgs","repos_url":"https://api.github.com/users/tony/repos","events_url":"https://api.github.com/users/tony/events{/privacy}","received_events_url":"https://api.github.com/users/tony/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-23T17:06:33Z","updated_at":"2018-02-19T20:01:40Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/zsh-users/zsh-completions/pulls/547","html_url":"https://github.com/zsh-users/zsh-completions/pull/547","diff_url":"https://github.com/zsh-users/zsh-completions/pull/547.diff","patch_url":"https://github.com/zsh-users/zsh-completions/pull/547.patch"},"body":"``'sessions-other:session in current directory:_path_files -g \"**/*.(json|yaml|yml)(-.)\"'`` can cause a hang with traversing directories and leave the shell inoperable for a few seconds. After the lock up ends, it may either ring the system bell, or return any directory containing a json or yaml file.\r\n\r\nThis patch limits ``*.(json|yaml|yml)(-.)`` to the current directory to eliminate the hang, while still allowing to complete files. It also uses double splats, but only for finding directories with ``.tmuxp(json/yaml/yml)`` files, which is faster and more accurate. Normal directory completion is also preserved.\r\n\r\n1. Limit wildcard json/yaml file matches to current directory\r\n2. Preserve all directory completion (for tabbing into directories)\r\n3. Use unlimited depth search for directories with .tmuxp.(yaml/json)\r\n   inside them. tmuxp load command can load the file or the directory.\r\n4. Preserves behavior of finding files in ``$HOME/.tmuxp``"},"comment":{"url":"https://api.github.com/repos/zsh-users/zsh-completions/issues/comments/366790388","html_url":"https://github.com/zsh-users/zsh-completions/pull/547#issuecomment-366790388","issue_url":"https://api.github.com/repos/zsh-users/zsh-completions/issues/547","id":366790388,"user":{"login":"tony","id":26336,"avatar_url":"https://avatars0.githubusercontent.com/u/26336?v=4","gravatar_id":"","url":"https://api.github.com/users/tony","html_url":"https://github.com/tony","followers_url":"https://api.github.com/users/tony/followers","following_url":"https://api.github.com/users/tony/following{/other_user}","gists_url":"https://api.github.com/users/tony/gists{/gist_id}","starred_url":"https://api.github.com/users/tony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tony/subscriptions","organizations_url":"https://api.github.com/users/tony/orgs","repos_url":"https://api.github.com/users/tony/repos","events_url":"https://api.github.com/users/tony/events{/privacy}","received_events_url":"https://api.github.com/users/tony/received_events","type":"User","site_admin":false},"created_at":"2018-02-19T20:01:40Z","updated_at":"2018-02-19T20:01:40Z","author_association":"NONE","body":"Any chance this can get looked at, @zsh-users?\r\n\r\nThe current behavior is broken and causes crashes. This PR fixes it.\r\n\r\nOnly effects tmuxp completions."}}
{"actor":{"display_login":"tony"}}