{"action":"created","issue":{"url":"https://api.github.com/repos/mattn/emmet-vim/issues/251","labels_url":"https://api.github.com/repos/mattn/emmet-vim/issues/251/labels{/name}","comments_url":"https://api.github.com/repos/mattn/emmet-vim/issues/251/comments","events_url":"https://api.github.com/repos/mattn/emmet-vim/issues/251/events","html_url":"https://github.com/mattn/emmet-vim/pull/251","id":55654176,"number":251,"title":"Enhance link:import to be in line with emmet.io","user":{"login":"dencold","id":1844771,"avatar_url":"https://avatars.githubusercontent.com/u/1844771?v=3","gravatar_id":"","url":"https://api.github.com/users/dencold","html_url":"https://github.com/dencold","followers_url":"https://api.github.com/users/dencold/followers","following_url":"https://api.github.com/users/dencold/following{/other_user}","gists_url":"https://api.github.com/users/dencold/gists{/gist_id}","starred_url":"https://api.github.com/users/dencold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dencold/subscriptions","organizations_url":"https://api.github.com/users/dencold/orgs","repos_url":"https://api.github.com/users/dencold/repos","events_url":"https://api.github.com/users/dencold/events{/privacy}","received_events_url":"https://api.github.com/users/dencold/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-27T18:17:44Z","updated_at":"2015-01-28T00:05:07Z","closed_at":"2015-01-28T00:05:04Z","pull_request":{"url":"https://api.github.com/repos/mattn/emmet-vim/pulls/251","html_url":"https://github.com/mattn/emmet-vim/pull/251","diff_url":"https://github.com/mattn/emmet-vim/pull/251.diff","patch_url":"https://github.com/mattn/emmet-vim/pull/251.patch"},"body":"I'd like to update the `link:import` abbreviation that @kashiro added in #234 (thanks @kashiro!) and match what is in place currently in the [original emmet.io repository](https://github.com/emmetio/emmet/blob/master/lib/snippets.json#L670).\r\n\r\nIn current emmet-vim implementation, the `link:import` abbreviation expands to the following html:\r\n```html\r\n<link rel=\"import\" href=\"\"> \r\n```\r\n\r\nI'd like to improve upon current implementation by:\r\n\r\n1. allowing for both `link:import` and the shorter `link:im` abbreviation.\r\n2. automatically adds \".html\" text in the `href` attribute. This is the standard extension for webcomponents.\r\n3. cursor automatically placed before \".html\" extention, for easy completion of your webcomponent.\r\n\r\nThese new features match the implementation seen in emmet.io. The new code now allows for either `link:import` or `link:im` and results in the following expansion:\r\n\r\n```html\r\n<link rel=\"import\" href=\"_.html\"> \r\n```\r\n\r\nWhere \"_\" is the location of the cursor after expansion. This saves a lot of keystrokes and matches up exactly with the reference implementation on [emmet.io](https://github.com/emmetio/emmet/blob/master/lib/snippets.json#L670).\r\n"},"comment":{"url":"https://api.github.com/repos/mattn/emmet-vim/issues/comments/71755898","html_url":"https://github.com/mattn/emmet-vim/pull/251#issuecomment-71755898","issue_url":"https://api.github.com/repos/mattn/emmet-vim/issues/251","id":71755898,"user":{"login":"mattn","id":10111,"avatar_url":"https://avatars.githubusercontent.com/u/10111?v=3","gravatar_id":"","url":"https://api.github.com/users/mattn","html_url":"https://github.com/mattn","followers_url":"https://api.github.com/users/mattn/followers","following_url":"https://api.github.com/users/mattn/following{/other_user}","gists_url":"https://api.github.com/users/mattn/gists{/gist_id}","starred_url":"https://api.github.com/users/mattn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattn/subscriptions","organizations_url":"https://api.github.com/users/mattn/orgs","repos_url":"https://api.github.com/users/mattn/repos","events_url":"https://api.github.com/users/mattn/events{/privacy}","received_events_url":"https://api.github.com/users/mattn/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T00:05:07Z","updated_at":"2015-01-28T00:05:07Z","body":"Thank you"}}