2013/01/09

canything: CUIでAnything

コマンドラインからEmacs Anythingを使えるプログラムです。 zshの補完でも十分だが、Anythingのインターフェースの方がある場合にはすぐれているので作った。 パイプ専用なので汎用的に使えると思います。

http://filmlang.org/soft/canything
そう言えば昨日、canything を windows でも動かせるようにパッチ書いて pull-req 送って取り込まれた。
keiji0/canything - GitHub
https://github.com/keiji0/canything

ls | canything | xargs cat
こんな風にパイプで囲まれた時に pdcurses が初期化出来ないっていうエラーに悩まされたけど、CreateConsoleScreenBuffer で新しい端末バッファを作って SetStdHandle で割り当てて、かつ CONIN$ を freopen してキー入力を stdin から取るという荒技を使って乗り越えた。
上記の様な場合でもちゃんと動きます。
canything

追記
共有読み込みモードにしないとckwでハングするらしい。
パッチ書いてpull-req送った。
Posted at 19:23 | WriteBacks () | Edit
Edit this entry...

wikieditish message: Ready to edit this entry.






















A quick preview will be rendered here when you click "Preview" button.