cerebroapp / cerebro-shell

📦 Cerebro plugin to execute any shell command from Cerebro search line
18 stars 1 forks source link

Feature Request: Passing input from cerebro to STDIN #9

Open appetrosyan opened 7 years ago

appetrosyan commented 7 years ago

Would be nice if the plugin would allow for passing input to stdin of command.

Because of that you can't run sudo pacman -Syu. For one sudo expects input to stdin, plus pacman will ask for confirmation as will any package manager for any distro.

ta3pks commented 7 years ago

you could use gksu @appetrosyan but anyway it could be really cool to be able to use stdin so +1

appetrosyan commented 7 years ago

Pkexec works too, problem is, a program that asks a simple yes/no question will be unusable.

ta3pks commented 7 years ago

I think instead of trying to develop whole new terminal emulator inside the cerebo it could be easier just to open up a new terminal session by this way it could be cool to use ssh sessions as well fired from the cerebo. In synapse i used to use such a feature

KELiON commented 7 years ago

+1 for @NikosEfthias solution. I'd just add some shortcut (like cmd/ctrl/whatever+enter) that opens default terminal emulator with entered input.

ta3pks commented 7 years ago

@KELiON do we need to get something after you merged the changes or does cerebo updates automatically ?

KELiON commented 7 years ago

@NikosEfthias merged what? It is not implemented yet, but Cerebro has plugin autoupdates system