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

automatically focus atom-window when start editing #28

Open
t9md opened this issue Nov 18, 2016 · 5 comments
Open

automatically focus atom-window when start editing #28

t9md opened this issue Nov 18, 2016 · 5 comments

Comments

@t9md
Copy link

t9md commented Nov 18, 2016

  1. on the input form of browser, invoke shortcut of start-editing-in-atom-editor
  2. want to automatically focus atom window so that I don't have to shift-tab or cmd-tab to change active app to Atom.
@danhper
Copy link
Owner

danhper commented Nov 18, 2016

This is probably OS and environment dependent.
I will see if it is easily doable.
What OS (and desktop environment if relevant) are you using?

@t9md
Copy link
Author

t9md commented Nov 18, 2016

macOS, not yet sierra but move to sierra soon.
What os are you using?

@t9md
Copy link
Author

t9md commented Nov 18, 2016

If you can call atom.focus() method by messaging to your atom package, I thinks it can be implemented without being involved by OS differences.

https://github.com/t9md/atom/blob/master/src/atom-environment.coffee#L532-L534

Just idea, not sure it's practically correct.

@danhper
Copy link
Owner

danhper commented Nov 18, 2016

I didn't know about this, thanks!
It should be easy enough to call this after opening the text editor, I will give it a try.

@t9md
Copy link
Author

t9md commented Nov 18, 2016

Awesome! your package greatly reduce pain to input long text into the github issue.
Thanks for nice idea and bundled into effective workflow to broad user!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants