Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: toggle Cerebro search from the command line #500

Open
2 tasks done
jreus opened this issue Mar 2, 2020 · 4 comments
Open
2 tasks done

feat: toggle Cerebro search from the command line #500

jreus opened this issue Mar 2, 2020 · 4 comments

Comments

@jreus
Copy link

jreus commented Mar 2, 2020

  • I am on the latest Cerebro.app version

  • I have searched the issues of this repo and believe that this is not a duplicate

  • OS version and name: Linux Mint 19.04

  • Cerebro.app version: Latest Release

Issue

I would like to know if it's possible at all to toggle cerebro using the command line? e.g. with something like

$ cerebro toggle

This would be wonderful, because I prefer to use Super+Space as my launch command (immitating Spotlight on OSX). However, on Linux Mint 19.04 you have to hit space twice before Cerebro will "catch" the command. I've experienced this issue before with apps that try to use global hotkeys and the work-around is to create a custom system-wide shortcut; but to do that you need a terminal command that can be invoked by the shortcut.

@ogustavo-pereira ogustavo-pereira changed the title toggle Cerebro search from the command line [Feature Request] toggle Cerebro search from the command line Mar 3, 2021
@ogustavo-pereira
Copy link
Member

@jreus I don't know a way to trigger the cerebroapp through the terminal.

Never tried to do that with electron

@dubisdev dubisdev changed the title [Feature Request] toggle Cerebro search from the command line feat: toggle Cerebro search from the command line Sep 15, 2022
@dubisdev
Copy link
Contributor

Electron supports adding protocolos to an app. In our config web have
https://github.com/cerebroapp/cerebro/blob/master/electron-builder.json#L4-L9

This means if you open

cerebro://something

Cerebro is triggered.

We could add something like

cerebro://toggle

And, as a workaround, a bash script like
open cerebro://toggle could do the trick

This is just for documenting, I'm currently working on other issues 🙌

@dubisdev dubisdev added this to the v0.11.0 milestone Nov 18, 2022
@ogustavo-pereira ogustavo-pereira removed this from the v0.11.0 milestone Jan 1, 2023
@violin0622
Copy link

I'm sorry for bothering but what's the status for this feature?
I noticed it was removed from v0.11.0 milestone.
Will it be released in future ?

@ogustavo-pereira
Copy link
Member

we have not mapped when this feature came out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants