cerebro icon indicating copy to clipboard operation
cerebro copied to clipboard

feat: toggle Cerebro search from the command line

Open jreus opened this issue 4 years ago • 4 comments

  • [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 avatar Mar 02 '20 09:03 jreus

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

Never tried to do that with electron

ogustavo-pereira avatar Mar 03 '21 04:03 ogustavo-pereira

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 avatar Sep 16 '22 21:09 dubisdev

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 ?

violin0622 avatar Jan 13 '23 13:01 violin0622

we have not mapped when this feature came out

ogustavo-pereira avatar Feb 05 '23 22:02 ogustavo-pereira