lib/omnibar/queries/google.rb in omnibar-0.0.6 vs lib/omnibar/queries/google.rb in omnibar-0.0.7
- old
+ new
@@ -1,6 +1,18 @@
module Omnibar
class Google < Query
+ def label
+ [
+ ANSI.color('G', res: false, fg: :blue),
+ ANSI.color('o', res: false, fg: :red),
+ ANSI.color('o', res: false, fg: :yellow),
+ ANSI.color('g', res: false, fg: :blue),
+ ANSI.color('l', res: false, fg: :green),
+ ANSI.color('e', res: false, fg: :red),
+ ANSI.reset
+ ].join
+ end
+
def perform!
param = input.gsub(/\s/, '+')
open_in_browser "https://www.google.com/search?q=#{param}"
end
end