{"action":"created","issue":{"url":"https://api.github.com/repos/cpmcgrath/codealignment/issues/41","labels_url":"https://api.github.com/repos/cpmcgrath/codealignment/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/cpmcgrath/codealignment/issues/41/comments","events_url":"https://api.github.com/repos/cpmcgrath/codealignment/issues/41/events","html_url":"https://github.com/cpmcgrath/codealignment/issues/41","id":119481520,"number":41,"title":"Support multiple instances of the same character","user":{"login":"palmiche","id":12277525,"avatar_url":"https://avatars.githubusercontent.com/u/12277525?v=3","gravatar_id":"","url":"https://api.github.com/users/palmiche","html_url":"https://github.com/palmiche","followers_url":"https://api.github.com/users/palmiche/followers","following_url":"https://api.github.com/users/palmiche/following{/other_user}","gists_url":"https://api.github.com/users/palmiche/gists{/gist_id}","starred_url":"https://api.github.com/users/palmiche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palmiche/subscriptions","organizations_url":"https://api.github.com/users/palmiche/orgs","repos_url":"https://api.github.com/users/palmiche/repos","events_url":"https://api.github.com/users/palmiche/events{/privacy}","received_events_url":"https://api.github.com/users/palmiche/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-30T12:20:31Z","updated_at":"2015-11-30T21:38:44Z","closed_at":null,"body":"I'd like to format this:\r\n```c#\r\nint[] Numbers = {\r\n    1, 2, 3,\r\n    4 , 5 , 6 ,\r\n    7  ,  8  ,   9\r\n}\r\n```\r\nlike this:\r\n```c#\r\nint[] Numbers = {\r\n    1, 2, 3,\r\n    4, 5, 6,\r\n    7, 8, 9\r\n}\r\n```\r\nSo far the only way to do it is to move the caret and align again which become a hassle with a lot of columns. Regular expressions didn't seem to work.\r\n\r\nUsage scenarios:\r\n1. Array initializers\r\n2. Server logs (ftp, http, etc.)\r\n3. SQL statements with many columns (select, insert)\r\n4. Working with CSV files\r\n\r\nTextFX can handle all of them as long as Unicode is not involved but I've had it insert 4k spaces in some instances when parsing server logs."},"comment":{"url":"https://api.github.com/repos/cpmcgrath/codealignment/issues/comments/160769971","html_url":"https://github.com/cpmcgrath/codealignment/issues/41#issuecomment-160769971","issue_url":"https://api.github.com/repos/cpmcgrath/codealignment/issues/41","id":160769971,"user":{"login":"cpmcgrath","id":1791243,"avatar_url":"https://avatars.githubusercontent.com/u/1791243?v=3","gravatar_id":"","url":"https://api.github.com/users/cpmcgrath","html_url":"https://github.com/cpmcgrath","followers_url":"https://api.github.com/users/cpmcgrath/followers","following_url":"https://api.github.com/users/cpmcgrath/following{/other_user}","gists_url":"https://api.github.com/users/cpmcgrath/gists{/gist_id}","starred_url":"https://api.github.com/users/cpmcgrath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpmcgrath/subscriptions","organizations_url":"https://api.github.com/users/cpmcgrath/orgs","repos_url":"https://api.github.com/users/cpmcgrath/repos","events_url":"https://api.github.com/users/cpmcgrath/events{/privacy}","received_events_url":"https://api.github.com/users/cpmcgrath/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T21:38:44Z","updated_at":"2015-11-30T21:38:44Z","body":"Hi,\r\nThe way code alignment handles this is through Chained Alignments - https://github.com/cpmcgrath/codealignment/wiki/Chaining-Alignments\r\n\r\nI've thought about other methods such as an option to keep aligning until you reach the end of a line, but I feel this takes away too much control from the user. Chained Alignments let you stop when you want, change what you align by, and see the result as it happens.\r\n\r\nI think there was also an implicit request in your example to be able to remove spaces when aligning. Issue #12 is about this. It's not the easiest change, and I'm still not sure how such a feature should be exposed in the UI."}}