{"action":"created","issue":{"url":"https://api.github.com/repos/zimfw/zimfw/issues/212","repository_url":"https://api.github.com/repos/zimfw/zimfw","labels_url":"https://api.github.com/repos/zimfw/zimfw/issues/212/labels{/name}","comments_url":"https://api.github.com/repos/zimfw/zimfw/issues/212/comments","events_url":"https://api.github.com/repos/zimfw/zimfw/issues/212/events","html_url":"https://github.com/zimfw/zimfw/issues/212","id":255897780,"number":212,"title":"Tab completion incorrectly completes the wrong file when starting with the end of the filename","user":{"login":"protist","id":646668,"avatar_url":"https://avatars1.githubusercontent.com/u/646668?v=4","gravatar_id":"","url":"https://api.github.com/users/protist","html_url":"https://github.com/protist","followers_url":"https://api.github.com/users/protist/followers","following_url":"https://api.github.com/users/protist/following{/other_user}","gists_url":"https://api.github.com/users/protist/gists{/gist_id}","starred_url":"https://api.github.com/users/protist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/protist/subscriptions","organizations_url":"https://api.github.com/users/protist/orgs","repos_url":"https://api.github.com/users/protist/repos","events_url":"https://api.github.com/users/protist/events{/privacy}","received_events_url":"https://api.github.com/users/protist/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":26,"created_at":"2017-09-07T10:58:27Z","updated_at":"2018-04-11T12:26:57Z","closed_at":null,"author_association":"NONE","body":"Please check the existing issues to make sure you're not duplicating a report.\r\n\r\nFor bug reports, please provide the following information:\r\n\r\nIn a terminal, run `zmanage info` and paste the output below:\r\n\r\n```\r\n$ zmanage info\r\nzsh: command not found: zmanage\r\n```\r\nBut I'm running the zim master via Arch Linux AUR's zsh-zim-git: 9eaba9a\r\n\r\n- gist of .zimrc: `zmodules=(completion)`\r\n- gist of .zshrc: `source /usr/lib/zim/init.zsh`\r\n\r\nDescription\r\n-----------\r\nTab completion incorrectly fully completes the wrong file when starting with the end of the filename.\r\n\r\nSteps to reproduce\r\n------------------\r\nTab completion works fine if starting from the start of the filename.\r\n```\r\n$ touch foo-bar foo-baz-bar\r\n$ touch f<tab>\r\n$ touch foo-ba<tab>\r\n -- file --\r\nfoo-bar      foo-baz-bar\r\n```\r\n\r\nHowever, if I start typing from the back (or middle) of the filename, it fails.\r\n```\r\n$ touch bar<tab>\r\n$ touch foo-bar<tab>\r\n           ^ cursor here\r\n$ touch foo-bar\r\n                ^ cursor here\r\n```\r\nI would expect the second tab to bring up the completion-selection menu. However, it immediately completes to the shorter version instead.\r\n\r\nAnother slightly different case is if I type the *entirety* of the shared string.\r\n```\r\n$ touch -bar<tab>\r\n$ touch foo-bar\r\n                ^ cursor here\r\n```\r\nIn this case, I'm not even given the cursor in the middle, it jumps straight to the end."},"comment":{"url":"https://api.github.com/repos/zimfw/zimfw/issues/comments/380433570","html_url":"https://github.com/zimfw/zimfw/issues/212#issuecomment-380433570","issue_url":"https://api.github.com/repos/zimfw/zimfw/issues/212","id":380433570,"user":{"login":"ericbn","id":4120606,"avatar_url":"https://avatars3.githubusercontent.com/u/4120606?v=4","gravatar_id":"","url":"https://api.github.com/users/ericbn","html_url":"https://github.com/ericbn","followers_url":"https://api.github.com/users/ericbn/followers","following_url":"https://api.github.com/users/ericbn/following{/other_user}","gists_url":"https://api.github.com/users/ericbn/gists{/gist_id}","starred_url":"https://api.github.com/users/ericbn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericbn/subscriptions","organizations_url":"https://api.github.com/users/ericbn/orgs","repos_url":"https://api.github.com/users/ericbn/repos","events_url":"https://api.github.com/users/ericbn/events{/privacy}","received_events_url":"https://api.github.com/users/ericbn/received_events","type":"User","site_admin":false},"created_at":"2018-04-11T12:26:57Z","updated_at":"2018-04-11T12:26:57Z","author_association":"OWNER","body":"Doing `setopt GLOB_COMPLETE` works, but I consider that a side effect, as `GLOB_COMPLETE` is not what we want to do here."}}
{"actor":{"display_login":"ericbn"}}