LoginSignup
0
1

More than 1 year has passed since last update.

MacのAlfredでクエリ検索できるカスタムサーチを作る

Last updated at Posted at 2022-06-27

次の韻検索ツールを例にカスタムサーチを作ります。

ここのサイトは、単語を検索欄に入れることで母音が同じつまり韻を踏んでる単語をリストアップしてくれます。

完成形としては、Alfredに「wd <単語>」のように入力して使います:

スクリーンショット 2022-06-27 21.03.02.png

検索した際のURLを特定する

このツールで単語を検索欄に入力すると次のようなURLが生成されます:

https://kujirahand.com/web-tools/Words.php?m=boin-search&key=<単語>&opt=comp&len=%3F

Alfredに設定する

Alfredのpreferencesページを開きます(Alfredで「preferences」と検索すれば表示できます)。

Custom Searchesに進んで、「+」のマークを押します:

スクリーンショット 2022-06-27 21.14.20 (1).png

次のように設定します:

スクリーンショット 2022-06-27 21.17.25.png

「Search URL」の部分には、最初に特定したURLより次を指定します:

https://kujirahand.com/web-tools/Words.php?m=boin-search&key={query}&opt=comp&len=%3F

検索した単語が入る部分に{query}と書きました。

「Keyword」には "wd" と指定しました。これにより、"wd" の次に半角スペースを開けて、それに続けて検索したい単語を入力します:

スクリーンショット 2022-06-27 21.03.02.png

Alfredカスタムサーチの設定にある「Title」については、上の画像にあるように表示されます。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1