{"action":"opened","issue":{"url":"https://api.github.com/repos/manpages/blog/issues/1","labels_url":"https://api.github.com/repos/manpages/blog/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/manpages/blog/issues/1/comments","events_url":"https://api.github.com/repos/manpages/blog/issues/1/events","html_url":"https://github.com/manpages/blog/issues/1","id":101727934,"number":1,"title":"Receive-edit-send loop","user":{"login":"manpages","id":1005821,"avatar_url":"https://avatars.githubusercontent.com/u/1005821?v=3","gravatar_id":"","url":"https://api.github.com/users/manpages","html_url":"https://github.com/manpages","followers_url":"https://api.github.com/users/manpages/followers","following_url":"https://api.github.com/users/manpages/following{/other_user}","gists_url":"https://api.github.com/users/manpages/gists{/gist_id}","starred_url":"https://api.github.com/users/manpages/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manpages/subscriptions","organizations_url":"https://api.github.com/users/manpages/orgs","repos_url":"https://api.github.com/users/manpages/repos","events_url":"https://api.github.com/users/manpages/events{/privacy}","received_events_url":"https://api.github.com/users/manpages/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-18T19:07:03Z","updated_at":"2015-08-18T19:07:03Z","closed_at":null,"body":"Right now we can only instantiate blog posts with ``blog``.\r\n\r\nIt's good enough, I edit my posts on remote anyway and this program just simplifies timestamping\r\nand file placement.\r\n\r\nIdeally though, we'd like to be able to say something like \r\n\r\n```\r\nλ blog edit haskonf\r\n```\r\n\r\nand get output like\r\n\r\n```\r\nPosts matching \"haskonf\":\r\n1. 2015-08-18-haskonf.html\r\nOne post matched, not querying for post number...\r\nLaunching $EDITOR\r\n```\r\n\r\nthen edit the file and send it back (optionally with refreshed timestamp).\r\n\r\nAlso, if there is no existing blog post that matches selector, we should be able to start writing new one:\r\n\r\n```\r\nλ blog edit abrakadabra\r\nPosts matching \"abrakadabra\":\r\nNo posts found, do you want to write a new one called \"abrakadabra\"? [Yn]\r\n\r\nLaunching $EDITOR\r\n```"}}