{"action":"created","issue":{"url":"https://api.github.com/repos/zsh-users/zsh-autosuggestions/issues/183","repository_url":"https://api.github.com/repos/zsh-users/zsh-autosuggestions","labels_url":"https://api.github.com/repos/zsh-users/zsh-autosuggestions/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/zsh-users/zsh-autosuggestions/issues/183/comments","events_url":"https://api.github.com/repos/zsh-users/zsh-autosuggestions/issues/183/events","html_url":"https://github.com/zsh-users/zsh-autosuggestions/issues/183","id":168327126,"number":183,"title":"How to execute widgets from inside functions?","user":{"login":"OmeGak","id":716307,"avatar_url":"https://avatars.githubusercontent.com/u/716307?v=3","gravatar_id":"","url":"https://api.github.com/users/OmeGak","html_url":"https://github.com/OmeGak","followers_url":"https://api.github.com/users/OmeGak/followers","following_url":"https://api.github.com/users/OmeGak/following{/other_user}","gists_url":"https://api.github.com/users/OmeGak/gists{/gist_id}","starred_url":"https://api.github.com/users/OmeGak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OmeGak/subscriptions","organizations_url":"https://api.github.com/users/OmeGak/orgs","repos_url":"https://api.github.com/users/OmeGak/repos","events_url":"https://api.github.com/users/OmeGak/events{/privacy}","received_events_url":"https://api.github.com/users/OmeGak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zsh-users/zsh-autosuggestions/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/zsh-users/zsh-autosuggestions/labels/has-workaround","name":"has-workaround","color":"009800"},{"url":"https://api.github.com/repos/zsh-users/zsh-autosuggestions/labels/reproduced","name":"reproduced","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-29T13:40:24Z","updated_at":"2016-07-30T12:47:22Z","closed_at":null,"body":"I'm trying to execute `autosuggest-clear` and `autosuggest-accept` from inside a function. This is my most basic case:\r\n\r\n```bash\r\nfoo() {\r\n  # ... other code\r\n  zle autosuggest-clear\r\n}\r\nzle -N foo\r\nbindkey '^K' foo\r\n```\r\n\r\n`foo` gets executed on `Ctrl + K`, but `zle autosuggest-clear` does nothing. Am I missing something? "},"comment":{"url":"https://api.github.com/repos/zsh-users/zsh-autosuggestions/issues/comments/236363422","html_url":"https://github.com/zsh-users/zsh-autosuggestions/issues/183#issuecomment-236363422","issue_url":"https://api.github.com/repos/zsh-users/zsh-autosuggestions/issues/183","id":236363422,"user":{"login":"OmeGak","id":716307,"avatar_url":"https://avatars.githubusercontent.com/u/716307?v=3","gravatar_id":"","url":"https://api.github.com/users/OmeGak","html_url":"https://github.com/OmeGak","followers_url":"https://api.github.com/users/OmeGak/followers","following_url":"https://api.github.com/users/OmeGak/following{/other_user}","gists_url":"https://api.github.com/users/OmeGak/gists{/gist_id}","starred_url":"https://api.github.com/users/OmeGak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OmeGak/subscriptions","organizations_url":"https://api.github.com/users/OmeGak/orgs","repos_url":"https://api.github.com/users/OmeGak/repos","events_url":"https://api.github.com/users/OmeGak/events{/privacy}","received_events_url":"https://api.github.com/users/OmeGak/received_events","type":"User","site_admin":false},"created_at":"2016-07-30T12:47:22Z","updated_at":"2016-07-30T12:47:22Z","body":"Seems to be working for me. Thanks!"}}
{"actor":{"display_login":"OmeGak"}}