{"action":"created","issue":{"url":"https://api.github.com/repos/akrennmair/newsbeuter/issues/282","repository_url":"https://api.github.com/repos/akrennmair/newsbeuter","labels_url":"https://api.github.com/repos/akrennmair/newsbeuter/issues/282/labels{/name}","comments_url":"https://api.github.com/repos/akrennmair/newsbeuter/issues/282/comments","events_url":"https://api.github.com/repos/akrennmair/newsbeuter/issues/282/events","html_url":"https://github.com/akrennmair/newsbeuter/issues/282","id":148713796,"number":282,"title":"Line wrapping breaks URL handling in terminals","user":{"login":"Minoru","id":118875,"avatar_url":"https://avatars.githubusercontent.com/u/118875?v=3","gravatar_id":"","url":"https://api.github.com/users/Minoru","html_url":"https://github.com/Minoru","followers_url":"https://api.github.com/users/Minoru/followers","following_url":"https://api.github.com/users/Minoru/following{/other_user}","gists_url":"https://api.github.com/users/Minoru/gists{/gist_id}","starred_url":"https://api.github.com/users/Minoru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Minoru/subscriptions","organizations_url":"https://api.github.com/users/Minoru/orgs","repos_url":"https://api.github.com/users/Minoru/repos","events_url":"https://api.github.com/users/Minoru/events{/privacy}","received_events_url":"https://api.github.com/users/Minoru/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/akrennmair/newsbeuter/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-15T16:58:36Z","updated_at":"2016-05-28T16:58:12Z","closed_at":null,"body":"As reported earlier [on Google Code](https://code.google.com/archive/p/newsbeuter/issues/337) and over at [Debian's BTS](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=733245).\r\n\r\nI suspect this is the result of fixing [another bug](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=491122), the one about long URLs **not** being wrapped."},"comment":{"url":"https://api.github.com/repos/akrennmair/newsbeuter/issues/comments/222318425","html_url":"https://github.com/akrennmair/newsbeuter/issues/282#issuecomment-222318425","issue_url":"https://api.github.com/repos/akrennmair/newsbeuter/issues/282","id":222318425,"user":{"login":"Minoru","id":118875,"avatar_url":"https://avatars.githubusercontent.com/u/118875?v=3","gravatar_id":"","url":"https://api.github.com/users/Minoru","html_url":"https://github.com/Minoru","followers_url":"https://api.github.com/users/Minoru/followers","following_url":"https://api.github.com/users/Minoru/following{/other_user}","gists_url":"https://api.github.com/users/Minoru/gists{/gist_id}","starred_url":"https://api.github.com/users/Minoru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Minoru/subscriptions","organizations_url":"https://api.github.com/users/Minoru/orgs","repos_url":"https://api.github.com/users/Minoru/repos","events_url":"https://api.github.com/users/Minoru/events{/privacy}","received_events_url":"https://api.github.com/users/Minoru/received_events","type":"User","site_admin":false},"created_at":"2016-05-28T16:58:12Z","updated_at":"2016-05-28T16:58:12Z","body":"This can't be fixed as long as we're using ncurses (and we do, through STFL). Ncurses just doesn't allow to defer wrapping (and thus URL detection) to terminal.\r\n\r\nCan be fixed if we ditch STFL and use termcap directly, but that's a ton of low-level work—basically a re-write of a subset of STFL tailored to our particular needs. I'm not up for that.\r\n\r\nThis is why I'm going to regard this issue as a feature request, not a bug.\r\n\r\nWhat can be done? We have a whole array of options:\r\n\r\n1. Keep things as they are, i.e. keep wrapping URLs according to `text-width` (or window width if `text-width` is not set.)\r\n\r\n2. Stop wrapping URLs at all. This will make text less beautiful (there'll be lines protruding to the right of a neat column of text); and this won't work with URLs that are longer than window width—*the part of URL that is off-screen won't be visible unless you make the terminal wider*. Will improve situation with URLs that are longer than `text-width` but shorter than window width, though. This is effectively a regression to the behaviour [we used to have a lo-o-ong time ago](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=491122).\r\n\r\n3. Wrap URLs at the window border, not on `text-width` boundary. This is an improvement over the previous option: while wrapped URLs won't be clickable, at least they'll be fully visible and *selectable* (again, see [DBTS bug #491122](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=491122).)\r\n\r\nI'm inclined to try the third option, because it's the only one we didn't try yet :) Will sleep on it."}}
{"actor":{"display_login":"Minoru"}}