{"action":"created","issue":{"url":"https://api.github.com/repos/gnachman/iTerm2/issues/297","repository_url":"https://api.github.com/repos/gnachman/iTerm2","labels_url":"https://api.github.com/repos/gnachman/iTerm2/issues/297/labels{/name}","comments_url":"https://api.github.com/repos/gnachman/iTerm2/issues/297/comments","events_url":"https://api.github.com/repos/gnachman/iTerm2/issues/297/events","html_url":"https://github.com/gnachman/iTerm2/pull/297","id":167769058,"number":297,"title":"Tweaks to imgcat script: Add flag to print image name","user":{"login":"coljac","id":191407,"avatar_url":"https://avatars.githubusercontent.com/u/191407?v=3","gravatar_id":"","url":"https://api.github.com/users/coljac","html_url":"https://github.com/coljac","followers_url":"https://api.github.com/users/coljac/followers","following_url":"https://api.github.com/users/coljac/following{/other_user}","gists_url":"https://api.github.com/users/coljac/gists{/gist_id}","starred_url":"https://api.github.com/users/coljac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coljac/subscriptions","organizations_url":"https://api.github.com/users/coljac/orgs","repos_url":"https://api.github.com/users/coljac/repos","events_url":"https://api.github.com/users/coljac/events{/privacy}","received_events_url":"https://api.github.com/users/coljac/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-27T04:44:40Z","updated_at":"2016-08-07T02:55:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gnachman/iTerm2/pulls/297","html_url":"https://github.com/gnachman/iTerm2/pull/297","diff_url":"https://github.com/gnachman/iTerm2/pull/297.diff","patch_url":"https://github.com/gnachman/iTerm2/pull/297.patch"},"body":"I use this script constantly. Since it updates itself with Iterm2, and since these tiny tweaks are useful, perhaps this is worth considering.\r\n\r\nI invoke imgcat a lot on big groups of images, often via xargs. The following tweaks are handy:\r\n\r\nAdded a \"-p\" flag which prints the image filename before displaying the image. Useful when invoked on a large number of images at once and you want to see which is which.\r\n\r\nAdded a tweak where print_image returns if no filename supplied; this was a problem when invoked via xargs, it was displaying the broken image icon to the screen between each image in a list of images using zsh on Linux and OS X."},"comment":{"url":"https://api.github.com/repos/gnachman/iTerm2/issues/comments/238060211","html_url":"https://github.com/gnachman/iTerm2/pull/297#issuecomment-238060211","issue_url":"https://api.github.com/repos/gnachman/iTerm2/issues/297","id":238060211,"user":{"login":"coljac","id":191407,"avatar_url":"https://avatars.githubusercontent.com/u/191407?v=3","gravatar_id":"","url":"https://api.github.com/users/coljac","html_url":"https://github.com/coljac","followers_url":"https://api.github.com/users/coljac/followers","following_url":"https://api.github.com/users/coljac/following{/other_user}","gists_url":"https://api.github.com/users/coljac/gists{/gist_id}","starred_url":"https://api.github.com/users/coljac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coljac/subscriptions","organizations_url":"https://api.github.com/users/coljac/orgs","repos_url":"https://api.github.com/users/coljac/repos","events_url":"https://api.github.com/users/coljac/events{/privacy}","received_events_url":"https://api.github.com/users/coljac/received_events","type":"User","site_admin":false},"created_at":"2016-08-07T02:55:26Z","updated_at":"2016-08-07T02:55:26Z","body":"Done, thank you."}}
{"actor":{"display_login":"coljac"}}