{"thread":{"id":"49311","subject":"zsh completion does not support branches with quotes/apostrophes","startedAt":"2018-09-10T16:03:21Z","lastAt":"2018-09-10T16:03:21Z","messageCount":1,"participants":["Vasily Korytov"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"357791","messageId":"E2F53114-B4F9-4787-8017-60C976C8E03C@icloud.com","threadId":"49311","inReplyTo":null,"subject":"zsh completion does not support branches with quotes/apostrophes","fromName":"Vasily Korytov","fromEmail":"vasily.korytov@icloud.com","sentAt":"2018-09-10T15:02:59Z","receivedAt":"2018-09-10T16:03:21Z","isPatch":false,"sender":{"key":"vasily.korytov@icloud.com","avatar":null},"body":"Hi,\n\nI have the latest git and it includes a nice auto-completion for zsh: contrib/completion/git-completion.zsh\n\nI’ve been using it happily for.. years I guess, until I ran into a problem yesterday.\nI have a branch with apostrophe, named like: somebody's_business\n\nWhen I want to switch to that branch, I type: git checkout some[tab] and the result is:\n`git checkout somebody's_business` (and that does not work in zsh, of course).\nFor this to work it should escape the apostrophe and the completion should result it:\ngit checkout somebody\\'s_business\n\nWhen I try to use the quotes in the parameters, this does not work at all:\ni.e. when I type `git checkout -b “some[tab]` nothing is completed.\n\nSo the only work-around for now seems to be manually fixing the completion results, escaping the quote.\nHowever, it would be very nice if this could be fixed.\n\nThanks.\n\n-- \n  Vasily Korytov\n  https://chillum.github.io\n\n"}]}