{"action":"created","issue":{"url":"https://api.github.com/repos/zsh-users/zsh-syntax-highlighting/issues/187","labels_url":"https://api.github.com/repos/zsh-users/zsh-syntax-highlighting/issues/187/labels{/name}","comments_url":"https://api.github.com/repos/zsh-users/zsh-syntax-highlighting/issues/187/comments","events_url":"https://api.github.com/repos/zsh-users/zsh-syntax-highlighting/issues/187/events","html_url":"https://github.com/zsh-users/zsh-syntax-highlighting/issues/187","id":105047451,"number":187,"title":"path_approx: Apply restrictions for command word","user":{"login":"danielshahaf","id":2141904,"avatar_url":"https://avatars.githubusercontent.com/u/2141904?v=3","gravatar_id":"","url":"https://api.github.com/users/danielshahaf","html_url":"https://github.com/danielshahaf","followers_url":"https://api.github.com/users/danielshahaf/followers","following_url":"https://api.github.com/users/danielshahaf/following{/other_user}","gists_url":"https://api.github.com/users/danielshahaf/gists{/gist_id}","starred_url":"https://api.github.com/users/danielshahaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielshahaf/subscriptions","organizations_url":"https://api.github.com/users/danielshahaf/orgs","repos_url":"https://api.github.com/users/danielshahaf/repos","events_url":"https://api.github.com/users/danielshahaf/events{/privacy}","received_events_url":"https://api.github.com/users/danielshahaf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zsh-users/zsh-syntax-highlighting/labels/Bug","name":"Bug","color":"d62727"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-05T20:30:23Z","updated_at":"2015-09-06T17:11:14Z","closed_at":null,"body":"(Spun off from #148)\r\n\r\nWhen the word being completed is the command word, `path_approx` should only glob things that could be a valid command word: only absolute paths and things in $PATH, which are either executable or (if `AUTO_CD` is set) directories."},"comment":{"url":"https://api.github.com/repos/zsh-users/zsh-syntax-highlighting/issues/comments/138100755","html_url":"https://github.com/zsh-users/zsh-syntax-highlighting/issues/187#issuecomment-138100755","issue_url":"https://api.github.com/repos/zsh-users/zsh-syntax-highlighting/issues/187","id":138100755,"user":{"login":"Valodim","id":27813,"avatar_url":"https://avatars.githubusercontent.com/u/27813?v=3","gravatar_id":"","url":"https://api.github.com/users/Valodim","html_url":"https://github.com/Valodim","followers_url":"https://api.github.com/users/Valodim/followers","following_url":"https://api.github.com/users/Valodim/following{/other_user}","gists_url":"https://api.github.com/users/Valodim/gists{/gist_id}","starred_url":"https://api.github.com/users/Valodim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Valodim/subscriptions","organizations_url":"https://api.github.com/users/Valodim/orgs","repos_url":"https://api.github.com/users/Valodim/repos","events_url":"https://api.github.com/users/Valodim/events{/privacy}","received_events_url":"https://api.github.com/users/Valodim/received_events","type":"User","site_admin":false},"created_at":"2015-09-06T17:11:14Z","updated_at":"2015-09-06T17:11:14Z","body":"Hm. path_approx was one of these \"hey that'd be cool maybe?\" features. The use case is mild reassurance (i.e. other than a non-highlighted parameter) that a file does not already exist but a similar one does, which is usually a very distinct scenario from working with an actually existing file name. I admit it's not super important to have in any particular situation, but it has never annoyed me either.\r\n\r\nI don't mind either way, feel free to keep or ditch it :)"}}