Coder Social home page Coder Social logo

Comments (21)

yohannes avatar yohannes commented on June 3, 2024 2

@will-stone the dim / !dim is one neat visual cue. 😊

from browserosaurus.

will-stone avatar will-stone commented on June 3, 2024 1

Thanks! Be careful with future versions though as I do like to break things 😆 (although v4 is basically done) Nice suggestion. I’ll have a look into how this can be accomplished and whether it’ll fit into how B is currently written.

from browserosaurus.

will-stone avatar will-stone commented on June 3, 2024 1

Definitely agree, my thinking was to darken (make translucent) the apps that aren't supported when alt is held. I promise I'll get to this when this minor crisis is resolved.

from browserosaurus.

will-stone avatar will-stone commented on June 3, 2024 1

Okay, I have this working! For the brave, please test-out this branch: https://github.com/will-stone/browserosaurus/tree/feat/open-in-background

It's currently only working with Firefox and Safari. The command seems to have stopped working with Chrome. Without Chrome support, I'd say this is not a great addition, as it's the most popular browser. Anyway, if you figure it out, just add the command to the optCmd key of the Chrome entry in the src/config/activities.ts file.

from browserosaurus.

yohannes avatar yohannes commented on June 3, 2024 1

Noted Will. Just checking its pulse. Yes, i think releasing it soon is better because many including myself are using it on a constant basis so if something breaks, we will know quickly and can open an issue.

from browserosaurus.

will-stone avatar will-stone commented on June 3, 2024 1

Okay chaps, this has been released in v6.3.0. Please let me know if you find any bugs.

from browserosaurus.

blakejakopovic avatar blakejakopovic commented on June 3, 2024

You should be able to use the -g flag to open urls in the background, after checking if the modifier key was pressed. Safari, Chrome and Airmail use the command key as the 'open in background' modifier which should be suitable.

open -a Safari -g "http://google.com"

from browserosaurus.

will-stone avatar will-stone commented on June 3, 2024

Thanks! I’ll look into adding this in a branch soon.

from browserosaurus.

will-stone avatar will-stone commented on June 3, 2024

@blakejakopovic I've started this but am noticing that some browsers don't like -g and with some browsers it only works if the browser is already open. Here's my findings so far:

Working

  • Chrome
  • Firefox
  • Min
  • Opera
  • Safari

Not working (just brings browser to front as normal)

  • Brave
  • Chromium

from browserosaurus.

CelsoSantos avatar CelsoSantos commented on June 3, 2024

Regarding Brave, maybe the issue is related to brave/browser-laptop#10492?

Maybe option to always switch to new tab is enabled and that's causing the observed behaviour?

from browserosaurus.

will-stone avatar will-stone commented on June 3, 2024

Brave moved their repo but I think this is the same issue: brave/brave-browser#4052

from browserosaurus.

yohannes avatar yohannes commented on June 3, 2024

@blakejakopovic I've started this but am noticing that some browsers don't like -g and with some browsers it only works if the browser is already open. Here's my findings so far:

Working

* Chrome

* Firefox

* Min

* Opera

* Safari

Not working (just brings browser to front as normal)

* Brave

* Chromium

@will-stone my suggestion is to enable background url opening feature for those browsers above that already support it. Brave and Chromium can follow later when the time comes. This way, people using those 5 browsers can start using this new feature right away. What do you think?

from browserosaurus.

CelsoSantos avatar CelsoSantos commented on June 3, 2024

from browserosaurus.

bendem avatar bendem commented on June 3, 2024

Please don't use a modifier key to implement behavior change, that breaks the normal behavior to open a link in a console or in some software. I.e. in Alacritty, I have to hold shift to open links, in Iterm2 people have to hold cmd, and I'm sure some other software uses meta.

Nvm, holding a modifier when choosing the browser is fine, I thought it was required when clicking the link.

from browserosaurus.

will-stone avatar will-stone commented on June 3, 2024

@bendem That's been my thinking behind this thread: #98

from browserosaurus.

yohannes avatar yohannes commented on June 3, 2024

@will-stone Just want to confirm whether this feature is still streaming ahead for adoption to main branch or halted due to chrome incompatibility?

from browserosaurus.

will-stone avatar will-stone commented on June 3, 2024

It’ll make master, I’ve just been busy recently. I wanna kick the tyres with it a bit more though as it seemed a bit flakey last time I tried to use it. But I suppose I can always release it and you guys tell me what doesn’t work.

from browserosaurus.

yohannes avatar yohannes commented on June 3, 2024

Awesome! Will do. Thanks @will-stone

from browserosaurus.

bendem avatar bendem commented on June 3, 2024

Works fine for safari which I don't use, missing from firefox and chrome, but I guess that's going to come in the future.

from browserosaurus.

bendem avatar bendem commented on June 3, 2024

I use firefox nightly as my main browser, I guess the fact that it's nightly doesn't help?

from browserosaurus.

will-stone avatar will-stone commented on June 3, 2024

@bendem Chrome doesn't support the feature so I can't add that. It's working for Firefox for me. As for Nightly, it probably would work, I've just not tested it so it has not been activated for that browser. Feel free to add it and PR if it works fine for you. Please note, you must hold alt / opt after opening the picker, not whilst clicking the link. Whilst picker is open and holding alt, the browsers that support open-in-background will stay lit, whilst those that do not will dim slightly.

from browserosaurus.

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.