{"action":"created","issue":{"url":"https://api.github.com/repos/tpope/vim-flagship/issues/9","labels_url":"https://api.github.com/repos/tpope/vim-flagship/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/tpope/vim-flagship/issues/9/comments","events_url":"https://api.github.com/repos/tpope/vim-flagship/issues/9/events","html_url":"https://github.com/tpope/vim-flagship/issues/9","id":107914975,"number":9,"title":"Adding arglist to statusline","user":{"login":"Hotschke","id":13778660,"avatar_url":"https://avatars.githubusercontent.com/u/13778660?v=3","gravatar_id":"","url":"https://api.github.com/users/Hotschke","html_url":"https://github.com/Hotschke","followers_url":"https://api.github.com/users/Hotschke/followers","following_url":"https://api.github.com/users/Hotschke/following{/other_user}","gists_url":"https://api.github.com/users/Hotschke/gists{/gist_id}","starred_url":"https://api.github.com/users/Hotschke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hotschke/subscriptions","organizations_url":"https://api.github.com/users/Hotschke/orgs","repos_url":"https://api.github.com/users/Hotschke/repos","events_url":"https://api.github.com/users/Hotschke/events{/privacy}","received_events_url":"https://api.github.com/users/Hotschke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-23T13:07:07Z","updated_at":"2015-09-24T18:42:40Z","closed_at":null,"body":"Is it possible to add the arglist to the flagship line?\r\n\r\nSomething like this (does not work)\r\n\r\n```viml\r\nautocmd User Flags call Hoist(\"global\", \":args\")\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/tpope/vim-flagship/issues/comments/143015804","html_url":"https://github.com/tpope/vim-flagship/issues/9#issuecomment-143015804","issue_url":"https://api.github.com/repos/tpope/vim-flagship/issues/9","id":143015804,"user":{"login":"tpope","id":378,"avatar_url":"https://avatars.githubusercontent.com/u/378?v=3","gravatar_id":"","url":"https://api.github.com/users/tpope","html_url":"https://github.com/tpope","followers_url":"https://api.github.com/users/tpope/followers","following_url":"https://api.github.com/users/tpope/following{/other_user}","gists_url":"https://api.github.com/users/tpope/gists{/gist_id}","starred_url":"https://api.github.com/users/tpope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpope/subscriptions","organizations_url":"https://api.github.com/users/tpope/orgs","repos_url":"https://api.github.com/users/tpope/repos","events_url":"https://api.github.com/users/tpope/events{/privacy}","received_events_url":"https://api.github.com/users/tpope/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T18:42:40Z","updated_at":"2015-09-24T18:42:40Z","body":"There's not a one liner for it but could stitch something together using `argc()` and `argv()`. Try:\r\n\r\n```vim\r\nfunction ArgString() abort\r\n  return join(map(range(argc()), 'argv(v:val)'), ' ')\r\nendfunction\r\n\r\nautocmd User Flags call Hoist(\"global\", \"ArgString\")\r\n```"}}