{"action":"created","issue":{"url":"https://api.github.com/repos/ranger/ranger/issues/675","repository_url":"https://api.github.com/repos/ranger/ranger","labels_url":"https://api.github.com/repos/ranger/ranger/issues/675/labels{/name}","comments_url":"https://api.github.com/repos/ranger/ranger/issues/675/comments","events_url":"https://api.github.com/repos/ranger/ranger/issues/675/events","html_url":"https://github.com/ranger/ranger/issues/675","id":179040271,"number":675,"title":"terminal width issues in markdown preview","user":{"login":"bnvk","id":48677,"avatar_url":"https://avatars.githubusercontent.com/u/48677?v=3","gravatar_id":"","url":"https://api.github.com/users/bnvk","html_url":"https://github.com/bnvk","followers_url":"https://api.github.com/users/bnvk/followers","following_url":"https://api.github.com/users/bnvk/following{/other_user}","gists_url":"https://api.github.com/users/bnvk/gists{/gist_id}","starred_url":"https://api.github.com/users/bnvk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bnvk/subscriptions","organizations_url":"https://api.github.com/users/bnvk/orgs","repos_url":"https://api.github.com/users/bnvk/repos","events_url":"https://api.github.com/users/bnvk/events{/privacy}","received_events_url":"https://api.github.com/users/bnvk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-24T17:02:03Z","updated_at":"2016-09-24T18:39:57Z","closed_at":null,"body":"I recently discovered a really nifty CLI app written in python that renders pretty 256 colored previews of markdown files called [terminal_markdown_view](https://github.com/axiros/terminal_markdown_viewer). It works by adding to `scope.sh` config file:\r\n\r\n```\r\nmarkdown|md)\r\ntry mdv \"$path\" && { dump | trim; exit 5; } || exit 2;;\r\n```\r\n\r\nHowever, there is a slight bug (which I assume is in module) but whereby Ranger hands off the markdown data which says at the top of every markdown file in the preview pane:\r\n\r\n```\r\n!! Could not derive your terminal width !!\r\n```\r\n\r\nI want to dig and try to fix / understand where the issue lies exactly, but any help or pointers would be greatly appreciated :smile: perhaps it's just a config setting I need to declare?"},"comment":{"url":"https://api.github.com/repos/ranger/ranger/issues/comments/249380603","html_url":"https://github.com/ranger/ranger/issues/675#issuecomment-249380603","issue_url":"https://api.github.com/repos/ranger/ranger/issues/675","id":249380603,"user":{"login":"mrogalski","id":6681230,"avatar_url":"https://avatars.githubusercontent.com/u/6681230?v=3","gravatar_id":"","url":"https://api.github.com/users/mrogalski","html_url":"https://github.com/mrogalski","followers_url":"https://api.github.com/users/mrogalski/followers","following_url":"https://api.github.com/users/mrogalski/following{/other_user}","gists_url":"https://api.github.com/users/mrogalski/gists{/gist_id}","starred_url":"https://api.github.com/users/mrogalski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrogalski/subscriptions","organizations_url":"https://api.github.com/users/mrogalski/orgs","repos_url":"https://api.github.com/users/mrogalski/repos","events_url":"https://api.github.com/users/mrogalski/events{/privacy}","received_events_url":"https://api.github.com/users/mrogalski/received_events","type":"User","site_admin":false},"created_at":"2016-09-24T18:39:57Z","updated_at":"2016-09-24T18:39:57Z","body":"Maybe try `try cat \"$path\" | mdv - -c $width && { dump | trim; exit 5; } || exit 2;;`, then?"}}
{"actor":{"display_login":"mrogalski"}}