{"action":"created","issue":{"url":"https://api.github.com/repos/AndrewRadev/splitjoin.vim/issues/128","repository_url":"https://api.github.com/repos/AndrewRadev/splitjoin.vim","labels_url":"https://api.github.com/repos/AndrewRadev/splitjoin.vim/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/AndrewRadev/splitjoin.vim/issues/128/comments","events_url":"https://api.github.com/repos/AndrewRadev/splitjoin.vim/issues/128/events","html_url":"https://github.com/AndrewRadev/splitjoin.vim/issues/128","id":301991650,"number":128,"title":"Splitting arguments does not add a trailing comma when configured to do so","user":{"login":"teoljungberg","id":810650,"avatar_url":"https://avatars1.githubusercontent.com/u/810650?v=4","gravatar_id":"","url":"https://api.github.com/users/teoljungberg","html_url":"https://github.com/teoljungberg","followers_url":"https://api.github.com/users/teoljungberg/followers","following_url":"https://api.github.com/users/teoljungberg/following{/other_user}","gists_url":"https://api.github.com/users/teoljungberg/gists{/gist_id}","starred_url":"https://api.github.com/users/teoljungberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teoljungberg/subscriptions","organizations_url":"https://api.github.com/users/teoljungberg/orgs","repos_url":"https://api.github.com/users/teoljungberg/repos","events_url":"https://api.github.com/users/teoljungberg/events{/privacy}","received_events_url":"https://api.github.com/users/teoljungberg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-03T11:42:23Z","updated_at":"2018-03-04T16:36:56Z","closed_at":"2018-03-04T16:36:56Z","author_association":"NONE","body":"I read through #108 and expected if I had the configuration of:\r\n\r\n```viml\r\nlet g:splitjoin_trailing_comma = 1\r\nlet g:splitjoin_ruby_hanging_args = 0\r\nlet g:splitjoin_ruby_curly_braces = 0\r\n```\r\n\r\nthat hitting `gS` on the `(` in the following example:\r\n\r\n```ruby\r\n{ a: { b: { c: 0 } } }.dig(:a, :b, :c)\r\n```\r\n\r\nWould transform it into:\r\n\r\n```ruby\r\n{ a: { b: { c: 0 } } }.dig(\r\n  :a,\r\n  :b,\r\n  :c,\r\n)\r\n```\r\n\r\nBut the trailing comma(after `:c`) is omitted.\r\n\r\nIs that behaviour possible to achieve?"},"comment":{"url":"https://api.github.com/repos/AndrewRadev/splitjoin.vim/issues/comments/370242945","html_url":"https://github.com/AndrewRadev/splitjoin.vim/issues/128#issuecomment-370242945","issue_url":"https://api.github.com/repos/AndrewRadev/splitjoin.vim/issues/128","id":370242945,"user":{"login":"teoljungberg","id":810650,"avatar_url":"https://avatars1.githubusercontent.com/u/810650?v=4","gravatar_id":"","url":"https://api.github.com/users/teoljungberg","html_url":"https://github.com/teoljungberg","followers_url":"https://api.github.com/users/teoljungberg/followers","following_url":"https://api.github.com/users/teoljungberg/following{/other_user}","gists_url":"https://api.github.com/users/teoljungberg/gists{/gist_id}","starred_url":"https://api.github.com/users/teoljungberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teoljungberg/subscriptions","organizations_url":"https://api.github.com/users/teoljungberg/orgs","repos_url":"https://api.github.com/users/teoljungberg/repos","events_url":"https://api.github.com/users/teoljungberg/events{/privacy}","received_events_url":"https://api.github.com/users/teoljungberg/received_events","type":"User","site_admin":false},"created_at":"2018-03-04T16:36:56Z","updated_at":"2018-03-04T16:36:56Z","author_association":"NONE","body":"Works wonders! Thank you for the quick response."}}
{"actor":{"display_login":"teoljungberg"}}