提案 #1297 » search-without-twitter.patch
core/plugin/search/.mikutter.yml | ||
---|---|---|
7 | 7 |
- gui |
8 | 8 |
- uitranslator |
9 | 9 |
- skin |
10 |
|
|
11 | 10 |
version: '1.0' |
12 | 11 |
author: toshi_a |
13 | 12 |
name: 検索 |
core/plugin/search/search.rb | ||
---|---|---|
7 | 7 |
Plugin.call(:search_start, token.model.query) |
8 | 8 |
end |
9 | 9 | |
10 |
intent :twitter_hashtag do |token| |
|
11 |
Plugin.call(:search_start, token.model.title) |
|
12 |
end |
|
13 | ||
14 | 10 |
Delayer.new do |
15 | 11 |
refresh_tab |
16 | 12 |
end |
core/plugin/twitter/twitter.rb | ||
---|---|---|
217 | 217 |
twitter.search(**options) |
218 | 218 |
end |
219 | 219 | |
220 |
intent :twitter_hashtag do |token| |
|
221 |
Plugin.call(:search_start, token.model.title) |
|
222 |
end |
|
223 | ||
220 | 224 |
defspell(:update_profile_name, :twitter) do |twitter, name:| |
221 | 225 |
(twitter/'account/update_profile').user(name: name) |
222 | 226 |
end |