{"action":"created","issue":{"url":"https://api.github.com/repos/sharkdp/bat/issues/530","repository_url":"https://api.github.com/repos/sharkdp/bat","labels_url":"https://api.github.com/repos/sharkdp/bat/issues/530/labels{/name}","comments_url":"https://api.github.com/repos/sharkdp/bat/issues/530/comments","events_url":"https://api.github.com/repos/sharkdp/bat/issues/530/events","html_url":"https://github.com/sharkdp/bat/issues/530","id":424199337,"node_id":"MDU6SXNzdWU0MjQxOTkzMzc=","number":530,"title":"Show file is binary also in -p mode","user":{"login":"mjarkk","id":15320763,"node_id":"MDQ6VXNlcjE1MzIwNzYz","avatar_url":"https://avatars3.githubusercontent.com/u/15320763?v=4","gravatar_id":"","url":"https://api.github.com/users/mjarkk","html_url":"https://github.com/mjarkk","followers_url":"https://api.github.com/users/mjarkk/followers","following_url":"https://api.github.com/users/mjarkk/following{/other_user}","gists_url":"https://api.github.com/users/mjarkk/gists{/gist_id}","starred_url":"https://api.github.com/users/mjarkk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjarkk/subscriptions","organizations_url":"https://api.github.com/users/mjarkk/orgs","repos_url":"https://api.github.com/users/mjarkk/repos","events_url":"https://api.github.com/users/mjarkk/events{/privacy}","received_events_url":"https://api.github.com/users/mjarkk/received_events","type":"User","site_admin":false},"labels":[{"id":909256495,"node_id":"MDU6TGFiZWw5MDkyNTY0OTU=","url":"https://api.github.com/repos/sharkdp/bat/labels/enhancement","name":"enhancement","color":"a2eeef","default":true},{"id":909256497,"node_id":"MDU6TGFiZWw5MDkyNTY0OTc=","url":"https://api.github.com/repos/sharkdp/bat/labels/good%20first%20issue","name":"good first issue","color":"7057ff","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2019-03-22T13:04:00Z","updated_at":"2019-05-14T21:39:25Z","closed_at":"2019-05-14T21:39:25Z","author_association":"NONE","body":"I currently use bat as cat replacement but because bat uses line numbers and file notations i added the `-p` flag in my fish config:  \r\n```fish\r\nfunction cat\r\n  bat -p $argv\r\nend\r\n```\r\n\r\nThis works great but i noticed there is no output when i bat over binary files.  \r\nyes i know that this is totally useless but this confuses me sometimes with thinking that it's just an empty text file.\r\n\r\nIt would be nice to get some feedback like cat where it shows a corrupted output or let it say something like `<BINARY>` the same as without `-p`"},"comment":{"url":"https://api.github.com/repos/sharkdp/bat/issues/comments/492420046","html_url":"https://github.com/sharkdp/bat/issues/530#issuecomment-492420046","issue_url":"https://api.github.com/repos/sharkdp/bat/issues/530","id":492420046,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5MjQyMDA0Ng==","user":{"login":"sharkdp","id":4209276,"node_id":"MDQ6VXNlcjQyMDkyNzY=","avatar_url":"https://avatars2.githubusercontent.com/u/4209276?v=4","gravatar_id":"","url":"https://api.github.com/users/sharkdp","html_url":"https://github.com/sharkdp","followers_url":"https://api.github.com/users/sharkdp/followers","following_url":"https://api.github.com/users/sharkdp/following{/other_user}","gists_url":"https://api.github.com/users/sharkdp/gists{/gist_id}","starred_url":"https://api.github.com/users/sharkdp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharkdp/subscriptions","organizations_url":"https://api.github.com/users/sharkdp/orgs","repos_url":"https://api.github.com/users/sharkdp/repos","events_url":"https://api.github.com/users/sharkdp/events{/privacy}","received_events_url":"https://api.github.com/users/sharkdp/received_events","type":"User","site_admin":false},"created_at":"2019-05-14T21:39:25Z","updated_at":"2019-05-14T21:39:25Z","author_association":"OWNER","body":"closed via #550 by @maxfilov.\r\n\r\n`bat` now has this behavior:\r\n![image](https://user-images.githubusercontent.com/4209276/57734135-808c4780-76a1-11e9-9686-8d5b7183be8b.png)\r\n"}}
{"actor":{"display_login":"sharkdp"}}