{"action":"created","issue":{"url":"https://api.github.com/repos/koekeishiya/kwm/issues/110","labels_url":"https://api.github.com/repos/koekeishiya/kwm/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/koekeishiya/kwm/issues/110/comments","events_url":"https://api.github.com/repos/koekeishiya/kwm/issues/110/events","html_url":"https://github.com/koekeishiya/kwm/issues/110","id":128323687,"number":110,"title":"Issues with kwmc read focused","user":{"login":"dominiklohmann","id":4488655,"avatar_url":"https://avatars.githubusercontent.com/u/4488655?v=3","gravatar_id":"","url":"https://api.github.com/users/dominiklohmann","html_url":"https://github.com/dominiklohmann","followers_url":"https://api.github.com/users/dominiklohmann/followers","following_url":"https://api.github.com/users/dominiklohmann/following{/other_user}","gists_url":"https://api.github.com/users/dominiklohmann/gists{/gist_id}","starred_url":"https://api.github.com/users/dominiklohmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominiklohmann/subscriptions","organizations_url":"https://api.github.com/users/dominiklohmann/orgs","repos_url":"https://api.github.com/users/dominiklohmann/repos","events_url":"https://api.github.com/users/dominiklohmann/events{/privacy}","received_events_url":"https://api.github.com/users/dominiklohmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-23T11:45:59Z","updated_at":"2016-01-23T12:01:26Z","closed_at":null,"body":"`kwmc read focused` has three issues holding it back right now.\r\n\r\n1. It doesn't update the window title every time when `kwmc read focused` is invoked, but rather when the focus switches. The window title can change at any time though.\r\n\r\n2. When a title cannot be read or a title does not exist, the trailing \" - \" should be stripped from the result of `kwmc read focused`.\r\n\r\n3. The title can sometimes not be read, I notice this a lot with umlauts (äöüß) and and when there's some other special characters in the window title like in this terminal screenshot.\r\n<img width=\"348\" alt=\"screen shot 2016-01-23 at 12 40 22\" src=\"https://cloud.githubusercontent.com/assets/4488655/12530002/ab20c18c-c1ce-11e5-9ab8-f24c7e919eb7.png\">"},"comment":{"url":"https://api.github.com/repos/koekeishiya/kwm/issues/comments/174177782","html_url":"https://github.com/koekeishiya/kwm/issues/110#issuecomment-174177782","issue_url":"https://api.github.com/repos/koekeishiya/kwm/issues/110","id":174177782,"user":{"login":"dominiklohmann","id":4488655,"avatar_url":"https://avatars.githubusercontent.com/u/4488655?v=3","gravatar_id":"","url":"https://api.github.com/users/dominiklohmann","html_url":"https://github.com/dominiklohmann","followers_url":"https://api.github.com/users/dominiklohmann/followers","following_url":"https://api.github.com/users/dominiklohmann/following{/other_user}","gists_url":"https://api.github.com/users/dominiklohmann/gists{/gist_id}","starred_url":"https://api.github.com/users/dominiklohmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominiklohmann/subscriptions","organizations_url":"https://api.github.com/users/dominiklohmann/orgs","repos_url":"https://api.github.com/users/dominiklohmann/repos","events_url":"https://api.github.com/users/dominiklohmann/events{/privacy}","received_events_url":"https://api.github.com/users/dominiklohmann/received_events","type":"User","site_admin":false},"created_at":"2016-01-23T12:01:26Z","updated_at":"2016-01-23T12:01:26Z","body":"> Not sure what you mean by this. kwmc read focused should simply return a value and not invoke any form of action in Kwm.\r\n\r\nSuppose you have a window open and the focus doesn't change but its title changes. If you keep invoking `kwmc read focused` (through a bitbar script or something like that), it will always show the title the window had when the window focus last changed."}}