Sha256: 336a8c3830e28c1a86c1e86edf86783b0b358058f4b2933b195e9cd26ae87fcd

Contents?: true

Size: 278 Bytes

Versions: 2

Compression:

Stored size: 278 Bytes

Contents

module Omnibar
  class DuckDuckGo < Query
    def perform!
      param = input.gsub(/\s/, '+')
      open_in_browser "https://duckduckgo.com/?q=#{param}"
    end

    def label
      ANSI.color('Duck Duck Go', fg: :red3)
    end

    def relevance
      0.001
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
omnibar-0.0.8 lib/omnibar/queries/duck_duck_go.rb
omnibar-0.0.7 lib/omnibar/queries/duck_duck_go.rb