Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/giulianopz/grofi
small rofi script to search for Go packages quickly
https://github.com/giulianopz/grofi
golang rofi rofi-scripts
Last synced: about 1 month ago
JSON representation
small rofi script to search for Go packages quickly
- Host: GitHub
- URL: https://github.com/giulianopz/grofi
- Owner: giulianopz
- Created: 2023-06-21T21:31:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-19T10:19:58.000Z (8 months ago)
- Last Synced: 2024-06-21T20:09:55.297Z (6 months ago)
- Topics: golang, rofi, rofi-scripts
- Language: Go
- Homepage:
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## grofi
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](https://docs.fedoraproject.org/en-US/quick-docs/proc_setting-key-shortcut/) 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:
![preview](./assets/preview.png)
---
### References:
- [rofi-script(5)](https://man.archlinux.org/man/rofi-script.5.en)
- [Rofi based scripts](https://github.com/davatorium/rofi-scripts)