Search subreddit using dmenu.
Note: In cases where input is not required, fzf
or rofi
can be used.
- jq
- dmenu
- xclip
- curl
- run script with either
clipboard
orbrowser
argument. - type a subreddit to search, e.g commandline.
- type in search term, e.g bash is cool.
- you'll see results in a dmenu window. Pressing enter will either copy result link to clipboard or open link in your browser (requires
$BROWSER
environment variable).
- results limit
- loop through results
- choose what to do with results
- make sure subreddit exists