question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Redirect to opened app instead opening new one

See original GitHub issue

I believe that some people prefer to always open new apps, but for those would don’t this would be great.

Example: I have opened one instance of google-chrome. When I use short-cut to initialize cerebro and type google-chrome, I would expect that previous instance would pop up instead of creating new one.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:10
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
maximbazcommented, Mar 27, 2017

I think the best way to approach this feature request is by creating a completely new plugin. The current plugin is doing one job (opening new apps) and it’s doing it well, let’s keep it simple.

The new plugin would:

  • search currently opened windows (not apps!)
  • let you fuzzy-filter them
  • and on <kbd>Enter</kbd> would bring it on top and focus it.

The main benefits are:

  • it keeps code clean and separated, eliminates all funny bugs
  • allows to choose which of the multiple windows you want to focus.

Examples:

Suppose you have two documents opened in LibreOffice Writer, the two windows have titles Fun - LibreOffice Writer and Work - LibreOffice Writer.

  • Opening Cerebro and typing writer gives you 3 results:
    • Fun - LibreOffice Writer // <kbd>Enter</kbd> would focus on this specific document
    • Work - LibreOffice Writer // <kbd>Enter</kbd> would focus on this specific document
    • LibreOffice Writer // <kbd>Enter</kbd> would open a new instance of Writer
  • Opening Cerebro and typing w writer gives you only one result, because nothing else matches:
    • Work - LibreOffice Writer
1reaction
am-shbcommented, Mar 31, 2019

OK, I have decided to write this plugin myself because it was one of the main reasons why I installed cerebro in the first place you can check it out at its repo or install it directly from cerebro by typing plugins manager try it out and let me know what you think PS: only tested on ubuntu 18.04 but should work on other distros too

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android WebView, how to handle redirects in app instead of ...
Is there a way I can change the settings so the View will redirect to the URL like normal, but stay in my...
Read more >
Links open App Store instead of installed app. When is Apple ...
I found a fix that works in another thread: Long press on the link that asks if you want to open it in...
Read more >
How to Redirect Links on Android to Open in the App You ...
Step 1Install Open Link With · Step 2Grant Usage Access · Step 3Force Links to Open with a Different App.
Read more >
How to redirect links to open in your preferred app on Android
To do this, install an application called Open Link With to redirect links into opening preferred apps.Here is a step-to-step guide on how...
Read more >
Links open app store instead of the insta… - Apple Community
I click the link, it asks if I want to continue in the browser, or use the Reddit app. So I push the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found