{"action":"closed","issue":{"url":"https://api.github.com/repos/vim-jp/issues/issues/936","repository_url":"https://api.github.com/repos/vim-jp/issues","labels_url":"https://api.github.com/repos/vim-jp/issues/issues/936/labels{/name}","comments_url":"https://api.github.com/repos/vim-jp/issues/issues/936/comments","events_url":"https://api.github.com/repos/vim-jp/issues/issues/936/events","html_url":"https://github.com/vim-jp/issues/issues/936","id":166169032,"number":936,"title":"printf() に変換指示子 %v を追加する","user":{"login":"ichizok","id":943423,"avatar_url":"https://avatars.githubusercontent.com/u/943423?v=3","gravatar_id":"","url":"https://api.github.com/users/ichizok","html_url":"https://github.com/ichizok","followers_url":"https://api.github.com/users/ichizok/followers","following_url":"https://api.github.com/users/ichizok/following{/other_user}","gists_url":"https://api.github.com/users/ichizok/gists{/gist_id}","starred_url":"https://api.github.com/users/ichizok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ichizok/subscriptions","organizations_url":"https://api.github.com/users/ichizok/orgs","repos_url":"https://api.github.com/users/ichizok/repos","events_url":"https://api.github.com/users/ichizok/events{/privacy}","received_events_url":"https://api.github.com/users/ichizok/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vim-jp/issues/labels/kind/new%20feature","name":"kind/new feature","color":"e10c02"},{"url":"https://api.github.com/repos/vim-jp/issues/labels/status/sent%20patch","name":"status/sent patch","color":"e102d8"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-18T19:07:43Z","updated_at":"2016-08-16T10:57:15Z","closed_at":"2016-08-16T10:57:15Z","body":"## 提案の内容\r\n\r\nhttps://gist.github.com/ichizok/c1ad7759d7a0a0734fb02f5a4d37445c\r\n\r\n`printf()` の変換指示子として、任意の型を取れる `%v` (と `%V`) を追加します。\r\nこのパッチでは `echo_string()` で文字列への変換を行っており、`:echo` の表示と同じ文字列になります。\r\n\r\n```\r\n:echo printf('%v', [0, 1, 2, 3])\r\n[0, 1, 2, 3]\r\n:echo printf('%v', {'str' : 'abcdef', 'num' : 123, 'pt' : function('printf', ['%%'])})\r\n{'str': 'abcdef', 'num': 123, 'pt': function('printf', ['%%'])}\r\n:echo printf('%v', function('str2nr'))\r\nstr2nr\r\n```\r\n\r\n元ネタは golang の `fmt.Printf()` です。\r\n\r\n## TODO\r\n\r\n- [x] 機能実装\r\n- [x] テスト\r\n- [x] ドキュメント"}}
{"actor":{"display_login":"k-takata"}}