From ec0db86706265bfa7b55d0cb77b971399b89438e Mon Sep 17 00:00:00 2001 From: cobodo Date: Sat, 29 Sep 2018 19:01:22 +0900 Subject: [PATCH] =?UTF-8?q?search=E3=83=97=E3=83=A9=E3=82=B0=E3=82=A4?= =?UTF-8?q?=E3=83=B3=E3=81=8B=E3=82=89twitter=E4=BE=9D=E5=AD=98=E3=82=92?= =?UTF-8?q?=E6=8E=92=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/plugin/search/.mikutter.yml | 1 - core/plugin/search/search.rb | 4 ---- core/plugin/twitter/twitter.rb | 4 ++++ 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/core/plugin/search/.mikutter.yml b/core/plugin/search/.mikutter.yml index 179ae011..556b7a8d 100644 --- a/core/plugin/search/.mikutter.yml +++ b/core/plugin/search/.mikutter.yml @@ -7,7 +7,6 @@ depends: - gui - uitranslator - skin - - twitter version: '1.0' author: toshi_a name: 検索 diff --git a/core/plugin/search/search.rb b/core/plugin/search/search.rb index 6740e010..5731d543 100644 --- a/core/plugin/search/search.rb +++ b/core/plugin/search/search.rb @@ -7,10 +7,6 @@ Plugin.create :search do Plugin.call(:search_start, token.model.query) end - intent :twitter_hashtag do |token| - Plugin.call(:search_start, token.model.title) - end - Delayer.new do refresh_tab end diff --git a/core/plugin/twitter/twitter.rb b/core/plugin/twitter/twitter.rb index b94755c6..a7743f6c 100644 --- a/core/plugin/twitter/twitter.rb +++ b/core/plugin/twitter/twitter.rb @@ -217,6 +217,10 @@ Plugin.create(:twitter) do twitter.search(**options) end + intent :twitter_hashtag do |token| + Plugin.call(:search_start, token.model.title) + end + defspell(:update_profile_name, :twitter) do |twitter, name:| (twitter/'account/update_profile').user(name: name) end -- 2.17.1