{"action":"created","issue":{"url":"https://api.github.com/repos/merlinrebrovic/focus.vim/issues/14","repository_url":"https://api.github.com/repos/merlinrebrovic/focus.vim","labels_url":"https://api.github.com/repos/merlinrebrovic/focus.vim/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/merlinrebrovic/focus.vim/issues/14/comments","events_url":"https://api.github.com/repos/merlinrebrovic/focus.vim/issues/14/events","html_url":"https://github.com/merlinrebrovic/focus.vim/issues/14","id":142614405,"number":14,"title":"Internals *too* hidden","user":{"login":"ELLIOTTCABLE","id":200,"avatar_url":"https://avatars.githubusercontent.com/u/200?v=3","gravatar_id":"","url":"https://api.github.com/users/ELLIOTTCABLE","html_url":"https://github.com/ELLIOTTCABLE","followers_url":"https://api.github.com/users/ELLIOTTCABLE/followers","following_url":"https://api.github.com/users/ELLIOTTCABLE/following{/other_user}","gists_url":"https://api.github.com/users/ELLIOTTCABLE/gists{/gist_id}","starred_url":"https://api.github.com/users/ELLIOTTCABLE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ELLIOTTCABLE/subscriptions","organizations_url":"https://api.github.com/users/ELLIOTTCABLE/orgs","repos_url":"https://api.github.com/users/ELLIOTTCABLE/repos","events_url":"https://api.github.com/users/ELLIOTTCABLE/events{/privacy}","received_events_url":"https://api.github.com/users/ELLIOTTCABLE/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-22T10:58:19Z","updated_at":"2016-03-26T17:08:41Z","closed_at":"2016-03-23T08:59:16Z","body":"So, I want to ‘wrap’ the focus-toggling with some of my own behaviour (`:set nonumber`, `:call NoShowMarks!`, `:hi NonText guifg=bg`, etceteras). You have, however, localized basically *everything* under `s:` / `<SID>` … so I can't access any of it without hackery. Maybe open up `EnterFocusMode()` and `ExitFocusMode`?\r\n\r\n(Alternatively, if you're feeling Real Nice, you could extend it with a callback or similar of functionality to preform post-setup; it'd be nice if I could hook in *after* you `mksession!`, so that I don't even have to manually restore the additional state I want to change; your state-restoration would squash my extra changes along with yours …)"},"comment":{"url":"https://api.github.com/repos/merlinrebrovic/focus.vim/issues/comments/201893618","html_url":"https://github.com/merlinrebrovic/focus.vim/issues/14#issuecomment-201893618","issue_url":"https://api.github.com/repos/merlinrebrovic/focus.vim/issues/14","id":201893618,"user":{"login":"merlinrebrovic","id":703357,"avatar_url":"https://avatars.githubusercontent.com/u/703357?v=3","gravatar_id":"","url":"https://api.github.com/users/merlinrebrovic","html_url":"https://github.com/merlinrebrovic","followers_url":"https://api.github.com/users/merlinrebrovic/followers","following_url":"https://api.github.com/users/merlinrebrovic/following{/other_user}","gists_url":"https://api.github.com/users/merlinrebrovic/gists{/gist_id}","starred_url":"https://api.github.com/users/merlinrebrovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/merlinrebrovic/subscriptions","organizations_url":"https://api.github.com/users/merlinrebrovic/orgs","repos_url":"https://api.github.com/users/merlinrebrovic/repos","events_url":"https://api.github.com/users/merlinrebrovic/events{/privacy}","received_events_url":"https://api.github.com/users/merlinrebrovic/received_events","type":"User","site_admin":false},"created_at":"2016-03-26T17:08:41Z","updated_at":"2016-03-26T17:08:41Z","body":"Unfortunately, making private functions public to access internals is not very clean and invalidates a lot of encapsulation in the plugin, so I would not be willing to accept a PR like that."}}