<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nokturnalmortum</author_name>
  <author_url>https://blog.hatena.ne.jp/nokturnalmortum/</author_url>
  <blog_title>地獄のネコブログ</blog_title>
  <blog_url>https://anekos.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>percol で候補を選択するときにプレビュー的なことをしたいので、環境変数を設定しておくことで、そのコマンドを実行できるようにしてみました。 例えば、以下のようにすると候補を選択(移動?)するたびに通知が飛びます。 (%s のところに選択された候補が入ります) $ seq 1 100 | PERCOL_HOOK_ON_SELECT='notify-send -u low %s' percol rc.py ↓を書いておきます。 def hack_hook_on_select(): import os hook_on_select = os.environ.get('PERCOL_HOOK_ON…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanekos.hatenablog.com%2Fentry%2F2021%2F02%2F02%2F193658&quot; title=&quot;percol で選択したアイテムを引数につかってコマンドを実行する (プレビューしたい - 地獄のネコブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-02-02 19:36:58</published>
  <title>percol で選択したアイテムを引数につかってコマンドを実行する (プレビューしたい</title>
  <type>rich</type>
  <url>https://anekos.hatenablog.com/entry/2021/02/02/193658</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
