diff --git a/home/programs/scripts/bdfr b/home/programs/scripts/bdfr index 350ed3f..241c119 100755 --- a/home/programs/scripts/bdfr +++ b/home/programs/scripts/bdfr @@ -21,4 +21,14 @@ def "main user" [ http get $url | ignore } +def "main search" [ + subreddit: string + search: string + --limit: int = 9999 +] { + let url = $"($base_url)args[subreddit]=($subreddit)&args[search]=($search)&args[limit]=($limit)" + + http get $url | ignore +} + def main [] {}