{"action":"created","issue":{"url":"https://api.github.com/repos/mhinz/vim-startify/issues/222","repository_url":"https://api.github.com/repos/mhinz/vim-startify","labels_url":"https://api.github.com/repos/mhinz/vim-startify/issues/222/labels{/name}","comments_url":"https://api.github.com/repos/mhinz/vim-startify/issues/222/comments","events_url":"https://api.github.com/repos/mhinz/vim-startify/issues/222/events","html_url":"https://github.com/mhinz/vim-startify/issues/222","id":153439871,"number":222,"title":"Feature request: option to run commands before saving session","user":{"login":"a-m-s","id":5088295,"avatar_url":"https://avatars.githubusercontent.com/u/5088295?v=3","gravatar_id":"","url":"https://api.github.com/users/a-m-s","html_url":"https://github.com/a-m-s","followers_url":"https://api.github.com/users/a-m-s/followers","following_url":"https://api.github.com/users/a-m-s/following{/other_user}","gists_url":"https://api.github.com/users/a-m-s/gists{/gist_id}","starred_url":"https://api.github.com/users/a-m-s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-m-s/subscriptions","organizations_url":"https://api.github.com/users/a-m-s/orgs","repos_url":"https://api.github.com/users/a-m-s/repos","events_url":"https://api.github.com/users/a-m-s/events{/privacy}","received_events_url":"https://api.github.com/users/a-m-s/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mhinz/vim-startify/labels/feature%20request","name":"feature request","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-06T12:22:28Z","updated_at":"2016-06-01T15:42:52Z","closed_at":"2016-06-01T15:42:12Z","body":"I'd like to be able to do something like this:\r\n\r\n```\r\nlet g:startify_session_presavecmds = ['NERDTreeTabsClose']\r\n```\r\n\r\nRight now, I can do this manually, before `SSave`, of course, and I can set `autocmd VimLeave * NERDTreeTabsClose` in my `.vimrc` to catch the persistent session case, but it would be nice if there were an official way to do it."},"comment":{"url":"https://api.github.com/repos/mhinz/vim-startify/issues/comments/223034487","html_url":"https://github.com/mhinz/vim-startify/issues/222#issuecomment-223034487","issue_url":"https://api.github.com/repos/mhinz/vim-startify/issues/222","id":223034487,"user":{"login":"mhinz","id":972014,"avatar_url":"https://avatars.githubusercontent.com/u/972014?v=3","gravatar_id":"","url":"https://api.github.com/users/mhinz","html_url":"https://github.com/mhinz","followers_url":"https://api.github.com/users/mhinz/followers","following_url":"https://api.github.com/users/mhinz/following{/other_user}","gists_url":"https://api.github.com/users/mhinz/gists{/gist_id}","starred_url":"https://api.github.com/users/mhinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhinz/subscriptions","organizations_url":"https://api.github.com/users/mhinz/orgs","repos_url":"https://api.github.com/users/mhinz/repos","events_url":"https://api.github.com/users/mhinz/events{/privacy}","received_events_url":"https://api.github.com/users/mhinz/received_events","type":"User","site_admin":false},"created_at":"2016-06-01T15:42:52Z","updated_at":"2016-06-01T15:42:52Z","body":"Implemented as `g:startify_session_before_save`.\r\n\r\nThanks for bringing this up, seems like a useful addition."}}
{"actor":{"display_login":"mhinz"}}