{"action":"created","issue":{"url":"https://api.github.com/repos/issmirnov/zap/issues/2","repository_url":"https://api.github.com/repos/issmirnov/zap","labels_url":"https://api.github.com/repos/issmirnov/zap/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/issmirnov/zap/issues/2/comments","events_url":"https://api.github.com/repos/issmirnov/zap/issues/2/events","html_url":"https://github.com/issmirnov/zap/issues/2","id":211990134,"number":2,"title":"Friction when adding URL shortcut","user":{"login":"andreking","id":2476052,"avatar_url":"https://avatars2.githubusercontent.com/u/2476052?v=3","gravatar_id":"","url":"https://api.github.com/users/andreking","html_url":"https://github.com/andreking","followers_url":"https://api.github.com/users/andreking/followers","following_url":"https://api.github.com/users/andreking/following{/other_user}","gists_url":"https://api.github.com/users/andreking/gists{/gist_id}","starred_url":"https://api.github.com/users/andreking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreking/subscriptions","organizations_url":"https://api.github.com/users/andreking/orgs","repos_url":"https://api.github.com/users/andreking/repos","events_url":"https://api.github.com/users/andreking/events{/privacy}","received_events_url":"https://api.github.com/users/andreking/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-05T22:27:24Z","updated_at":"2017-03-05T22:35:42Z","closed_at":null,"body":"The process to add a shortcut for a URL is currently:\r\n(1) Edit /etc/hosts\r\n(2) Edit /usr/local/etc/zap/c.yml\r\n(3) sudo brew services restart zap\r\n\r\nConsider developing 1-step process for adding a shortcut. Ideally, this should be as easy as adding the mapping of shortcut => URL to a config file and hitting save."},"comment":{"url":"https://api.github.com/repos/issmirnov/zap/issues/comments/284269094","html_url":"https://github.com/issmirnov/zap/issues/2#issuecomment-284269094","issue_url":"https://api.github.com/repos/issmirnov/zap/issues/2","id":284269094,"user":{"login":"issmirnov","id":5771615,"avatar_url":"https://avatars3.githubusercontent.com/u/5771615?v=3","gravatar_id":"","url":"https://api.github.com/users/issmirnov","html_url":"https://github.com/issmirnov","followers_url":"https://api.github.com/users/issmirnov/followers","following_url":"https://api.github.com/users/issmirnov/following{/other_user}","gists_url":"https://api.github.com/users/issmirnov/gists{/gist_id}","starred_url":"https://api.github.com/users/issmirnov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/issmirnov/subscriptions","organizations_url":"https://api.github.com/users/issmirnov/orgs","repos_url":"https://api.github.com/users/issmirnov/repos","events_url":"https://api.github.com/users/issmirnov/events{/privacy}","received_events_url":"https://api.github.com/users/issmirnov/received_events","type":"User","site_admin":false},"created_at":"2017-03-05T22:35:41Z","updated_at":"2017-03-05T22:35:41Z","body":"Great idea, thanks!\r\n\r\nNotes to future me:\r\n- add polling option to zap to detect if local config file is out of sync, reload when it happens. set up some reasonable interval, 15-60 seconds ideally. This solves hot reloading.\r\n- Add `-write-hosts` option that is stored as option in app config. If zap is running with RW privileges on `/etc/hosts` we can flush top level shortcuts into it. This would have to be a flag added in the homebrew install for the service file. "}}
{"actor":{"display_login":"issmirnov"}}