{"action":"opened","issue":{"url":"https://api.github.com/repos/sneakypete81/atom-vhdl-entity-converter/issues/5","repository_url":"https://api.github.com/repos/sneakypete81/atom-vhdl-entity-converter","labels_url":"https://api.github.com/repos/sneakypete81/atom-vhdl-entity-converter/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/sneakypete81/atom-vhdl-entity-converter/issues/5/comments","events_url":"https://api.github.com/repos/sneakypete81/atom-vhdl-entity-converter/issues/5/events","html_url":"https://github.com/sneakypete81/atom-vhdl-entity-converter/issues/5","id":168141472,"number":5,"title":"entities pasted as signals with a prefix","user":{"login":"svenn71","id":1207110,"avatar_url":"https://avatars.githubusercontent.com/u/1207110?v=3","gravatar_id":"","url":"https://api.github.com/users/svenn71","html_url":"https://github.com/svenn71","followers_url":"https://api.github.com/users/svenn71/followers","following_url":"https://api.github.com/users/svenn71/following{/other_user}","gists_url":"https://api.github.com/users/svenn71/gists{/gist_id}","starred_url":"https://api.github.com/users/svenn71/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svenn71/subscriptions","organizations_url":"https://api.github.com/users/svenn71/orgs","repos_url":"https://api.github.com/users/svenn71/repos","events_url":"https://api.github.com/users/svenn71/events{/privacy}","received_events_url":"https://api.github.com/users/svenn71/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-28T16:39:56Z","updated_at":"2016-07-28T16:39:56Z","closed_at":null,"body":"In my designs, I use prefix on signals. This may be personal taste.\r\n\r\n```\r\ndiff --git a/lib/templates.js b/lib/templates.js\r\nindex ad9c748..d146854 100644\r\n--- a/lib/templates.js\r\n+++ b/lib/templates.js\r\n@@ -68,7 +68,7 @@ function instanceTemplate(entity) {\r\n     longest = longestinArray(entity.ports, \"name\")\r\n     for (port of entity.ports) {\r\n       name = port.name.rpad(\" \", longest)\r\n-      text += `  ${name} => ${port.name},\\n`\r\n+      text += `  ${name} => s_${port.name},\\n`\r\n     }\r\n     // Strip the final comma\r\n     text = text.slice(0, -2)\r\n@@ -85,7 +85,7 @@ function signalsTemplate(entity) {\r\n     longest = longestinArray(entity.ports, \"name\")\r\n     for (port of entity.ports) {\r\n       name = port.name.rpad(\" \", longest)\r\n-      text += `signal ${name} : ${port.type};\\n`\r\n+      text += `signal s_${name} : ${port.type};\\n`\r\n     }\r\n   }\r\n   return text\r\n```"}}
{"actor":{"display_login":"svenn71"}}