Skip to content
This repository was archived by the owner on Apr 1, 2020. It is now read-only.

Feature/add focus gained and focus lost hooks #1198

Merged
merged 6 commits into from
Dec 31, 2017

Conversation

akinsho
Copy link
Member

@akinsho akinsho commented Dec 29, 2017

This PR adds a focusGained and focusLost hooks to oni. The events themselves pass in the lastActiveBuffer on focusLost and on focusGained.

Also subscribed the Oni git plugin to this event so in the case of changing git branch etc outside oni the plugin is correctly updated on returning to oni.

Fixes #1109

@akinsho akinsho changed the title Feature/add focus gained lost hooks Feature/add focus gained and focus lost hooks Dec 29, 2017
@bryphe
Copy link
Member

bryphe commented Dec 31, 2017

Just tested this out - looks great, @Akin909 ! 👍 Will bring it in now.

Thanks for the contribution, and happy new year's eve! 🎉

@bryphe bryphe merged commit 86b1eee into onivim:master Dec 31, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants