<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>zetamatta</author_name>
  <author_url>https://blog.hatena.ne.jp/zetamatta/</author_url>
  <blog_title>標準愚痴出力</blog_title>
  <blog_url>https://zetamatta.hatenablog.com/</blog_url>
  <categories>
    <anon>nyagos</anon>
  </categories>
  <description>現在の補完APIは Lua 側の負担が重いので、bash と同じくらいにお手軽な新補完APIを試作中してます。以下は git のサブコマンドを補完する例： nyagos.complete_for[&quot;git&quot;] = function(args) if #args == 2 then local base = args[#args] local len = string.len(base) local result = {} for _,s in pairs{ &quot;commit&quot;,&quot;push&quot;,&quot;pop&quot;,&quot;diff&quot;,&quot;rebase&quot;,&quot;log&quot; } do if string.sub(s,1,st…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzetamatta.hatenablog.com%2Fentry%2F2019%2F01%2F28%2F012545&quot; title=&quot;NYAGOS開発ノート：新補完API（試作中） - 標準愚痴出力&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>2019-01-28 01:25:45</published>
  <title>NYAGOS開発ノート：新補完API（試作中）</title>
  <type>rich</type>
  <url>https://zetamatta.hatenablog.com/entry/2019/01/28/012545</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
