diff --git a/plugin/command/command.rb b/plugin/command/command.rb index 687c9474..20f758ad 100644 --- a/plugin/command/command.rb +++ b/plugin/command/command.rb @@ -169,7 +169,7 @@ Plugin.create :command do visible: true, icon: "https://www.google.co.jp/images/google_favicon_128.png", role: :timeline) do |opt| - ::Gtk::openurl("http://www.google.co.jp/search?q=" + URI.escape(opt.widget.selected_text(opt.messages.first)).to_s) end + ::Gtk::openurl("http://www.google.co.jp/search?" + URI.encode_www_form({'q'=>opt.widget.selected_text(opt.messages.first).to_s})) end command(:open_in_browser, name: _('ブラウザで開く'),