{"action":"created","issue":{"url":"https://api.github.com/repos/fanglingsu/vimb/issues/190","labels_url":"https://api.github.com/repos/fanglingsu/vimb/issues/190/labels{/name}","comments_url":"https://api.github.com/repos/fanglingsu/vimb/issues/190/comments","events_url":"https://api.github.com/repos/fanglingsu/vimb/issues/190/events","html_url":"https://github.com/fanglingsu/vimb/pull/190","id":61047622,"number":190,"title":"New homepage feature","user":{"login":"Artymort","id":7687623,"avatar_url":"https://avatars.githubusercontent.com/u/7687623?v=3","gravatar_id":"","url":"https://api.github.com/users/Artymort","html_url":"https://github.com/Artymort","followers_url":"https://api.github.com/users/Artymort/followers","following_url":"https://api.github.com/users/Artymort/following{/other_user}","gists_url":"https://api.github.com/users/Artymort/gists{/gist_id}","starred_url":"https://api.github.com/users/Artymort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Artymort/subscriptions","organizations_url":"https://api.github.com/users/Artymort/orgs","repos_url":"https://api.github.com/users/Artymort/repos","events_url":"https://api.github.com/users/Artymort/events{/privacy}","received_events_url":"https://api.github.com/users/Artymort/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-13T11:52:43Z","updated_at":"2015-03-13T16:11:11Z","closed_at":"2015-03-13T16:04:35Z","pull_request":{"url":"https://api.github.com/repos/fanglingsu/vimb/pulls/190","html_url":"https://github.com/fanglingsu/vimb/pull/190","diff_url":"https://github.com/fanglingsu/vimb/pull/190.diff","patch_url":"https://github.com/fanglingsu/vimb/pull/190.patch"},"body":"Hi,\r\n\r\nI quite like the usual idea of a homepage with quick access to your bookmarks. This is not exactly useful in the case of vimb, but I still like it. So I added it =D\r\n\r\nMy C is a bit rusty, I tried to follow your conventions but maybe there are major parts that need to be modified. Actually I wrote this in a separate project before thinking about merging it into ```bookmark.c```, so maybe there are function to parse bookmarks file that I could/should have used. That said it works and seems stable.\r\n\r\nThe new behavior is the following one :\r\n* If there is no bookmark, the homepage is the main site of vimb (the previous behavior). This makes sense as it is a manual, so as long as you don't know how to use vimb you want to access this.\r\n* If there are bookmarks, vimb generates a lightweight html file with them and opens it.\r\n\r\nI also added a small CSS file.\r\n\r\nFor example the following bookmark file:\r\n```\r\nhttp://www.duck.com/\tGoogle o_O !\tsearch engine surprise\r\nhttp://www.duckduckgo.com/\tDuckDuckGo\tsearch engine noSurprise\r\nhttps://github.com/fanglingsu/vimb/\tGithub - vimb\tsource vimb\r\n```\r\n\r\ngives a page that looks like this: \r\n![bookmark](https://cloud.githubusercontent.com/assets/7687623/6637660/10809b04-c975-11e4-97ae-20e5cec70584.jpg)\r\n\r\nOf course changing the homepage in the config file override this feature.\r\n\r\nThank you for your work, I hope this suits you !"},"comment":{"url":"https://api.github.com/repos/fanglingsu/vimb/issues/comments/79086634","html_url":"https://github.com/fanglingsu/vimb/pull/190#issuecomment-79086634","issue_url":"https://api.github.com/repos/fanglingsu/vimb/issues/190","id":79086634,"user":{"login":"fanglingsu","id":333391,"avatar_url":"https://avatars.githubusercontent.com/u/333391?v=3","gravatar_id":"","url":"https://api.github.com/users/fanglingsu","html_url":"https://github.com/fanglingsu","followers_url":"https://api.github.com/users/fanglingsu/followers","following_url":"https://api.github.com/users/fanglingsu/following{/other_user}","gists_url":"https://api.github.com/users/fanglingsu/gists{/gist_id}","starred_url":"https://api.github.com/users/fanglingsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fanglingsu/subscriptions","organizations_url":"https://api.github.com/users/fanglingsu/orgs","repos_url":"https://api.github.com/users/fanglingsu/repos","events_url":"https://api.github.com/users/fanglingsu/events{/privacy}","received_events_url":"https://api.github.com/users/fanglingsu/received_events","type":"User","site_admin":false},"created_at":"2015-03-13T16:11:11Z","updated_at":"2015-03-13T16:11:11Z","body":"If you have a nice script, independent if JavaScript or sh please feel free to provide it. So I can publish it on http://fanglingsu.github.io/vimb/scripts.html and/or put it into the example directory of the project so that other user that like the approach can use this."}}