Small rofi script to search for Go packages on pkg.go.dev
.
Buind and install it in your PATH:
go build .
chmod u+x grofi
mv grofi /usr/local/bin
n.b.: replace '/usr/local/bin' with any path sourced when a new terminal window opens up.
Then add a custom keyboard shortcut to launch rofi
in script mode according to your desktop environment (e.g. see here for GNOME) executing the following command:
rofi -show grofi -modi "grofi:/usr/local/bin/grofi"
Launch rofi
with the configured shortcut. Then, type the name of a package or a keyword and press Enter to open in the browser the documentation of the selected entry: