Giter Site home page Giter Site logo

Avoid losing focus about open HOT 5 CLOSED

danhper avatar danhper commented on August 30, 2024 1
Avoid losing focus

from open.

Comments (5)

sindresorhus avatar sindresorhus commented on August 30, 2024

I couldn't find anything on xdg-open and opening unfocused, but you might be able to focus back to your terminal right after opening, using http://superuser.com/questions/142945/bash-command-to-focus-a-specific-window

from open.

danhper avatar danhper commented on August 30, 2024

Thanks for the answer, I'm going to check this out.
I'll close the issue for now, I'll send a PR if I manage to
write something possibly useful.

from open.

sunknudsen avatar sunknudsen commented on August 30, 2024

@sindresorhus Would it be acceptable to implement a focus option that only works on Darwin to trigger cliArguments.push('-g');? I totally agree with @danhper that there are use cases where focusing a browser for instance isn’t optimal.

from open.

sindresorhus avatar sindresorhus commented on August 30, 2024

Sure, PR welcome.

from open.

sunknudsen avatar sunknudsen commented on August 30, 2024

@sindresorhus PR is out. Didn’t bump the version in case you prefer to handle that. Thanks!

from open.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.