danhper / atomic-chrome

Edit Chrome textareas in Atom
https://goo.gl/Et0hwg
MIT License
916 stars 30 forks source link

automatically focus atom-window when start editing #28

Open t9md opened 7 years ago

t9md commented 7 years ago
  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 commented 7 years ago

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 commented 7 years ago

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

t9md commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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!