Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't focus on kernel monitor after toggling #1661

Merged
merged 2 commits into from
Jun 14, 2019

Conversation

aviatesk
Copy link
Member

@aviatesk aviatesk commented Jun 14, 2019

Rationale

Currently toggle-kernel-monitor uses just atom.workspace.toggle API and after invoking the command our focus will be on the kernel-monitor pane and IMO most of the time we have to manually switch back to the previous editor (or pane in general).

This is because, within kernel monitor, we just monitor it or click to do some action, and there is nothing to do with keybindings, thus there is no need to stay focus on it after toggling it.

Approach

This PR includes the workaround for atom.workspace.toggle using prevPane stuff, cause there seems no option for toggle API unlike open...

@wadethestealth
Copy link
Member

Once you fix flow I approve

@aviatesk
Copy link
Member Author

ah I totally forget to run npm run flow ha

@wadethestealth
Copy link
Member

Im going to test this before merging, give me some time

@wadethestealth wadethestealth merged commit 61d9aa7 into nteract:master Jun 14, 2019
@aviatesk aviatesk deleted the avi/nofocus-kernel-monitor branch June 14, 2019 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🌟 New feature ideas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants