omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Change focus from browser to editor window

    Editorial
    3
    4
    2374
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mag
      mag last edited by

      I want to make a workflow that pastes the selected text from the currently open browser window into the active editor window and then changes the focus from the browser to the editor. The pasting to the end of the current document works fine, but I have been unable to figure out how to return the focus to the editor window from the browser window.
      Any suggestions?

      1 Reply Last reply Reply Quote 0
      • omz
        omz last edited by

        You can do this via Python:

        import console
        console.hide_output()
        
        1 Reply Last reply Reply Quote 0
        • mag
          mag last edited by

          That is perfect, thanks for the help.

          As a newcomer to Editorial, I was under the impression that invoking python was a "power user" feature and I had expected to find a built in action with this functionality. To assist other newcomers, perhaps it would be helpful to mention in the documentation that some obvious functions may require simple python scripting.

          I am really impressed with this app!

          1 Reply Last reply Reply Quote 0
          • MartinPacker
            MartinPacker last edited by

            @mag unless you're really averse to programming do at least dip your toe in the Python water: I think you'll like it. :-)

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors