payload: {"action":"created","issue":{"url":"https://api.github.com/repos/woefe/git-prompt.zsh/issues/9","repository_url":"https://api.github.com/repos/woefe/git-prompt.zsh","labels_url":"https://api.github.com/repos/woefe/git-prompt.zsh/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/woefe/git-prompt.zsh/issues/9/comments","events_url":"https://api.github.com/repos/woefe/git-prompt.zsh/issues/9/events","html_url":"https://github.com/woefe/git-prompt.zsh/issues/9","id":445808349,"node_id":"MDU6SXNzdWU0NDU4MDgzNDk=","number":9,"title":"Optional async for functions zle-line-init and zle-keymap-select","user":{"login":"Felixoid","id":3025537,"node_id":"MDQ6VXNlcjMwMjU1Mzc=","avatar_url":"https://avatars1.githubusercontent.com/u/3025537?v=4","gravatar_id":"","url":"https://api.github.com/users/Felixoid","html_url":"https://github.com/Felixoid","followers_url":"https://api.github.com/users/Felixoid/followers","following_url":"https://api.github.com/users/Felixoid/following{/other_user}","gists_url":"https://api.github.com/users/Felixoid/gists{/gist_id}","starred_url":"https://api.github.com/users/Felixoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Felixoid/subscriptions","organizations_url":"https://api.github.com/users/Felixoid/orgs","repos_url":"https://api.github.com/users/Felixoid/repos","events_url":"https://api.github.com/users/Felixoid/events{/privacy}","received_events_url":"https://api.github.com/users/Felixoid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-05-19T11:21:27Z","updated_at":"2019-05-21T19:41:09Z","closed_at":null,"author_association":"NONE","body":"Hey, Wolfgang.\r\n\r\nAfter the recent update of the plugin to v2.0.0 the `$(gitprompt)` has stopped working after the command execution. It works only after vim mode switching. That's a screenshot of what do I mean:  \r\n![screen_2019-05-19_13-16-37_window](https://user-images.githubusercontent.com/3025537/57981503-a2d2ec00-7a38-11e9-844c-9e7a18eac543.png) \r\n\r\nHere is my [functions](https://github.com/Felixoid/dotfiles/blob/985ac13ec270ca024ffeb9ba70e19c7cdac9a241/tag-zsh/zshrc#L30-L50)\r\n\r\nMaybe is it still would be an option to disable async? Or do you have an idea about how to handle it properly in my case?\r\n\r\n**upd**: I've already tried to replace `GIT_STATUS` with `gitprompt` in PS1, didn't help:\r\n\r\n```diff\r\ndiff --git a/tag-zsh/zshrc b/tag-zsh/zshrc\r\nindex d3785db..a6342b4 100644\r\n--- a/tag-zsh/zshrc\r\n+++ b/tag-zsh/zshrc\r\n@@ -25,6 +25,10 @@ if [ -r ~/.config/zsh/git-prompt.zsh ]; then\r\n   source ~/.config/zsh/git-prompt.zsh\r\n   _GIT_PROMPT_ENABLED=true\r\n   ZSH_GIT_PROMPT_SHOW_STASH=true\r\n+else\r\n+  gitprompt() {\r\n+    :\r\n+  }\r\n fi\r\n \r\n function zle-line-init zle-keymap-select {\r\n@@ -37,12 +41,11 @@ function zle-line-init zle-keymap-select {\r\n     local USER_PROMPT=\"%F{$USER_FG}%n%f@%F{$HOST_FG}%m%f\"\r\n     [ \"${SSH_CLIENT}\" ] && local SSH_PROMPT=\"%F{yellow}[ssh from ${SSH_CLIENT%% *}]%f \"\r\n     [ \"${VIRTUAL_ENV}\" ] && local VENV=\"%F{green}venv=($(basename $VIRTUAL_ENV))%f \"\r\n-    [ \"${_GIT_PROMPT_ENABLED}\" ] && local GIT_STATUS=\"$(gitprompt) \"\r\n     case $KEYMAP in\r\n       viins|main) local VI=\"%F{2}%(!.#.>)$(prompt_char)>%f\" ;;\r\n       vicmd)      local VI=\"%F{3}<$(prompt_char)%(!.#.<)%f\" ;;\r\n     esac\r\n-    export PS1=\"┌%(?..%F{1})[%D{%H:%M:%S}]%f %(!.${ROOT_PROMPT}.${USER_PROMPT}):%~ ${VENV}${SSH_PROMPT}${GIT_STATUS}\"$'\\n'\"└${VI} \"\r\n+    export PS1=\"┌%(?..%F{1})[%D{%H:%M:%S}]%f %(!.${ROOT_PROMPT}.${USER_PROMPT}):%~ ${VENV}${SSH_PROMPT}$(gitprompt)\"$'\\n'\"└${VI} \"\r\n     RPROMPT=\"%(?..%F{1}[e:%?]%f)\"\r\n     zle reset-prompt\r\n     # this line fixes the issue with errasing last line in vim mode by Alt+A or Alt+I\r\n```"},"comment":{"url":"https://api.github.com/repos/woefe/git-prompt.zsh/issues/comments/494529663","html_url":"https://github.com/woefe/git-prompt.zsh/issues/9#issuecomment-494529663","issue_url":"https://api.github.com/repos/woefe/git-prompt.zsh/issues/9","id":494529663,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5NDUyOTY2Mw==","user":{"login":"woefe","id":4680564,"node_id":"MDQ6VXNlcjQ2ODA1NjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/4680564?v=4","gravatar_id":"","url":"https://api.github.com/users/woefe","html_url":"https://github.com/woefe","followers_url":"https://api.github.com/users/woefe/followers","following_url":"https://api.github.com/users/woefe/following{/other_user}","gists_url":"https://api.github.com/users/woefe/gists{/gist_id}","starred_url":"https://api.github.com/users/woefe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woefe/subscriptions","organizations_url":"https://api.github.com/users/woefe/orgs","repos_url":"https://api.github.com/users/woefe/repos","events_url":"https://api.github.com/users/woefe/events{/privacy}","received_events_url":"https://api.github.com/users/woefe/received_events","type":"User","site_admin":false},"created_at":"2019-05-21T19:41:09Z","updated_at":"2019-05-21T19:41:09Z","author_association":"OWNER","body":"> Good to mention: if I use \"$(gitprompt)\" in PS1 it doesn't work in the way from the topic. But after replacing it with '$(gitprompt)' it works even in the async way.\r\n\r\nOh yeah of course. I didn't think about that at all. The problem with double qotes is that the subsitution happens when you set PS1, which is too early. I think documenting it is the way to go. If more problems arise async, I will think about implementing a blocking option."}}
other: {"actor":{"display_login":"woefe"}}