cerebro
cerebro copied to clipboard
feat: toggle Cerebro search from the command line
-
[X] I am on the latest Cerebro.app version
-
[X] 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.
@jreus I don't know a way to trigger the cerebroapp through the terminal.
Never tried to do that with electron
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 🙌
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 ?
we have not mapped when this feature came out