Skip to content

Search with DuckDuckGo

David-Apps edited this page Oct 3, 2021 · 10 revisions

This function makes it easier to search with DuckDuckGo. The function moves to the first search result and stops. To move to the next search result, you can use the / command.

    #Search using DuckDuckGo.
    #usage: <ddg [search terms]
    function:ddg {
    db0
    b https://www.duckduckgo.com/
sw+
    /<>/ i1=~0
    i2*
    g/h2 Ad/X
    /h2 {/
    db1
    }